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

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

Issue 10544113: Revert 141690 - Modify old Panel test files and include them in .gyp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 months 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 18 matching lines...) Expand all
29 // of which we don't use and simply stub out with NOTIMPLEMENTED(). 29 // of which we don't use and simply stub out with NOTIMPLEMENTED().
30 // 2. We need some additional methods that BrowserWindow doesn't provide, such 30 // 2. We need some additional methods that BrowserWindow doesn't provide, such
31 // as MinimizePanel() and RestorePanel(). 31 // as MinimizePanel() and RestorePanel().
32 // Note that even though we don't use BrowserWindow directly, Windows and GTK+ 32 // Note that even though we don't use BrowserWindow directly, Windows and GTK+
33 // still use the BrowserWindow interface as part of their implementation so we 33 // still use the BrowserWindow interface as part of their implementation so we
34 // use Panel in all the method names to avoid collisions. 34 // use Panel in all the method names to avoid collisions.
35 class NativePanel { 35 class NativePanel {
36 friend class Panel; 36 friend class Panel;
37 friend class PanelBrowserWindow; 37 friend class PanelBrowserWindow;
38 friend class PanelBrowserTest; 38 friend class PanelBrowserTest;
39 friend class OldPanelBrowserTest;
40 39
41 protected: 40 protected:
42 virtual ~NativePanel() {} 41 virtual ~NativePanel() {}
43 42
44 virtual void ShowPanel() = 0; 43 virtual void ShowPanel() = 0;
45 virtual void ShowPanelInactive() = 0; 44 virtual void ShowPanelInactive() = 0;
46 virtual gfx::Rect GetPanelBounds() const = 0; 45 virtual gfx::Rect GetPanelBounds() const = 0;
47 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0; 46 virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
48 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0; 47 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) = 0;
49 virtual void ClosePanel() = 0; 48 virtual void ClosePanel() = 0;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // active, i.e. the titlebar is painted per its active state. 127 // active, i.e. the titlebar is painted per its active state.
129 virtual bool VerifyActiveState(bool is_active) = 0; 128 virtual bool VerifyActiveState(bool is_active) = 0;
130 virtual void WaitForWindowCreationToComplete() const { } 129 virtual void WaitForWindowCreationToComplete() const { }
131 130
132 virtual bool IsWindowSizeKnown() const = 0; 131 virtual bool IsWindowSizeKnown() const = 0;
133 virtual bool IsAnimatingBounds() const = 0; 132 virtual bool IsAnimatingBounds() const = 0;
134 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; 133 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0;
135 }; 134 };
136 135
137 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 136 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/old_base_panel_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698