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

Side by Side Diff: chrome/browser/ui/panels/panel_overflow_strip.h

Issue 8827011: Panel strip refactor cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced 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 #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 12 matching lines...) Expand all
23 public: 23 public:
24 typedef std::vector<Panel*> Panels; 24 typedef std::vector<Panel*> Panels;
25 25
26 explicit PanelOverflowStrip(PanelManager* panel_manager); 26 explicit PanelOverflowStrip(PanelManager* panel_manager);
27 virtual ~PanelOverflowStrip(); 27 virtual ~PanelOverflowStrip();
28 28
29 // Sets the display area of the overflow strip. 29 // Sets the display area of the overflow strip.
30 // |display_area| is in screen coordinates. 30 // |display_area| is in screen coordinates.
31 void SetDisplayArea(const gfx::Rect& display_area); 31 void SetDisplayArea(const gfx::Rect& display_area);
32 32
33 // Adds a panel to the strip. |is_new| indicates if the panel is a newly 33 // Adds a panel to the strip.
34 // created panel or one that is transitioning from another grouping of panels. 34 void AddPanel(Panel* panel);
35 void AddPanel(Panel* panel, bool is_new);
36 35
37 // Returns |false| if the panel is not in the strip. 36 // Returns |false| if the panel is not in the strip.
38 bool Remove(Panel* panel); 37 bool Remove(Panel* panel);
39 void RemoveAll(); 38 void RemoveAll();
40 39
41 // Called when a panel's expansion state changes. 40 // Called when a panel's expansion state changes.
42 void OnPanelExpansionStateChanged( 41 void OnPanelExpansionStateChanged(
43 Panel* panel, Panel::ExpansionState old_state); 42 Panel* panel, Panel::ExpansionState old_state);
44 43
45 // Refreshes the layouts for all panels to reflect any possible changes. 44 // Refreshes the layouts for all panels to reflect any possible changes.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int overflow_hover_animator_start_width_; 91 int overflow_hover_animator_start_width_;
93 int overflow_hover_animator_end_width_; 92 int overflow_hover_animator_end_width_;
94 93
95 // Invalid panel index. 94 // Invalid panel index.
96 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); 95 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1);
97 96
98 DISALLOW_COPY_AND_ASSIGN(PanelOverflowStrip); 97 DISALLOW_COPY_AND_ASSIGN(PanelOverflowStrip);
99 }; 98 };
100 99
101 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_ 100 #endif // CHROME_BROWSER_UI_PANELS_PANEL_OVERFLOW_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_manager.cc ('k') | chrome/browser/ui/panels/panel_overflow_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698