| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <set> | 9 #include <set> |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/ui/panels/display_settings_provider.h" | 12 #include "chrome/browser/ui/panels/display_settings_provider.h" |
| 13 #include "chrome/browser/ui/panels/panel.h" | 13 #include "chrome/browser/ui/panels/panel.h" |
| 14 #include "chrome/browser/ui/panels/panel_strip.h" | 14 #include "chrome/browser/ui/panels/panel_strip.h" |
| 15 #include "chrome/browser/ui/panels/panel_mouse_watcher_observer.h" | 15 #include "chrome/browser/ui/panels/panel_mouse_watcher_observer.h" |
| 16 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 17 | 17 |
| 18 class Browser; | |
| 19 class PanelManager; | 18 class PanelManager; |
| 20 | 19 |
| 21 // This class manages a group of panels displayed in a horizontal strip, | 20 // This class manages a group of panels displayed in a horizontal strip, |
| 22 // positioning the panels and controlling how they are displayed. | 21 // positioning the panels and controlling how they are displayed. |
| 23 // Panels in the strip appear minimized, showing title-only or expanded. | 22 // Panels in the strip appear minimized, showing title-only or expanded. |
| 24 // All panels in the strip are contained within the bounds of the strip. | 23 // All panels in the strip are contained within the bounds of the strip. |
| 25 class DockedPanelStrip : public PanelStrip, | 24 class DockedPanelStrip : public PanelStrip, |
| 26 public PanelMouseWatcherObserver, | 25 public PanelMouseWatcherObserver, |
| 27 public DisplaySettingsProvider::DesktopBarObserver { | 26 public DisplaySettingsProvider::DesktopBarObserver { |
| 28 public: | 27 public: |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 195 |
| 197 // Used to save the placement information for a panel. | 196 // Used to save the placement information for a panel. |
| 198 PanelPlacement saved_panel_placement_; | 197 PanelPlacement saved_panel_placement_; |
| 199 | 198 |
| 200 static const int kPanelsHorizontalSpacing = 4; | 199 static const int kPanelsHorizontalSpacing = 4; |
| 201 | 200 |
| 202 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 201 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 204 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| OLD | NEW |