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

Side by Side Diff: ash/wm/lock_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
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_LOCK_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_LOCK_LAYOUT_MANAGER_H_
6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_ 6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "ash/snap_to_pixel_layout_manager.h" 10 #include "ash/snap_to_pixel_layout_manager.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 class ASH_EXPORT LockLayoutManager 47 class ASH_EXPORT LockLayoutManager
48 : public SnapToPixelLayoutManager, 48 : public SnapToPixelLayoutManager,
49 public aura::WindowObserver, 49 public aura::WindowObserver,
50 public VirtualKeyboardStateObserver, 50 public VirtualKeyboardStateObserver,
51 public keyboard::KeyboardControllerObserver { 51 public keyboard::KeyboardControllerObserver {
52 public: 52 public:
53 explicit LockLayoutManager(aura::Window* window); 53 explicit LockLayoutManager(aura::Window* window);
54 virtual ~LockLayoutManager(); 54 virtual ~LockLayoutManager();
55 55
56 // Overridden from aura::LayoutManager: 56 // Overridden from aura::LayoutManager:
57 virtual void OnWindowResized() OVERRIDE; 57 virtual void OnWindowResized() override;
58 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 58 virtual void OnWindowAddedToLayout(aura::Window* child) override;
59 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 59 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override;
60 virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE; 60 virtual void OnWindowRemovedFromLayout(aura::Window* child) override;
61 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 61 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
62 bool visibile) OVERRIDE; 62 bool visibile) override;
63 virtual void SetChildBounds(aura::Window* child, 63 virtual void SetChildBounds(aura::Window* child,
64 const gfx::Rect& requested_bounds) OVERRIDE; 64 const gfx::Rect& requested_bounds) override;
65 65
66 // Overriden from aura::WindowObserver: 66 // Overriden from aura::WindowObserver:
67 virtual void OnWindowHierarchyChanged( 67 virtual void OnWindowHierarchyChanged(
68 const WindowObserver::HierarchyChangeParams& params) OVERRIDE; 68 const WindowObserver::HierarchyChangeParams& params) override;
69 virtual void OnWindowPropertyChanged(aura::Window* window, 69 virtual void OnWindowPropertyChanged(aura::Window* window,
70 const void* key, 70 const void* key,
71 intptr_t old) OVERRIDE; 71 intptr_t old) override;
72 virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE; 72 virtual void OnWindowStackingChanged(aura::Window* window) override;
73 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 73 virtual void OnWindowDestroying(aura::Window* window) override;
74 virtual void OnWindowBoundsChanged(aura::Window* window, 74 virtual void OnWindowBoundsChanged(aura::Window* window,
75 const gfx::Rect& old_bounds, 75 const gfx::Rect& old_bounds,
76 const gfx::Rect& new_bounds) OVERRIDE; 76 const gfx::Rect& new_bounds) override;
77 77
78 // VirtualKeyboardStateObserver overrides: 78 // VirtualKeyboardStateObserver overrides:
79 virtual void OnVirtualKeyboardStateChanged(bool activated) OVERRIDE; 79 virtual void OnVirtualKeyboardStateChanged(bool activated) override;
80 80
81 // keyboard::KeyboardControllerObserver overrides: 81 // keyboard::KeyboardControllerObserver overrides:
82 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; 82 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
83 83
84 private: 84 private:
85 // Adjusts the bounds of all managed windows when the display area changes. 85 // Adjusts the bounds of all managed windows when the display area changes.
86 // This happens when the display size, work area insets has changed. 86 // This happens when the display size, work area insets has changed.
87 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); 87 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event);
88 88
89 aura::Window* window_; 89 aura::Window* window_;
90 aura::Window* root_window_; 90 aura::Window* root_window_;
91 91
92 // True is subscribed as keyboard controller observer. 92 // True is subscribed as keyboard controller observer.
93 bool is_observing_keyboard_; 93 bool is_observing_keyboard_;
94 94
95 // The bounds of the keyboard. 95 // The bounds of the keyboard.
96 gfx::Rect keyboard_bounds_; 96 gfx::Rect keyboard_bounds_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); 98 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager);
99 }; 99 };
100 100
101 } // namespace ash 101 } // namespace ash
102 102
103 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ 103 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/immersive_fullscreen_controller_unittest.cc ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698