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 | 7 |
8 #include "chrome/browser/ui/panels/panel.h" | 8 #include "chrome/browser/ui/panels/panel.h" |
9 #include "chrome/browser/ui/panels/panel_constants.h" | 9 #include "chrome/browser/ui/panels/panel_constants.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // Sets how the panel window displays its 4 corners, rounded or not. | 81 // Sets how the panel window displays its 4 corners, rounded or not. |
82 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0; | 82 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) = 0; |
83 | 83 |
84 // Performs the system minimize for the panel, i.e. becoming iconic. | 84 // Performs the system minimize for the panel, i.e. becoming iconic. |
85 virtual void MinimizePanelBySystem() = 0; | 85 virtual void MinimizePanelBySystem() = 0; |
86 | 86 |
87 // Returns true if the panel has been minimized by the system, i.e. becoming | 87 // Returns true if the panel has been minimized by the system, i.e. becoming |
88 // iconic. | 88 // iconic. |
89 virtual bool IsPanelMinimizedBySystem() const = 0; | 89 virtual bool IsPanelMinimizedBySystem() const = 0; |
90 | 90 |
| 91 // Turns on/off the shadow effect around the window shape. |
| 92 virtual void ShowShadow(bool show) = 0; |
| 93 |
91 // Create testing interface for native panel. (Keep this last to separate | 94 // Create testing interface for native panel. (Keep this last to separate |
92 // it from regular API.) | 95 // it from regular API.) |
93 virtual NativePanelTesting* CreateNativePanelTesting() = 0; | 96 virtual NativePanelTesting* CreateNativePanelTesting() = 0; |
94 }; | 97 }; |
95 | 98 |
96 // A NativePanel utility interface used for accessing elements of the | 99 // A NativePanel utility interface used for accessing elements of the |
97 // native panel used only by test automation. | 100 // native panel used only by test automation. |
98 class NativePanelTesting { | 101 class NativePanelTesting { |
99 public: | 102 public: |
100 virtual ~NativePanelTesting() {} | 103 virtual ~NativePanelTesting() {} |
(...skipping 28 matching lines...) Expand all Loading... |
129 virtual bool VerifySystemMinimizeState() const = 0; | 132 virtual bool VerifySystemMinimizeState() const = 0; |
130 | 133 |
131 virtual bool IsWindowSizeKnown() const = 0; | 134 virtual bool IsWindowSizeKnown() const = 0; |
132 virtual bool IsAnimatingBounds() const = 0; | 135 virtual bool IsAnimatingBounds() const = 0; |
133 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; | 136 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; |
134 | 137 |
135 virtual panel::CornerStyle GetWindowCornerStyle() const = 0; | 138 virtual panel::CornerStyle GetWindowCornerStyle() const = 0; |
136 }; | 139 }; |
137 | 140 |
138 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 141 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
OLD | NEW |