OLD | NEW |
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 virtual int TitleOnlyHeight() const = 0; | 77 virtual int TitleOnlyHeight() const = 0; |
78 | 78 |
79 // Returns the size of the iconified panel. This is the size we use to draw | 79 // Returns the size of the iconified panel. This is the size we use to draw |
80 // the panel put in the overflow area. | 80 // the panel put in the overflow area. |
81 virtual gfx::Size IconOnlySize() const = 0; | 81 virtual gfx::Size IconOnlySize() const = 0; |
82 | 82 |
83 // Brings the panel to the top of the z-order without activating it. This | 83 // Brings the panel to the top of the z-order without activating it. This |
84 // will make sure that the panel is not obscured by other top-most windows. | 84 // will make sure that the panel is not obscured by other top-most windows. |
85 virtual void EnsurePanelFullyVisible() = 0; | 85 virtual void EnsurePanelFullyVisible() = 0; |
86 | 86 |
| 87 virtual void ApplyVisualStyleForStrip(PanelStripType newPanelStrip) = 0; |
| 88 |
87 // Sets whether the panel app icon is visible (usually refers to the app icons | 89 // Sets whether the panel app icon is visible (usually refers to the app icons |
88 // in the desktop bar). | 90 // in the desktop bar). |
89 virtual void SetPanelAppIconVisibility(bool visible) = 0; | 91 virtual void SetPanelAppIconVisibility(bool visible) = 0; |
90 }; | 92 }; |
91 | 93 |
92 // A NativePanel utility interface used for accessing elements of the | 94 // A NativePanel utility interface used for accessing elements of the |
93 // native panel used only by test automation. | 95 // native panel used only by test automation. |
94 class NativePanelTesting { | 96 class NativePanelTesting { |
95 public: | 97 public: |
96 static NativePanelTesting* Create(NativePanel* native_panel); | 98 static NativePanelTesting* Create(NativePanel* native_panel); |
(...skipping 11 matching lines...) Expand all Loading... |
108 // Verifies, on a deepest possible level, if the native panel is really | 110 // Verifies, on a deepest possible level, if the native panel is really |
109 // active, i.e. the titlebar is painted per its active state. | 111 // active, i.e. the titlebar is painted per its active state. |
110 virtual bool VerifyActiveState(bool is_active) = 0; | 112 virtual bool VerifyActiveState(bool is_active) = 0; |
111 virtual void WaitForWindowCreationToComplete() const { } | 113 virtual void WaitForWindowCreationToComplete() const { } |
112 | 114 |
113 virtual bool IsWindowSizeKnown() const = 0; | 115 virtual bool IsWindowSizeKnown() const = 0; |
114 virtual bool IsAnimatingBounds() const = 0; | 116 virtual bool IsAnimatingBounds() const = 0; |
115 }; | 117 }; |
116 | 118 |
117 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 119 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |