| OLD | NEW |
| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 223 |
| 224 void PanelManager::RemoveAll() { | 224 void PanelManager::RemoveAll() { |
| 225 panel_strip_->RemoveAll(); | 225 panel_strip_->RemoveAll(); |
| 226 panel_overflow_strip_->RemoveAll(); | 226 panel_overflow_strip_->RemoveAll(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 int PanelManager::num_panels() const { | 229 int PanelManager::num_panels() const { |
| 230 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels(); | 230 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 const PanelManager::Panels& PanelManager::panels() const { | 233 std::vector<Panel*> PanelManager::panels() const { |
| 234 return panel_strip_->panels(); | 234 std::vector<Panel*> panels = panel_strip_->panels(); |
| 235 for (PanelOverflowStrip::Panels::const_iterator iter = |
| 236 panel_overflow_strip_->panels().begin(); |
| 237 iter != panel_overflow_strip_->panels().end(); ++iter) |
| 238 panels.push_back(*iter); |
| 239 return panels; |
| 235 } | 240 } |
| 236 | 241 |
| 237 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { | 242 void PanelManager::SetMouseWatcher(PanelMouseWatcher* watcher) { |
| 238 panel_mouse_watcher_.reset(watcher); | 243 panel_mouse_watcher_.reset(watcher); |
| 239 } | 244 } |
| OLD | NEW |