Chromium Code Reviews| 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 "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 // Gets or sets whether the panel window is always on top. | 71 // Gets or sets whether the panel window is always on top. |
| 72 virtual bool IsPanelAlwaysOnTop() const = 0; | 72 virtual bool IsPanelAlwaysOnTop() const = 0; |
| 73 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; | 73 virtual void SetPanelAlwaysOnTop(bool on_top) = 0; |
| 74 | 74 |
| 75 // Enables resizing by dragging edges/corners. | 75 // Enables resizing by dragging edges/corners. |
| 76 virtual void EnableResizeByMouse(bool enable) = 0; | 76 virtual void EnableResizeByMouse(bool enable) = 0; |
| 77 | 77 |
| 78 // Updates the visibility of the minimize and restore buttons. | 78 // Updates the visibility of the minimize and restore buttons. |
| 79 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0; | 79 virtual void UpdatePanelMinimizeRestoreButtonVisibility() = 0; |
| 80 | 80 |
| 81 // Updates the panel stacking property due to joining or leaving a stack. | |
| 82 virtual void UpdatePanelStackingProperty() = 0; | |
|
Dmitry Titov
2013/01/10 00:16:24
This is needed to connect/disconnect the panel fro
jianli
2013/01/10 02:05:37
Done.
| |
| 83 | |
| 81 // Create testing interface for native panel. (Keep this last to separate | 84 // Create testing interface for native panel. (Keep this last to separate |
| 82 // it from regular API.) | 85 // it from regular API.) |
| 83 virtual NativePanelTesting* CreateNativePanelTesting() = 0; | 86 virtual NativePanelTesting* CreateNativePanelTesting() = 0; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 // A NativePanel utility interface used for accessing elements of the | 89 // A NativePanel utility interface used for accessing elements of the |
| 87 // native panel used only by test automation. | 90 // native panel used only by test automation. |
| 88 class NativePanelTesting { | 91 class NativePanelTesting { |
| 89 public: | 92 public: |
| 90 virtual ~NativePanelTesting() {} | 93 virtual ~NativePanelTesting() {} |
| (...skipping 23 matching lines...) Expand all Loading... | |
| 114 // Verifies, on a deepest possible level, if the native panel is really | 117 // Verifies, on a deepest possible level, if the native panel is really |
| 115 // showing a correct app icon (taskbar icon). | 118 // showing a correct app icon (taskbar icon). |
| 116 virtual bool VerifyAppIcon() const = 0; | 119 virtual bool VerifyAppIcon() const = 0; |
| 117 | 120 |
| 118 virtual bool IsWindowSizeKnown() const = 0; | 121 virtual bool IsWindowSizeKnown() const = 0; |
| 119 virtual bool IsAnimatingBounds() const = 0; | 122 virtual bool IsAnimatingBounds() const = 0; |
| 120 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; | 123 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 126 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
| OLD | NEW |