| 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_PANEL_OVERFLOW_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // |display_area| is in screen coordinates. | 31 // |display_area| is in screen coordinates. |
| 32 void SetDisplayArea(const gfx::Rect& display_area); | 32 void SetDisplayArea(const gfx::Rect& display_area); |
| 33 | 33 |
| 34 // Adds a panel to the strip. | 34 // Adds a panel to the strip. |
| 35 void AddPanel(Panel* panel); | 35 void AddPanel(Panel* panel); |
| 36 | 36 |
| 37 // Returns |false| if the panel is not in the strip. | 37 // Returns |false| if the panel is not in the strip. |
| 38 bool Remove(Panel* panel); | 38 bool Remove(Panel* panel); |
| 39 void RemoveAll(); | 39 void RemoveAll(); |
| 40 | 40 |
| 41 // Called when a panel's expansion state changes. | 41 // Called when a panel's layout state changes. |
| 42 void OnPanelExpansionStateChanged(Panel* panel); | 42 void OnPanelLayoutStateChanged(Panel* panel, Panel::LayoutState old_state); |
| 43 | 43 |
| 44 // Called when a panel is starting/stopping drawing an attention. | 44 // Called when a panel is starting/stopping drawing an attention. |
| 45 void OnPanelAttentionStateChanged(Panel* panel); | 45 void OnPanelAttentionStateChanged(Panel* panel); |
| 46 | 46 |
| 47 // Refreshes the layouts for all panels to reflect any possible changes. | 47 // Refreshes the layouts for all panels to reflect any possible changes. |
| 48 void Refresh(); | 48 void Refresh(); |
| 49 | 49 |
| 50 void OnFullScreenModeChanged(bool is_full_screen); | 50 void OnFullScreenModeChanged(bool is_full_screen); |
| 51 | 51 |
| 52 int num_panels() const { return static_cast<int>(panels_.size()); } | 52 int num_panels() const { return static_cast<int>(panels_.size()); } |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 int overflow_hover_animator_start_width_; | 140 int overflow_hover_animator_start_width_; |
| 141 int overflow_hover_animator_end_width_; | 141 int overflow_hover_animator_end_width_; |
| 142 | 142 |
| 143 // Invalid panel index. | 143 // Invalid panel index. |
| 144 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); | 144 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(PanelOverflowStrip); | 146 DISALLOW_COPY_AND_ASSIGN(PanelOverflowStrip); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ | 149 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ |
| OLD | NEW |