| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void DragTitlebar(const gfx::Point& mouse_location) = 0; | 103 virtual void DragTitlebar(const gfx::Point& mouse_location) = 0; |
| 104 virtual void CancelDragTitlebar() = 0; | 104 virtual void CancelDragTitlebar() = 0; |
| 105 virtual void FinishDragTitlebar() = 0; | 105 virtual void FinishDragTitlebar() = 0; |
| 106 | 106 |
| 107 // Verifies, on a deepest possible level, if the Panel is showing the "Draw | 107 // Verifies, on a deepest possible level, if the Panel is showing the "Draw |
| 108 // Attention" effects to the user. May include checking colors etc. | 108 // Attention" effects to the user. May include checking colors etc. |
| 109 virtual bool VerifyDrawingAttention() const = 0; | 109 virtual bool VerifyDrawingAttention() const = 0; |
| 110 // 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 |
| 111 // active, i.e. the titlebar is painted per its active state. | 111 // active, i.e. the titlebar is painted per its active state. |
| 112 virtual bool VerifyActiveState(bool is_active) = 0; | 112 virtual bool VerifyActiveState(bool is_active) = 0; |
| 113 // Verifies, on a deepest possible level, if the native panel is really |
| 114 // showing a correct app icon (taskbar icon). |
| 115 virtual bool VerifyAppIcon() const = 0; |
| 113 virtual void WaitForWindowCreationToComplete() const { } | 116 virtual void WaitForWindowCreationToComplete() const { } |
| 114 | 117 |
| 115 virtual bool IsWindowSizeKnown() const = 0; | 118 virtual bool IsWindowSizeKnown() const = 0; |
| 116 virtual bool IsAnimatingBounds() const = 0; | 119 virtual bool IsAnimatingBounds() const = 0; |
| 117 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; | 120 virtual bool IsButtonVisible(panel::TitlebarButtonType button_type) const = 0; |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 123 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
| OLD | NEW |