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

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

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 9 months 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) 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 #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
80 // the panel put in the overflow area. 80 // the panel put in the overflow area.
81 virtual gfx::Size IconOnlySize() const = 0; 81 virtual gfx::Size IconOnlySize() const = 0;
82 82
83 // Brings the panel to the top of the z-order without activating it. This 83 // Brings the panel to the top of the z-order without activating it. This
84 // will make sure that the panel is not obscured by other top-most windows. 84 // will make sure that the panel is not obscured by other top-most windows.
85 virtual void EnsurePanelFullyVisible() = 0; 85 virtual void EnsurePanelFullyVisible() = 0;
86 86
87 // Sets whether the panel app icon is visible (usually refers to the app icons 87 // Sets whether the panel app icon is visible (usually refers to the app icons
88 // in the desktop bar). 88 // in the desktop bar).
89 virtual void SetPanelAppIconVisibility(bool visible) = 0; 89 virtual void SetPanelAppIconVisibility(bool visible) = 0;
90
91 // Sets whether the panel window is always on top.
92 virtual void SetPanelAlwaysOnTop(bool on_top) = 0;
90 }; 93 };
91 94
92 // A NativePanel utility interface used for accessing elements of the 95 // A NativePanel utility interface used for accessing elements of the
93 // native panel used only by test automation. 96 // native panel used only by test automation.
94 class NativePanelTesting { 97 class NativePanelTesting {
95 public: 98 public:
96 static NativePanelTesting* Create(NativePanel* native_panel); 99 static NativePanelTesting* Create(NativePanel* native_panel);
97 virtual ~NativePanelTesting() {} 100 virtual ~NativePanelTesting() {}
98 101
99 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) = 0; 102 // |mouse_location| is in screen coordinates.
103 virtual void PressLeftMouseButtonTitlebar(
104 const gfx::Point& mouse_location) = 0;
100 virtual void ReleaseMouseButtonTitlebar() = 0; 105 virtual void ReleaseMouseButtonTitlebar() = 0;
101 virtual void DragTitlebar(int delta_x, int delta_y) = 0; 106 virtual void DragTitlebar(const gfx::Point& mouse_location) = 0;
102 virtual void CancelDragTitlebar() = 0; 107 virtual void CancelDragTitlebar() = 0;
103 virtual void FinishDragTitlebar() = 0; 108 virtual void FinishDragTitlebar() = 0;
104 109
105 // Verifies, on a deepest possible level, if the Panel is showing the "Draw 110 // Verifies, on a deepest possible level, if the Panel is showing the "Draw
106 // Attention" effects to the user. May include checking colors etc. 111 // Attention" effects to the user. May include checking colors etc.
107 virtual bool VerifyDrawingAttention() const = 0; 112 virtual bool VerifyDrawingAttention() const = 0;
108 // Verifies, on a deepest possible level, if the native panel is really 113 // Verifies, on a deepest possible level, if the native panel is really
109 // active, i.e. the titlebar is painted per its active state. 114 // active, i.e. the titlebar is painted per its active state.
110 virtual bool VerifyActiveState(bool is_active) = 0; 115 virtual bool VerifyActiveState(bool is_active) = 0;
111 virtual void WaitForWindowCreationToComplete() const { } 116 virtual void WaitForWindowCreationToComplete() const { }
112 117
113 virtual bool IsWindowSizeKnown() const = 0; 118 virtual bool IsWindowSizeKnown() const = 0;
114 virtual bool IsAnimatingBounds() const = 0; 119 virtual bool IsAnimatingBounds() const = 0;
115 }; 120 };
116 121
117 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 122 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698