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

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

Issue 9195003: Move IN_OVERFLOW from Panel::ExpansionState to new enum. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 11 months 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_overflow_browsertest.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