| 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/test/test_shell_delegate.h" | 5 #include "ash/test/test_shell_delegate.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "ash/caps_lock_delegate_stub.h" | 9 #include "ash/caps_lock_delegate_stub.h" |
| 10 #include "ash/host/root_window_host_factory.h" | 10 #include "ash/host/root_window_host_factory.h" |
| 11 #include "ash/shell.h" | 11 #include "ash/shell.h" |
| 12 #include "ash/shell_window_ids.h" | 12 #include "ash/shell_window_ids.h" |
| 13 #include "ash/test/test_launcher_delegate.h" | 13 #include "ash/test/test_launcher_delegate.h" |
| 14 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
| 15 #include "content/public/test/test_browser_context.h" | 15 #include "content/public/test/test_browser_context.h" |
| 16 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
| 17 | 17 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool TestShellDelegate::IsSessionStarted() const { | 40 bool TestShellDelegate::IsSessionStarted() const { |
| 41 return session_started_; | 41 return session_started_; |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool TestShellDelegate::IsFirstRunAfterBoot() const { | 44 bool TestShellDelegate::IsFirstRunAfterBoot() const { |
| 45 return false; | 45 return false; |
| 46 } | 46 } |
| 47 | 47 |
| 48 bool TestShellDelegate::IsRunningInForcedAppMode() const { |
| 49 return false; |
| 50 } |
| 51 |
| 48 bool TestShellDelegate::CanLockScreen() const { | 52 bool TestShellDelegate::CanLockScreen() const { |
| 49 return user_logged_in_ && can_lock_screen_; | 53 return user_logged_in_ && can_lock_screen_; |
| 50 } | 54 } |
| 51 | 55 |
| 52 void TestShellDelegate::LockScreen() { | 56 void TestShellDelegate::LockScreen() { |
| 53 locked_ = true; | 57 locked_ = true; |
| 54 } | 58 } |
| 55 | 59 |
| 56 void TestShellDelegate::UnlockScreen() { | 60 void TestShellDelegate::UnlockScreen() { |
| 57 locked_ = false; | 61 locked_ = false; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 can_lock_screen_ = can_lock_screen; | 227 can_lock_screen_ = can_lock_screen; |
| 224 } | 228 } |
| 225 | 229 |
| 226 string16 TestShellDelegate::GetProductName() const { | 230 string16 TestShellDelegate::GetProductName() const { |
| 227 return string16(); | 231 return string16(); |
| 228 } | 232 } |
| 229 | 233 |
| 230 | 234 |
| 231 } // namespace test | 235 } // namespace test |
| 232 } // namespace ash | 236 } // namespace ash |
| OLD | NEW |