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 "ash/test/test_launcher_delegate.h" | 12 #include "ash/test/test_launcher_delegate.h" |
| 13 #include "content/test/test_browser_context.h" |
13 #include "grit/ui_resources.h" | 14 #include "grit/ui_resources.h" |
14 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
15 | 16 |
16 namespace ash { | 17 namespace ash { |
17 namespace test { | 18 namespace test { |
18 | 19 |
19 TestShellDelegate::TestShellDelegate() : locked_(false) { | 20 TestShellDelegate::TestShellDelegate() : locked_(false) { |
20 } | 21 } |
21 | 22 |
22 TestShellDelegate::~TestShellDelegate() { | 23 TestShellDelegate::~TestShellDelegate() { |
(...skipping 29 matching lines...) Expand all Loading... |
52 | 53 |
53 void TestShellDelegate::OpenFileManager() { | 54 void TestShellDelegate::OpenFileManager() { |
54 } | 55 } |
55 | 56 |
56 void TestShellDelegate::OpenCrosh() { | 57 void TestShellDelegate::OpenCrosh() { |
57 } | 58 } |
58 | 59 |
59 void TestShellDelegate::OpenMobileSetup() { | 60 void TestShellDelegate::OpenMobileSetup() { |
60 } | 61 } |
61 | 62 |
| 63 content::BrowserContext* TestShellDelegate::GetCurrentBrowserContext() { |
| 64 return new TestBrowserContext(); |
| 65 } |
| 66 |
62 void TestShellDelegate::ToggleSpokenFeedback() { | 67 void TestShellDelegate::ToggleSpokenFeedback() { |
63 } | 68 } |
64 | 69 |
65 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { | 70 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { |
66 return NULL; | 71 return NULL; |
67 } | 72 } |
68 | 73 |
69 void TestShellDelegate::StartPartialScreenshot( | 74 void TestShellDelegate::StartPartialScreenshot( |
70 ScreenshotDelegate* screenshot_delegate) { | 75 ScreenshotDelegate* screenshot_delegate) { |
71 if (screenshot_delegate) | 76 if (screenshot_delegate) |
72 screenshot_delegate->HandleTakePartialScreenshot(NULL, gfx::Rect()); | 77 screenshot_delegate->HandleTakePartialScreenshot(NULL, gfx::Rect()); |
73 } | 78 } |
74 | 79 |
75 LauncherDelegate* TestShellDelegate::CreateLauncherDelegate( | 80 LauncherDelegate* TestShellDelegate::CreateLauncherDelegate( |
76 ash::LauncherModel* model) { | 81 ash::LauncherModel* model) { |
77 return new TestLauncherDelegate(model); | 82 return new TestLauncherDelegate(model); |
78 } | 83 } |
79 | 84 |
80 SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate( | 85 SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate( |
81 SystemTray* tray) { | 86 SystemTray* tray) { |
82 return NULL; | 87 return NULL; |
83 } | 88 } |
84 | 89 |
85 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { | 90 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { |
86 return NULL; | 91 return NULL; |
87 } | 92 } |
88 | 93 |
89 } // namespace test | 94 } // namespace test |
90 } // namespace ash | 95 } // namespace ash |
OLD | NEW |