Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(354)

Side by Side Diff: chrome/browser/ui/panels/native_panel.h

Issue 8775022: Add Panel::SetPanelBoundsInstantly for all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.h » ('j') | chrome/browser/ui/panels/panel.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/panels/panel.h" 9 #include "chrome/browser/ui/panels/panel.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 19 matching lines...) Expand all
30 class NativePanel { 30 class NativePanel {
31 friend class Panel; 31 friend class Panel;
32 friend class PanelBrowserTest; 32 friend class PanelBrowserTest;
33 33
34 protected: 34 protected:
35 virtual ~NativePanel() {} 35 virtual ~NativePanel() {}
36 36
37 virtual void ShowPanel() = 0; 37 virtual void ShowPanel() = 0;
38 virtual void ShowPanelInactive() = 0; 38 virtual void ShowPanelInactive() = 0;
39 virtual gfx::Rect GetPanelBounds() const = 0; 39 virtual gfx::Rect GetPanelBounds() const = 0;
40 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; 40 virtual void SetPanelBounds(const gfx::Rect& bounds, bool animate) = 0;
41 virtual void ClosePanel() = 0; 41 virtual void ClosePanel() = 0;
42 virtual void ActivatePanel() = 0; 42 virtual void ActivatePanel() = 0;
43 virtual void DeactivatePanel() = 0; 43 virtual void DeactivatePanel() = 0;
44 virtual bool IsPanelActive() const = 0; 44 virtual bool IsPanelActive() const = 0;
45 virtual gfx::NativeWindow GetNativePanelHandle() = 0; 45 virtual gfx::NativeWindow GetNativePanelHandle() = 0;
46 virtual void UpdatePanelTitleBar() = 0; 46 virtual void UpdatePanelTitleBar() = 0;
47 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0; 47 virtual void UpdatePanelLoadingAnimations(bool should_animate) = 0;
48 virtual void ShowTaskManagerForPanel() = 0; 48 virtual void ShowTaskManagerForPanel() = 0;
49 virtual FindBar* CreatePanelFindBar() = 0; 49 virtual FindBar* CreatePanelFindBar() = 0;
50 virtual void NotifyPanelOnUserChangedTheme() = 0; 50 virtual void NotifyPanelOnUserChangedTheme() = 0;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Verifies, on a deepest possible level, if the native panel is really 91 // Verifies, on a deepest possible level, if the native panel is really
92 // active, i.e. the titlebar is painted per its active state. 92 // active, i.e. the titlebar is painted per its active state.
93 virtual bool VerifyActiveState(bool is_active) = 0; 93 virtual bool VerifyActiveState(bool is_active) = 0;
94 virtual void WaitForWindowCreationToComplete() const { } 94 virtual void WaitForWindowCreationToComplete() const { }
95 95
96 virtual bool IsWindowSizeKnown() const = 0; 96 virtual bool IsWindowSizeKnown() const = 0;
97 virtual bool IsAnimatingBounds() const = 0; 97 virtual bool IsAnimatingBounds() const = 0;
98 }; 98 };
99 99
100 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 100 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel.h » ('j') | chrome/browser/ui/panels/panel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698