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

Unified Diff: chrome/browser/ui/panels/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.h
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index c6967d7bf89b4d2248bde091af586ad1ace032e1..1fdad63fafff74dec88483bdb754c3fec30d8e45 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -230,6 +230,8 @@ class Panel : public BrowserWindow,
const gfx::Size& max_size() const { return max_size_; }
bool auto_resizable() const { return auto_resizable_; }
+ bool in_preview_mode() const { return in_preview_mode_; }
+
bool draggable() const;
// The restored size is the size of the panel when it is expanded.
@@ -259,6 +261,13 @@ class Panel : public BrowserWindow,
// Sets whether the panel app icon is visible in the taskbar.
void SetAppIconVisibility(bool visible);
+ // Sets whether the panel window is always on top.
+ void SetAlwaysOnTop(bool on_top);
+
+ // Sets whether the panel is shown in preview mode. When the panel is
+ // being dragged, it is in preview mode.
+ void SetPreviewMode(bool in_preview_mode);
+
// Newly created panels may be placed in a temporary layout until their
// final position is determined.
bool has_temporary_layout() const { return has_temporary_layout_; }
@@ -312,6 +321,15 @@ class Panel : public BrowserWindow,
// True if this panel auto resizes based on content.
bool auto_resizable_;
+ // True if this panel should always stay on top of other windows.
+ bool always_on_top_;
+
+ // True if this panel is in preview mode. When in preview mode, panel bounds
+ // should not be affected by layout refresh. This is currently used by drag
+ // controller to add a panel to the strip without causing its bounds to
+ // change.
+ bool in_preview_mode_;
+
// Platform specifc implementation for panels. It'd be one of
// PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa.
NativePanel* native_panel_; // Weak, owns us.
@@ -319,9 +337,6 @@ class Panel : public BrowserWindow,
ExpansionState expansion_state_;
ExpansionState old_expansion_state_;
- // Indicates whether the panel app icon is visible in the taskbar.
- bool app_icon_visible_;
-
content::NotificationRegistrar registrar_;
DISALLOW_COPY_AND_ASSIGN(Panel);
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698