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

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

Issue 8863011: Panels back behind a flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo 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
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17 matching lines...) Expand all
28 class PanelStrip; 28 class PanelStrip;
29 29
30 // This class manages a set of panels. 30 // This class manages a set of panels.
31 class PanelManager : public AutoHidingDesktopBar::Observer { 31 class PanelManager : public AutoHidingDesktopBar::Observer {
32 public: 32 public:
33 typedef std::vector<Panel*> Panels; 33 typedef std::vector<Panel*> Panels;
34 34
35 // Returns a single instance. 35 // Returns a single instance.
36 static PanelManager* GetInstance(); 36 static PanelManager* GetInstance();
37 37
38 // Returns true if panels should always be used.
39 static bool ShouldUsePanels(const std::string& id);
Dmitry Titov 2011/12/08 20:59:01 could we name the param 'extension_id' to make it
asargent_no_longer_on_chrome 2011/12/08 21:21:26 nit: it might make sense to either rename the para
40
38 // Called when the display is changed, i.e. work area is updated. 41 // Called when the display is changed, i.e. work area is updated.
39 void OnDisplayChanged(); 42 void OnDisplayChanged();
40 43
41 // Creates a panel and returns it. The panel might be queued for display 44 // Creates a panel and returns it. The panel might be queued for display
42 // later. 45 // later.
43 Panel* CreatePanel(Browser* browser); 46 Panel* CreatePanel(Browser* browser);
44 47
45 void Remove(Panel* panel); 48 void Remove(Panel* panel);
46 void RemoveAll(); 49 void RemoveAll();
47 50
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Timer used to track if the current active app is in full screen mode. 185 // Timer used to track if the current active app is in full screen mode.
183 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; 186 base::RepeatingTimer<PanelManager> full_screen_mode_timer_;
184 187
185 // True if current active app is in full screen mode. 188 // True if current active app is in full screen mode.
186 bool is_full_screen_; 189 bool is_full_screen_;
187 190
188 DISALLOW_COPY_AND_ASSIGN(PanelManager); 191 DISALLOW_COPY_AND_ASSIGN(PanelManager);
189 }; 192 };
190 193
191 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 194 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/panels/panel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698