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 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { | 67 AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() { |
63 return NULL; | 68 return NULL; |
64 } | 69 } |
65 | 70 |
66 void TestShellDelegate::StartPartialScreenshot( | 71 void TestShellDelegate::StartPartialScreenshot( |
67 ScreenshotDelegate* screenshot_delegate) { | 72 ScreenshotDelegate* screenshot_delegate) { |
68 if (screenshot_delegate) | 73 if (screenshot_delegate) |
69 screenshot_delegate->HandleTakePartialScreenshot(NULL, gfx::Rect()); | 74 screenshot_delegate->HandleTakePartialScreenshot(NULL, gfx::Rect()); |
70 } | 75 } |
71 | 76 |
72 LauncherDelegate* TestShellDelegate::CreateLauncherDelegate( | 77 LauncherDelegate* TestShellDelegate::CreateLauncherDelegate( |
73 ash::LauncherModel* model) { | 78 ash::LauncherModel* model) { |
74 return new TestLauncherDelegate(model); | 79 return new TestLauncherDelegate(model); |
75 } | 80 } |
76 | 81 |
77 SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate( | 82 SystemTrayDelegate* TestShellDelegate::CreateSystemTrayDelegate( |
78 SystemTray* tray) { | 83 SystemTray* tray) { |
79 return NULL; | 84 return NULL; |
80 } | 85 } |
81 | 86 |
82 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { | 87 UserWallpaperDelegate* TestShellDelegate::CreateUserWallpaperDelegate() { |
83 return NULL; | 88 return NULL; |
84 } | 89 } |
85 | 90 |
86 } // namespace test | 91 } // namespace test |
87 } // namespace ash | 92 } // namespace ash |
OLD | NEW |