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

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

Issue 126513004: Rename RootWindowHost to WindowTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 11 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 | Annotate | Revision Log
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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Called when ScreenLocker is ready to close, but not yet destroyed. 191 // Called when ScreenLocker is ready to close, but not yet destroyed.
192 // Can be used to display "hiding" animations on unlock. 192 // Can be used to display "hiding" animations on unlock.
193 // |callback| will be called when all animations are done. 193 // |callback| will be called when all animations are done.
194 void OnLockScreenHide(base::Closure& callback); 194 void OnLockScreenHide(base::Closure& callback);
195 195
196 // Sets up the callback that should be called once lock animation is finished. 196 // Sets up the callback that should be called once lock animation is finished.
197 // Callback is guaranteed to be called once and then discarded. 197 // Callback is guaranteed to be called once and then discarded.
198 void SetLockScreenDisplayedCallback(const base::Closure& callback); 198 void SetLockScreenDisplayedCallback(const base::Closure& callback);
199 199
200 // RootWindowObserver override: 200 // RootWindowObserver override:
201 virtual void OnRootWindowHostCloseRequested( 201 virtual void OnWindowTreeHostCloseRequested(
202 const aura::RootWindow* root) OVERRIDE; 202 const aura::RootWindow* root) OVERRIDE;
203 203
204 // ShellObserver overrides: 204 // ShellObserver overrides:
205 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE; 205 virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
206 virtual void OnAppTerminating() OVERRIDE; 206 virtual void OnAppTerminating() OVERRIDE;
207 virtual void OnLockStateChanged(bool locked) OVERRIDE; 207 virtual void OnLockStateChanged(bool locked) OVERRIDE;
208 208
209 private: 209 private:
210 friend class test::PowerButtonControllerTest; 210 friend class test::PowerButtonControllerTest;
211 friend class test::LockStateControllerTest; 211 friend class test::LockStateControllerTest;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 base::OneShotTimer<LockStateController> real_shutdown_timer_; 319 base::OneShotTimer<LockStateController> real_shutdown_timer_;
320 320
321 base::Closure lock_screen_displayed_callback_; 321 base::Closure lock_screen_displayed_callback_;
322 322
323 DISALLOW_COPY_AND_ASSIGN(LockStateController); 323 DISALLOW_COPY_AND_ASSIGN(LockStateController);
324 }; 324 };
325 325
326 } // namespace ash 326 } // namespace ash
327 327
328 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_ 328 #endif // ASH_WM_LOCK_STATE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/caption_buttons/frame_maximize_button_unittest.cc ('k') | ash/wm/lock_state_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698