| 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" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 } | 33 } |
| 34 | 34 |
| 35 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 36 void TestShellDelegate::LockScreen() { | 36 void TestShellDelegate::LockScreen() { |
| 37 } | 37 } |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 void TestShellDelegate::Exit() { | 40 void TestShellDelegate::Exit() { |
| 41 } | 41 } |
| 42 | 42 |
| 43 void TestShellDelegate::BuildAppListModel(AppListModel* model) { | |
| 44 } | |
| 45 | |
| 46 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { | 43 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { |
| 47 return NULL; | 44 return NULL; |
| 48 } | 45 } |
| 49 | 46 |
| 50 std::vector<aura::Window*> TestShellDelegate::GetCycleWindowList( | 47 std::vector<aura::Window*> TestShellDelegate::GetCycleWindowList( |
| 51 CycleSource source, | 48 CycleSource source, |
| 52 CycleOrder order) const { | 49 CycleOrder order) const { |
| 53 // We just use the Shell's default container of windows, so tests can be | 50 // We just use the Shell's default container of windows, so tests can be |
| 54 // written with the usual CreateTestWindowWithId() calls. But window cycling | 51 // written with the usual CreateTestWindowWithId() calls. But window cycling |
| 55 // expects the topmost window at the front of the list, so reverse the order | 52 // expects the topmost window at the front of the list, so reverse the order |
| (...skipping 25 matching lines...) Expand all Loading... |
| 81 bool TestShellDelegate::GetOverrideWindowMode(Shell::WindowMode* window_mode) { | 78 bool TestShellDelegate::GetOverrideWindowMode(Shell::WindowMode* window_mode) { |
| 82 if (override_window_mode_) { | 79 if (override_window_mode_) { |
| 83 *window_mode = window_mode_; | 80 *window_mode = window_mode_; |
| 84 return true; | 81 return true; |
| 85 } | 82 } |
| 86 return false; | 83 return false; |
| 87 } | 84 } |
| 88 | 85 |
| 89 } // namespace test | 86 } // namespace test |
| 90 } // namespace ash | 87 } // namespace ash |
| OLD | NEW |