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

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

Issue 8774013: Add panel overflow logic to panel strip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 // Called when the display is changed, i.e. work area is updated. 36 // Called when the display is changed, i.e. work area is updated.
37 void OnDisplayChanged(); 37 void OnDisplayChanged();
38 38
39 // Creates a panel and returns it. The panel might be queued for display 39 // Creates a panel and returns it. The panel might be queued for display
40 // later. 40 // later.
41 Panel* CreatePanel(Browser* browser); 41 Panel* CreatePanel(Browser* browser);
42 42
43 void Remove(Panel* panel); 43 void Remove(Panel* panel);
44 void RemoveAll(); 44 void RemoveAll();
45 45
46 // Asynchronous confirmation of panel having been removed.
47 void OnPanelRemoved(Panel* panel);
jianli 2011/12/01 21:36:28 Why removing it? PanelOverflowStrip also needs to
jennb 2011/12/01 23:10:17 Putting back. Obviously a miscommunication from ou
48
49 // Drags the given panel. 46 // Drags the given panel.
50 void StartDragging(Panel* panel); 47 void StartDragging(Panel* panel);
51 void Drag(int delta_x); 48 void Drag(int delta_x);
52 void EndDragging(bool cancelled); 49 void EndDragging(bool cancelled);
53 50
54 // Invoked when a panel's expansion state changes. 51 // Invoked when a panel's expansion state changes.
55 void OnPanelExpansionStateChanged(Panel::ExpansionState old_state, 52 void OnPanelExpansionStateChanged(Panel::ExpansionState old_state,
56 Panel::ExpansionState new_state); 53 Panel::ExpansionState new_state);
57 54
58 // Invoked when the preferred window size of the given panel might need to 55 // Invoked when the preferred window size of the given panel might need to
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 173
177 // Whether or not bounds will be updated when the preferred content size is 174 // Whether or not bounds will be updated when the preferred content size is
178 // changed. The testing code could set this flag to false so that other tests 175 // changed. The testing code could set this flag to false so that other tests
179 // will not be affected. 176 // will not be affected.
180 bool auto_sizing_enabled_; 177 bool auto_sizing_enabled_;
181 178
182 DISALLOW_COPY_AND_ASSIGN(PanelManager); 179 DISALLOW_COPY_AND_ASSIGN(PanelManager);
183 }; 180 };
184 181
185 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 182 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698