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

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

Issue 671653002: Standardize usage of virtual/override/final in chrome/browser/ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 7
8 #include <list> 8 #include <list>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 private: 190 private:
191 friend struct base::DefaultLazyInstanceTraits<PanelManager>; 191 friend struct base::DefaultLazyInstanceTraits<PanelManager>;
192 192
193 PanelManager(); 193 PanelManager();
194 virtual ~PanelManager(); 194 virtual ~PanelManager();
195 195
196 void Initialize(DisplaySettingsProvider* provider); 196 void Initialize(DisplaySettingsProvider* provider);
197 197
198 // Overridden from DisplaySettingsProvider::DisplayObserver: 198 // Overridden from DisplaySettingsProvider::DisplayObserver:
199 virtual void OnDisplayChanged() override; 199 void OnDisplayChanged() override;
200 200
201 // Overridden from DisplaySettingsProvider::FullScreenObserver: 201 // Overridden from DisplaySettingsProvider::FullScreenObserver:
202 virtual void OnFullScreenModeChanged(bool is_full_screen) override; 202 void OnFullScreenModeChanged(bool is_full_screen) override;
203 203
204 // Returns the collection to which a new panel should add. The new panel 204 // Returns the collection to which a new panel should add. The new panel
205 // is expected to be created with |bounds| and |mode|. The size of |bounds| 205 // is expected to be created with |bounds| and |mode|. The size of |bounds|
206 // could be used to determine which collection is more appropriate to have 206 // could be used to determine which collection is more appropriate to have
207 // the new panel. Upon return, |positioning_mask| contains the required mask 207 // the new panel. Upon return, |positioning_mask| contains the required mask
208 // to be applied when the new panel is being added to the collection. 208 // to be applied when the new panel is being added to the collection.
209 PanelCollection* GetCollectionForNewPanel( 209 PanelCollection* GetCollectionForNewPanel(
210 Panel* new_panel, 210 Panel* new_panel,
211 const gfx::Rect& bounds, 211 const gfx::Rect& bounds,
212 CreateMode mode, 212 CreateMode mode,
(...skipping 21 matching lines...) Expand all
234 234
235 // Whether or not bounds will be updated when the preferred content size is 235 // Whether or not bounds will be updated when the preferred content size is
236 // changed. The testing code could set this flag to false so that other tests 236 // changed. The testing code could set this flag to false so that other tests
237 // will not be affected. 237 // will not be affected.
238 bool auto_sizing_enabled_; 238 bool auto_sizing_enabled_;
239 239
240 DISALLOW_COPY_AND_ASSIGN(PanelManager); 240 DISALLOW_COPY_AND_ASSIGN(PanelManager);
241 }; 241 };
242 242
243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ 243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698