Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: chrome/browser/ui/panels/native_panel.h

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac/linux compile Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 virtual int TitleOnlyHeight() const = 0; 74 virtual int TitleOnlyHeight() const = 0;
75 75
76 // Returns the size of the iconified panel. This is the size we use to draw 76 // Returns the size of the iconified panel. This is the size we use to draw
77 // the panel put in the overflow area. 77 // the panel put in the overflow area.
78 virtual gfx::Size IconOnlySize() const = 0; 78 virtual gfx::Size IconOnlySize() const = 0;
79 79
80 // Brings the panel to the top of the z-order without activating it. This 80 // Brings the panel to the top of the z-order without activating it. This
81 // will make sure that the panel is not obscured by other top-most windows. 81 // will make sure that the panel is not obscured by other top-most windows.
82 virtual void EnsurePanelFullyVisible() = 0; 82 virtual void EnsurePanelFullyVisible() = 0;
83
84 // Sets whether the panel app icon is visible (usually refers to the app icons
85 // in the desktop bar).
86 virtual void SetPanelAppIconVisibility(bool visible) = 0;
83 }; 87 };
84 88
85 // A NativePanel utility interface used for accessing elements of the 89 // A NativePanel utility interface used for accessing elements of the
86 // native panel used only by test automation. 90 // native panel used only by test automation.
87 class NativePanelTesting { 91 class NativePanelTesting {
88 public: 92 public:
89 static NativePanelTesting* Create(NativePanel* native_panel); 93 static NativePanelTesting* Create(NativePanel* native_panel);
90 virtual ~NativePanelTesting() {} 94 virtual ~NativePanelTesting() {}
91 95
92 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0; 96 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0;
93 virtual void ReleaseMouseButtonTitlebar() = 0; 97 virtual void ReleaseMouseButtonTitlebar() = 0;
94 virtual void DragTitlebar(int delta_x, int delta_y) = 0; 98 virtual void DragTitlebar(int delta_x, int delta_y) = 0;
95 virtual void CancelDragTitlebar() = 0; 99 virtual void CancelDragTitlebar() = 0;
96 virtual void FinishDragTitlebar() = 0; 100 virtual void FinishDragTitlebar() = 0;
97 101
98 // Verifies, on a deepest possible level, if the Panel is showing the "Draw 102 // Verifies, on a deepest possible level, if the Panel is showing the "Draw
99 // Attention" effects to the user. May include checking colors etc. 103 // Attention" effects to the user. May include checking colors etc.
100 virtual bool VerifyDrawingAttention() const = 0; 104 virtual bool VerifyDrawingAttention() const = 0;
101 // Verifies, on a deepest possible level, if the native panel is really 105 // Verifies, on a deepest possible level, if the native panel is really
102 // active, i.e. the titlebar is painted per its active state. 106 // active, i.e. the titlebar is painted per its active state.
103 virtual bool VerifyActiveState(bool is_active) = 0; 107 virtual bool VerifyActiveState(bool is_active) = 0;
104 virtual void WaitForWindowCreationToComplete() const { } 108 virtual void WaitForWindowCreationToComplete() const { }
105 109
106 virtual bool IsWindowSizeKnown() const = 0; 110 virtual bool IsWindowSizeKnown() const = 0;
107 virtual bool IsAnimatingBounds() const = 0; 111 virtual bool IsAnimatingBounds() const = 0;
108 }; 112 };
109 113
110 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 114 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698