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

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: More 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 // |mouse_location| is in screen coordinates. 102 // |mouse_location| is in screen coordinates.
(...skipping 10 matching lines...) Expand all
110 // 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
111 // active, i.e. the titlebar is painted per its active state. 114 // active, i.e. the titlebar is painted per its active state.
112 virtual bool VerifyActiveState(bool is_active) = 0; 115 virtual bool VerifyActiveState(bool is_active) = 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 }; 120 };
118 121
119 #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