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

Side by Side Diff: ash/wm/status_area_layout_manager.h

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (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
« no previous file with comments | « ash/wm/stacking_controller.h ('k') | ash/wm/system_background_controller.h » ('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) 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 ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
6 #define ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ 6 #define ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
7 7
8 #include "ash/snap_to_pixel_layout_manager.h" 8 #include "ash/snap_to_pixel_layout_manager.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/aura/layout_manager.h" 11 #include "ui/aura/layout_manager.h"
12 12
13 namespace ash { 13 namespace ash {
14 class ShelfWidget; 14 class ShelfWidget;
15 15
16 // StatusAreaLayoutManager is a layout manager responsible for the status area. 16 // StatusAreaLayoutManager is a layout manager responsible for the status area.
17 // In any case when status area needs relayout it redirects this call to 17 // In any case when status area needs relayout it redirects this call to
18 // ShelfLayoutManager. 18 // ShelfLayoutManager.
19 class StatusAreaLayoutManager : public SnapToPixelLayoutManager { 19 class StatusAreaLayoutManager : public SnapToPixelLayoutManager {
20 public: 20 public:
21 StatusAreaLayoutManager(aura::Window* container, ShelfWidget* shelf); 21 StatusAreaLayoutManager(aura::Window* container, ShelfWidget* shelf);
22 virtual ~StatusAreaLayoutManager(); 22 virtual ~StatusAreaLayoutManager();
23 23
24 // Overridden from aura::LayoutManager: 24 // Overridden from aura::LayoutManager:
25 virtual void OnWindowResized() OVERRIDE; 25 virtual void OnWindowResized() override;
26 virtual void SetChildBounds(aura::Window* child, 26 virtual void SetChildBounds(aura::Window* child,
27 const gfx::Rect& requested_bounds) OVERRIDE; 27 const gfx::Rect& requested_bounds) override;
28 28
29 private: 29 private:
30 // Updates layout of the status area. Effectively calls ShelfLayoutManager 30 // Updates layout of the status area. Effectively calls ShelfLayoutManager
31 // to update layout of the shelf. 31 // to update layout of the shelf.
32 void LayoutStatusArea(); 32 void LayoutStatusArea();
33 33
34 // True when inside LayoutStatusArea method. 34 // True when inside LayoutStatusArea method.
35 // Used to prevent calling itself again from SetChildBounds(). 35 // Used to prevent calling itself again from SetChildBounds().
36 bool in_layout_; 36 bool in_layout_;
37 37
38 ShelfWidget* shelf_; 38 ShelfWidget* shelf_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager); 40 DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager);
41 }; 41 };
42 42
43 } // namespace ash 43 } // namespace ash
44 44
45 #endif // ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ 45 #endif // ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/stacking_controller.h ('k') | ash/wm/system_background_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698