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

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

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac/linux compile Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/fullscreen.h" 9 #include "chrome/browser/fullscreen.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 void PanelManager::RemoveAll() { 219 void PanelManager::RemoveAll() {
220 panel_strip_->RemoveAll(); 220 panel_strip_->RemoveAll();
221 panel_overflow_strip_->RemoveAll(); 221 panel_overflow_strip_->RemoveAll();
222 } 222 }
223 223
224 int PanelManager::num_panels() const { 224 int PanelManager::num_panels() const {
225 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels(); 225 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels();
226 } 226 }
227 227
228 bool PanelManager::is_dragging_panel() const {
229 return panel_strip_->is_dragging_panel();
230 }
231
232 const PanelManager::Panels& PanelManager::panels() const { 228 const PanelManager::Panels& PanelManager::panels() const {
233 return panel_strip_->panels(); 229 return panel_strip_->panels();
234 } 230 }
231
232 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) {
233 panel_mouse_watcher_.reset(watcher);
234 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698