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

Side by Side Diff: chrome/browser/ui/panels/panel_manager.cc

Issue 9546001: Support detaching/attaching panels via inter-strip drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac trybot 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 #include "chrome/browser/ui/panels/panel_manager.h" 5 #include "chrome/browser/ui/panels/panel_manager.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 PanelManager::PanelManager() 64 PanelManager::PanelManager()
65 : panel_mouse_watcher_(PanelMouseWatcher::Create()), 65 : panel_mouse_watcher_(PanelMouseWatcher::Create()),
66 auto_sizing_enabled_(true), 66 auto_sizing_enabled_(true),
67 is_full_screen_(false), 67 is_full_screen_(false),
68 is_processing_overflow_(false) { 68 is_processing_overflow_(false) {
69 detached_strip_.reset(new DetachedPanelStrip(this)); 69 detached_strip_.reset(new DetachedPanelStrip(this));
70 docked_strip_.reset(new DockedPanelStrip(this)); 70 docked_strip_.reset(new DockedPanelStrip(this));
71 overflow_strip_.reset(new OverflowPanelStrip(this)); 71 overflow_strip_.reset(new OverflowPanelStrip(this));
72 drag_controller_.reset(new PanelDragController()); 72 drag_controller_.reset(new PanelDragController(this));
73 display_settings_provider_.reset(DisplaySettingsProvider::Create(this)); 73 display_settings_provider_.reset(DisplaySettingsProvider::Create(this));
74 74
75 OnDisplayChanged(); 75 OnDisplayChanged();
76 } 76 }
77 77
78 PanelManager::~PanelManager() { 78 PanelManager::~PanelManager() {
79 } 79 }
80 80
81 void PanelManager::OnDisplayChanged() { 81 void PanelManager::OnDisplayChanged() {
82 gfx::Rect work_area = display_settings_provider_->GetWorkArea(); 82 gfx::Rect work_area = display_settings_provider_->GetWorkArea();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 return panels; 319 return panels;
320 } 320 }
321 321
322 int PanelManager::overflow_strip_width() const { 322 int PanelManager::overflow_strip_width() const {
323 return kOverflowStripThickness; 323 return kOverflowStripThickness;
324 } 324 }
325 325
326 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { 326 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) {
327 panel_mouse_watcher_.reset(watcher); 327 panel_mouse_watcher_.reset(watcher);
328 } 328 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698