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

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

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 years, 1 month 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 | « no previous file | ash/wm/lock_state_controller.cc » ('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 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 ASH_WM_LOCK_STATE_CONTROLLER_H_ 5 #ifndef ASH_WM_LOCK_STATE_CONTROLLER_H_
6 #define ASH_WM_LOCK_STATE_CONTROLLER_H_ 6 #define ASH_WM_LOCK_STATE_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_observer.h" 9 #include "ash/shell_observer.h"
10 #include "ash/wm/lock_state_observer.h" 10 #include "ash/wm/lock_state_observer.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 DISALLOW_COPY_AND_ASSIGN(TestApi); 142 DISALLOW_COPY_AND_ASSIGN(TestApi);
143 }; 143 };
144 144
145 LockStateController(); 145 LockStateController();
146 ~LockStateController() override; 146 ~LockStateController() override;
147 147
148 void SetDelegate(scoped_ptr<LockStateControllerDelegate> delegate); 148 void SetDelegate(scoped_ptr<LockStateControllerDelegate> delegate);
149 149
150 void AddObserver(LockStateObserver* observer); 150 void AddObserver(LockStateObserver* observer);
151 void RemoveObserver(LockStateObserver* observer); 151 void RemoveObserver(LockStateObserver* observer);
152 bool HasObserver(LockStateObserver* observer); 152 bool HasObserver(const LockStateObserver* observer) const;
153 153
154 // Starts locking (with slow animation) that can be cancelled. 154 // Starts locking (with slow animation) that can be cancelled.
155 // After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation() 155 // After locking and |kLockToShutdownTimeoutMs| StartShutdownAnimation()
156 // will be called unless CancelShutdownAnimation() is called, if 156 // will be called unless CancelShutdownAnimation() is called, if
157 // |shutdown_after_lock| is true. 157 // |shutdown_after_lock| is true.
158 void StartLockAnimation(bool shutdown_after_lock); 158 void StartLockAnimation(bool shutdown_after_lock);
159 159
160 // Starts shutting down (with slow animation) that can be cancelled. 160 // Starts shutting down (with slow animation) that can be cancelled.
161 void StartShutdownAnimation(); 161 void StartShutdownAnimation();
162 162
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 base::Closure lock_screen_displayed_callback_; 326 base::Closure lock_screen_displayed_callback_;
327 327
328 base::WeakPtrFactory<LockStateController> weak_ptr_factory_; 328 base::WeakPtrFactory<LockStateController> weak_ptr_factory_;
329 329
330 DISALLOW_COPY_AND_ASSIGN(LockStateController); 330 DISALLOW_COPY_AND_ASSIGN(LockStateController);
331 }; 331 };
332 332
333 } // namespace ash 333 } // namespace ash
334 334
335 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ 335 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698