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/shell/shell_delegate_impl.h" | 5 #include "ash/shell/shell_delegate_impl.h" |
6 | 6 |
7 #include "ash/shell/example_factory.h" | 7 #include "ash/shell/example_factory.h" |
8 #include "ash/shell/launcher_delegate_impl.h" | 8 #include "ash/shell/launcher_delegate_impl.h" |
9 #include "ash/shell/toplevel_window.h" | 9 #include "ash/shell/toplevel_window.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 void ShellDelegateImpl::OpenFileManager() { | 69 void ShellDelegateImpl::OpenFileManager() { |
70 } | 70 } |
71 | 71 |
72 void ShellDelegateImpl::OpenCrosh() { | 72 void ShellDelegateImpl::OpenCrosh() { |
73 } | 73 } |
74 | 74 |
75 void ShellDelegateImpl::OpenMobileSetup() { | 75 void ShellDelegateImpl::OpenMobileSetup() { |
76 } | 76 } |
77 | 77 |
| 78 content::BrowserContext* ShellDelegateImpl::GetCurrentBrowserContext() { |
| 79 return Shell::GetInstance()->browser_context(); |
| 80 } |
| 81 |
78 void ShellDelegateImpl::ToggleSpokenFeedback() { | 82 void ShellDelegateImpl::ToggleSpokenFeedback() { |
79 } | 83 } |
80 | 84 |
81 ash::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { | 85 ash::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { |
82 return ash::shell::CreateAppListViewDelegate(); | 86 return ash::shell::CreateAppListViewDelegate(); |
83 } | 87 } |
84 | 88 |
85 void ShellDelegateImpl::StartPartialScreenshot( | 89 void ShellDelegateImpl::StartPartialScreenshot( |
86 ash::ScreenshotDelegate* screenshot_delegate) { | 90 ash::ScreenshotDelegate* screenshot_delegate) { |
87 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); | 91 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); |
88 } | 92 } |
89 | 93 |
90 ash::LauncherDelegate* ShellDelegateImpl::CreateLauncherDelegate( | 94 ash::LauncherDelegate* ShellDelegateImpl::CreateLauncherDelegate( |
91 ash::LauncherModel* model) { | 95 ash::LauncherModel* model) { |
92 launcher_delegate_ = new LauncherDelegateImpl(watcher_); | 96 launcher_delegate_ = new LauncherDelegateImpl(watcher_); |
93 return launcher_delegate_; | 97 return launcher_delegate_; |
94 } | 98 } |
95 | 99 |
96 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate( | 100 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate( |
97 ash::SystemTray* tray) { | 101 ash::SystemTray* tray) { |
98 return NULL; | 102 return NULL; |
99 } | 103 } |
100 | 104 |
101 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { | 105 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { |
102 return NULL; | 106 return NULL; |
103 } | 107 } |
104 | 108 |
105 } // namespace shell | 109 } // namespace shell |
106 } // namespace ash | 110 } // namespace ash |
OLD | NEW |