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

Side by Side Diff: chrome/browser/ui/ash/multi_user/multi_user_window_manager_chromeos.h

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ANIMATION_SPEED_FAST, // Unit test speed which test animations. 67 ANIMATION_SPEED_FAST, // Unit test speed which test animations.
68 ANIMATION_SPEED_DISABLED // Unit tests which do not require animations. 68 ANIMATION_SPEED_DISABLED // Unit tests which do not require animations.
69 }; 69 };
70 70
71 // Create the manager and use |active_user_id| as the active user. 71 // Create the manager and use |active_user_id| as the active user.
72 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id); 72 explicit MultiUserWindowManagerChromeOS(const std::string& active_user_id);
73 virtual ~MultiUserWindowManagerChromeOS(); 73 virtual ~MultiUserWindowManagerChromeOS();
74 74
75 // MultiUserWindowManager overrides: 75 // MultiUserWindowManager overrides:
76 virtual void SetWindowOwner( 76 virtual void SetWindowOwner(
77 aura::Window* window, const std::string& user_id) OVERRIDE; 77 aura::Window* window, const std::string& user_id) override;
78 virtual const std::string& GetWindowOwner( 78 virtual const std::string& GetWindowOwner(
79 aura::Window* window) const OVERRIDE; 79 aura::Window* window) const override;
80 virtual void ShowWindowForUser( 80 virtual void ShowWindowForUser(
81 aura::Window* window, const std::string& user_id) OVERRIDE; 81 aura::Window* window, const std::string& user_id) override;
82 virtual bool AreWindowsSharedAmongUsers() const OVERRIDE; 82 virtual bool AreWindowsSharedAmongUsers() const override;
83 virtual void GetOwnersOfVisibleWindows( 83 virtual void GetOwnersOfVisibleWindows(
84 std::set<std::string>* user_ids) const OVERRIDE; 84 std::set<std::string>* user_ids) const override;
85 virtual bool IsWindowOnDesktopOfUser( 85 virtual bool IsWindowOnDesktopOfUser(
86 aura::Window* window, 86 aura::Window* window,
87 const std::string& user_id) const OVERRIDE; 87 const std::string& user_id) const override;
88 virtual const std::string& GetUserPresentingWindow( 88 virtual const std::string& GetUserPresentingWindow(
89 aura::Window* window) const OVERRIDE; 89 aura::Window* window) const override;
90 virtual void AddUser(content::BrowserContext* context) OVERRIDE; 90 virtual void AddUser(content::BrowserContext* context) override;
91 virtual void AddObserver(Observer* observer) OVERRIDE; 91 virtual void AddObserver(Observer* observer) override;
92 virtual void RemoveObserver(Observer* observer) OVERRIDE; 92 virtual void RemoveObserver(Observer* observer) override;
93 93
94 // SessionStateObserver overrides: 94 // SessionStateObserver overrides:
95 virtual void ActiveUserChanged(const std::string& user_id) OVERRIDE; 95 virtual void ActiveUserChanged(const std::string& user_id) override;
96 96
97 // WindowObserver overrides: 97 // WindowObserver overrides:
98 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE; 98 virtual void OnWindowDestroyed(aura::Window* window) override;
99 virtual void OnWindowVisibilityChanging(aura::Window* window, 99 virtual void OnWindowVisibilityChanging(aura::Window* window,
100 bool visible) OVERRIDE; 100 bool visible) override;
101 virtual void OnWindowVisibilityChanged(aura::Window* window, 101 virtual void OnWindowVisibilityChanged(aura::Window* window,
102 bool visible) OVERRIDE; 102 bool visible) override;
103 103
104 // TransientWindowObserver overrides: 104 // TransientWindowObserver overrides:
105 virtual void OnTransientChildAdded(aura::Window* window, 105 virtual void OnTransientChildAdded(aura::Window* window,
106 aura::Window* transient) OVERRIDE; 106 aura::Window* transient) override;
107 virtual void OnTransientChildRemoved(aura::Window* window, 107 virtual void OnTransientChildRemoved(aura::Window* window,
108 aura::Window* transient) OVERRIDE; 108 aura::Window* transient) override;
109 109
110 // content::NotificationObserver overrides: 110 // content::NotificationObserver overrides:
111 virtual void Observe(int type, 111 virtual void Observe(int type,
112 const content::NotificationSource& source, 112 const content::NotificationSource& source,
113 const content::NotificationDetails& details) OVERRIDE; 113 const content::NotificationDetails& details) override;
114 114
115 // Disable any animations for unit tests. 115 // Disable any animations for unit tests.
116 void SetAnimationSpeedForTest(AnimationSpeed speed); 116 void SetAnimationSpeedForTest(AnimationSpeed speed);
117 117
118 // Returns true when a user switch animation is running. For unit tests. 118 // Returns true when a user switch animation is running. For unit tests.
119 bool IsAnimationRunningForTest(); 119 bool IsAnimationRunningForTest();
120 120
121 // Returns the current user for unit tests. 121 // Returns the current user for unit tests.
122 const std::string& GetCurrentUserForTest() const; 122 const std::string& GetCurrentUserForTest() const;
123 123
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 262
263 // The animation between users. 263 // The animation between users.
264 scoped_ptr<UserSwichAnimatorChromeOS> animation_; 264 scoped_ptr<UserSwichAnimatorChromeOS> animation_;
265 265
266 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS); 266 DISALLOW_COPY_AND_ASSIGN(MultiUserWindowManagerChromeOS);
267 }; 267 };
268 268
269 } // namespace chrome 269 } // namespace chrome
270 270
271 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _ 271 #endif // CHROME_BROWSER_UI_ASH_MULTI_USER_MULTI_USER_WINDOW_MANAGER_CHROMEOS_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698