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

Side by Side Diff: ash/wm/system_modal_container_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 (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_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 6 #define ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 24 matching lines...) Expand all
35 : public SnapToPixelLayoutManager, 35 : public SnapToPixelLayoutManager,
36 public aura::WindowObserver, 36 public aura::WindowObserver,
37 public keyboard::KeyboardControllerObserver { 37 public keyboard::KeyboardControllerObserver {
38 public: 38 public:
39 explicit SystemModalContainerLayoutManager(aura::Window* container); 39 explicit SystemModalContainerLayoutManager(aura::Window* container);
40 virtual ~SystemModalContainerLayoutManager(); 40 virtual ~SystemModalContainerLayoutManager();
41 41
42 bool has_modal_background() const { return modal_background_ != NULL; } 42 bool has_modal_background() const { return modal_background_ != NULL; }
43 43
44 // Overridden from SnapToPixelLayoutManager: 44 // Overridden from SnapToPixelLayoutManager:
45 virtual void OnWindowResized() OVERRIDE; 45 virtual void OnWindowResized() override;
46 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; 46 virtual void OnWindowAddedToLayout(aura::Window* child) override;
47 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 47 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override;
48 virtual void SetChildBounds(aura::Window* child, 48 virtual void SetChildBounds(aura::Window* child,
49 const gfx::Rect& requested_bounds) OVERRIDE; 49 const gfx::Rect& requested_bounds) override;
50 50
51 // Overridden from aura::WindowObserver: 51 // Overridden from aura::WindowObserver:
52 virtual void OnWindowPropertyChanged(aura::Window* window, 52 virtual void OnWindowPropertyChanged(aura::Window* window,
53 const void* key, 53 const void* key,
54 intptr_t old) OVERRIDE; 54 intptr_t old) override;
55 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 55 virtual void OnWindowDestroying(aura::Window* window) override;
56 56
57 // Overridden from keyboard::KeyboardControllerObserver: 57 // Overridden from keyboard::KeyboardControllerObserver:
58 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; 58 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
59 59
60 // Can a given |window| receive and handle input events? 60 // Can a given |window| receive and handle input events?
61 bool CanWindowReceiveEvents(aura::Window* window); 61 bool CanWindowReceiveEvents(aura::Window* window);
62 62
63 // Activates next modal window if any. Returns false if there 63 // Activates next modal window if any. Returns false if there
64 // are no more modal windows in this layout manager. 64 // are no more modal windows in this layout manager.
65 bool ActivateNextModalWindow(); 65 bool ActivateNextModalWindow();
66 66
67 // Creates modal background window, which is a partially-opaque 67 // Creates modal background window, which is a partially-opaque
68 // fullscreen window. If there is already a modal background window, 68 // fullscreen window. If there is already a modal background window,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // A stack of modal windows. Only the topmost can receive events. 105 // A stack of modal windows. Only the topmost can receive events.
106 std::vector<aura::Window*> modal_windows_; 106 std::vector<aura::Window*> modal_windows_;
107 107
108 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager); 108 DISALLOW_COPY_AND_ASSIGN(SystemModalContainerLayoutManager);
109 }; 109 };
110 110
111 } // namespace ash 111 } // namespace ash
112 112
113 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_ 113 #endif // ASH_WM_SYSTEM_MODAL_CONTAINER_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/system_modal_container_event_filter.h ('k') | ash/wm/system_modal_container_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698