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

Unified Diff: chrome/browser/ui/panels/panel.cc

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/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel.cc
diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
index f62464abbb1a7652f32d7ffdf687175771cf90d2..475a07bb498cba65779895c9b8ea1325f1cbe4aa 100644
--- a/chrome/browser/ui/panels/panel.cc
+++ b/chrome/browser/ui/panels/panel.cc
@@ -50,9 +50,10 @@ Panel::Panel(Browser* browser, const gfx::Size& requested_size)
has_temporary_layout_(false),
restored_size_(requested_size),
auto_resizable_(false),
+ always_on_top_(false),
+ in_preview_mode_(false),
expansion_state_(EXPANDED),
- old_expansion_state_(EXPANDED),
- app_icon_visible_(true) {
+ old_expansion_state_(EXPANDED) {
}
Panel::~Panel() {
@@ -153,12 +154,21 @@ void Panel::SetSizeRange(const gfx::Size& min_size, const gfx::Size& max_size) {
}
void Panel::SetAppIconVisibility(bool visible) {
- if (app_icon_visible_ == visible)
- return;
- app_icon_visible_ = visible;
native_panel_->SetPanelAppIconVisibility(visible);
}
+void Panel::SetAlwaysOnTop(bool on_top) {
+ if (always_on_top_ == on_top)
+ return;
+ always_on_top_ = on_top;
+ native_panel_->SetPanelAlwaysOnTop(on_top);
+}
+
+void Panel::SetPreviewMode(bool in_preview) {
+ DCHECK_NE(in_preview_mode_, in_preview);
+ in_preview_mode_ = in_preview;
+}
+
void Panel::SetPanelStrip(PanelStrip* new_strip) {
panel_strip_ = new_strip;
if (panel_strip_ != NULL && initialized_)
« no previous file with comments | « chrome/browser/ui/panels/panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698