Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 virtual ~NativePanelTesting() {} | 80 virtual ~NativePanelTesting() {} |
| 81 | 81 |
| 82 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0; | 82 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0; |
| 83 virtual void ReleaseMouseButtonTitlebar() = 0; | 83 virtual void ReleaseMouseButtonTitlebar() = 0; |
| 84 virtual void DragTitlebar(int delta_x, int delta_y) = 0; | 84 virtual void DragTitlebar(int delta_x, int delta_y) = 0; |
| 85 virtual void CancelDragTitlebar() = 0; | 85 virtual void CancelDragTitlebar() = 0; |
| 86 virtual void FinishDragTitlebar() = 0; | 86 virtual void FinishDragTitlebar() = 0; |
| 87 // Verifies, on a deepest possible level, if the Panel is showing the "Draw | 87 // Verifies, on a deepest possible level, if the Panel is showing the "Draw |
| 88 // Attention" effects to the user. May include checking colors etc. | 88 // Attention" effects to the user. May include checking colors etc. |
| 89 virtual bool VerifyDrawingAttention() const = 0; | 89 virtual bool VerifyDrawingAttention() const = 0; |
| 90 // Verifies, on a deepest possible level, if the titlebar of the Panel is | |
| 91 // being painted correctly per its active state. | |
| 92 virtual bool VerifyTitlebarPaintedAsActive(bool as_active) = 0; | |
|
Dmitry Titov
2011/10/07 20:29:15
Does it verify that the panel is actually active o
jianli
2011/10/07 22:01:54
We want to verify that the titlebar is painted cor
Dmitry Titov
2011/10/07 22:26:41
Same logic here as VerifyDrawingAttention() - the
| |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ | 95 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ |
| OLD | NEW |