| 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 <algorithm> |
| 8 | 8 |
| 9 #include "ash/screenshot_delegate.h" | 9 #include "ash/screenshot_delegate.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| 11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
| 12 #include "grit/ui_resources.h" | 12 #include "grit/ui_resources.h" |
| 13 #include "ui/aura/window.h" | 13 #include "ui/aura/window.h" |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 namespace test { | 16 namespace test { |
| 17 | 17 |
| 18 TestShellDelegate::TestShellDelegate() : locked_(false) { | 18 TestShellDelegate::TestShellDelegate() : locked_(false) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 TestShellDelegate::~TestShellDelegate() { | 21 TestShellDelegate::~TestShellDelegate() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 views::Widget* TestShellDelegate::CreateStatusArea() { | |
| 25 return NULL; | |
| 26 } | |
| 27 | |
| 28 bool TestShellDelegate::IsUserLoggedIn() { | 24 bool TestShellDelegate::IsUserLoggedIn() { |
| 29 return true; | 25 return true; |
| 30 } | 26 } |
| 31 | 27 |
| 32 void TestShellDelegate::LockScreen() { | 28 void TestShellDelegate::LockScreen() { |
| 33 locked_ = true; | 29 locked_ = true; |
| 34 } | 30 } |
| 35 | 31 |
| 36 void TestShellDelegate::UnlockScreen() { | 32 void TestShellDelegate::UnlockScreen() { |
| 37 locked_ = false; | 33 locked_ = false; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 66 SystemTray* tray) { | 62 SystemTray* tray) { |
| 67 return NULL; | 63 return NULL; |
| 68 } | 64 } |
| 69 | 65 |
| 70 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { | 66 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { |
| 71 return NULL; | 67 return NULL; |
| 72 } | 68 } |
| 73 | 69 |
| 74 } // namespace test | 70 } // namespace test |
| 75 } // namespace ash | 71 } // namespace ash |
| OLD | NEW |