| OLD | NEW |
| 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 #include "ash/wm/session_state_controller.h" | 5 #include "ash/wm/session_state_controller.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
| 9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
| 10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
| 11 #include "ash/wm/session_state_animator.h" | 11 #include "ash/wm/session_state_animator.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "ui/aura/root_window.h" | 13 #include "ui/aura/root_window.h" |
| 14 #include "ui/aura/shared/compound_event_filter.h" | 14 #include "ui/views/corewm/compound_event_filter.h" |
| 15 | 15 |
| 16 #if defined(OS_CHROMEOS) | 16 #if defined(OS_CHROMEOS) |
| 17 #include "base/chromeos/chromeos_version.h" | 17 #include "base/chromeos/chromeos_version.h" |
| 18 #endif | 18 #endif |
| 19 | 19 |
| 20 namespace ash { | 20 namespace ash { |
| 21 | 21 |
| 22 const int SessionStateController::kLockTimeoutMs = 400; | 22 const int SessionStateController::kLockTimeoutMs = 400; |
| 23 const int SessionStateController::kShutdownTimeoutMs = 400; | 23 const int SessionStateController::kShutdownTimeoutMs = 400; |
| 24 const int SessionStateController::kLockFailTimeoutMs = 4000; | 24 const int SessionStateController::kLockFailTimeoutMs = 4000; |
| 25 const int SessionStateController::kLockToShutdownTimeoutMs = 150; | 25 const int SessionStateController::kLockToShutdownTimeoutMs = 150; |
| 26 const int SessionStateController::kSlowCloseAnimMs = 400; | 26 const int SessionStateController::kSlowCloseAnimMs = 400; |
| 27 const int SessionStateController::kUndoSlowCloseAnimMs = 100; | 27 const int SessionStateController::kUndoSlowCloseAnimMs = 100; |
| 28 const int SessionStateController::kFastCloseAnimMs = 150; | 28 const int SessionStateController::kFastCloseAnimMs = 150; |
| 29 const int SessionStateController::kShutdownRequestDelayMs = 50; | 29 const int SessionStateController::kShutdownRequestDelayMs = 50; |
| 30 | 30 |
| 31 SessionStateController::SessionStateController() | 31 SessionStateController::SessionStateController() |
| 32 : animator_(new internal::SessionStateAnimator()) { | 32 : animator_(new internal::SessionStateAnimator()) { |
| 33 } | 33 } |
| 34 | 34 |
| 35 SessionStateController::~SessionStateController() { | 35 SessionStateController::~SessionStateController() { |
| 36 } | 36 } |
| 37 | 37 |
| 38 void SessionStateController::SetDelegate( | 38 void SessionStateController::SetDelegate( |
| 39 SessionStateControllerDelegate* delegate) { | 39 SessionStateControllerDelegate* delegate) { |
| 40 delegate_.reset(delegate); | 40 delegate_.reset(delegate); |
| 41 } | 41 } |
| 42 } // namespace ash | 42 } // namespace ash |
| OLD | NEW |