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

Side by Side Diff: ash/snap_to_pixel_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/shell_unittest.cc ('k') | ash/sticky_keys/sticky_keys_overlay.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_
6 #define ASH_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ 6 #define ASH_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/aura/layout_manager.h" 10 #include "ui/aura/layout_manager.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 // A layout manager that places children's layer at the physical pixel 14 // A layout manager that places children's layer at the physical pixel
15 // boundaries. 15 // boundaries.
16 class ASH_EXPORT SnapToPixelLayoutManager : public aura::LayoutManager { 16 class ASH_EXPORT SnapToPixelLayoutManager : public aura::LayoutManager {
17 public: 17 public:
18 explicit SnapToPixelLayoutManager(aura::Window* container); 18 explicit SnapToPixelLayoutManager(aura::Window* container);
19 virtual ~SnapToPixelLayoutManager(); 19 virtual ~SnapToPixelLayoutManager();
20 20
21 protected: 21 protected:
22 // Overridden from aura::LayoutManager: 22 // Overridden from aura::LayoutManager:
23 virtual void OnWindowResized() OVERRIDE; 23 virtual void OnWindowResized() override;
24 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 24 virtual void OnWindowAddedToLayout(aura::Window* child) override;
25 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 25 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override;
26 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; 26 virtual void OnWindowRemovedFromLayout(aura::Window* child) override;
27 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 27 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
28 bool visibile) OVERRIDE; 28 bool visibile) override;
29 virtual void SetChildBounds(aura::Window* child, 29 virtual void SetChildBounds(aura::Window* child,
30 const gfx::Rect& requested_bounds) OVERRIDE; 30 const gfx::Rect& requested_bounds) override;
31 31
32 private: 32 private:
33 DISALLOW_COPY_AND_ASSIGN(SnapToPixelLayoutManager); 33 DISALLOW_COPY_AND_ASSIGN(SnapToPixelLayoutManager);
34 }; 34 };
35 35
36 } // namespace ash 36 } // namespace ash
37 37
38 #endif // ASH_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_ 38 #endif // ASH_WM_SNAP_TO_PIXEL_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shell_unittest.cc ('k') | ash/sticky_keys/sticky_keys_overlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698