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

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: Patch to land 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // the panel put in the overflow area. 81 // the panel put in the overflow area.
82 virtual gfx::Size IconOnlySize() const = 0; 82 virtual gfx::Size IconOnlySize() const = 0;
83 83
84 // Brings the panel to the top of the z-order without activating it. This 84 // Brings the panel to the top of the z-order without activating it. This
85 // will make sure that the panel is not obscured by other top-most windows. 85 // will make sure that the panel is not obscured by other top-most windows.
86 virtual void EnsurePanelFullyVisible() = 0; 86 virtual void EnsurePanelFullyVisible() = 0;
87 87
88 // Sets whether the panel app icon is visible (usually refers to the app icons 88 // Sets whether the panel app icon is visible (usually refers to the app icons
89 // in the desktop bar). 89 // in the desktop bar).
90 virtual void SetPanelAppIconVisibility(bool visible) = 0; 90 virtual void SetPanelAppIconVisibility(bool visible) = 0;
91
92 // Sets whether the panel window is always on top.
93 virtual void SetPanelAlwaysOnTop(bool on_top) = 0;
91 }; 94 };
92 95
93 // A NativePanel utility interface used for accessing elements of the 96 // A NativePanel utility interface used for accessing elements of the
94 // native panel used only by test automation. 97 // native panel used only by test automation.
95 class NativePanelTesting { 98 class NativePanelTesting {
96 public: 99 public:
97 static NativePanelTesting* Create(NativePanel* native_panel); 100 static NativePanelTesting* Create(NativePanel* native_panel);
98 virtual ~NativePanelTesting() {} 101 virtual ~NativePanelTesting() {}
99 102
100 // |mouse_location| is in screen coordinates. 103 // |mouse_location| is in screen coordinates.
(...skipping 10 matching lines...) Expand all
111 // Verifies, on a deepest possible level, if the native panel is really 114 // Verifies, on a deepest possible level, if the native panel is really
112 // active, i.e. the titlebar is painted per its active state. 115 // active, i.e. the titlebar is painted per its active state.
113 virtual bool VerifyActiveState(bool is_active) = 0; 116 virtual bool VerifyActiveState(bool is_active) = 0;
114 virtual void WaitForWindowCreationToComplete() const { } 117 virtual void WaitForWindowCreationToComplete() const { }
115 118
116 virtual bool IsWindowSizeKnown() const = 0; 119 virtual bool IsWindowSizeKnown() const = 0;
117 virtual bool IsAnimatingBounds() const = 0; 120 virtual bool IsAnimatingBounds() const = 0;
118 }; 121 };
119 122
120 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_ 123 #endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/overflow_panel_strip.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698