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

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

Issue 9353002: Created new PanelStrip base class and make DockedPanelStrip and OverflowPanelStrip its subclasses. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review feedback Created 8 years, 10 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_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 19 matching lines...) Expand all
30 static bool ShouldUsePanels(const std::string& extension_id); 30 static bool ShouldUsePanels(const std::string& extension_id);
31 31
32 // Called when the display is changed, i.e. work area is updated. 32 // Called when the display is changed, i.e. work area is updated.
33 void OnDisplayChanged(); 33 void OnDisplayChanged();
34 34
35 // Creates a panel and returns it. The panel might be queued for display 35 // Creates a panel and returns it. The panel might be queued for display
36 // later. 36 // later.
37 Panel* CreatePanel(Browser* browser); 37 Panel* CreatePanel(Browser* browser);
38 38
39 void Remove(Panel* panel); 39 void Remove(Panel* panel);
40 void RemoveAll(); 40
41 // Close all panels (asynchronous). Panels will be removed after closing.
42 void CloseAll();
41 43
42 // Asynchronous confirmation of panel having been removed. 44 // Asynchronous confirmation of panel having been removed.
43 void OnPanelRemoved(Panel* panel); 45 void OnPanelRemoved(Panel* panel);
44 46
45 // Drags the given panel. 47 // Drags the given panel.
46 void StartDragging(Panel* panel); 48 void StartDragging(Panel* panel);
47 void Drag(int delta_x); 49 void Drag(int delta_x);
48 void EndDragging(bool cancelled); 50 void EndDragging(bool cancelled);
49 51
50 // Invoked when a panel's expansion state changes. 52 // Invoked when a panel's expansion state changes.
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 // Timer used to track if the current active app is in full screen mode. 192 // Timer used to track if the current active app is in full screen mode.
191 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; 193 base::RepeatingTimer<PanelManager> full_screen_mode_timer_;
192 194
193 // True if current active app is in full screen mode. 195 // True if current active app is in full screen mode.
194 bool is_full_screen_; 196 bool is_full_screen_;
195 197
196 DISALLOW_COPY_AND_ASSIGN(PanelManager); 198 DISALLOW_COPY_AND_ASSIGN(PanelManager);
197 }; 199 };
198 200
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 201 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698