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 ash::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { | 82 ash::AppListViewDelegate* ShellDelegateImpl::CreateAppListViewDelegate() { |
79 return ash::shell::CreateAppListViewDelegate(); | 83 return ash::shell::CreateAppListViewDelegate(); |
80 } | 84 } |
81 | 85 |
82 void ShellDelegateImpl::StartPartialScreenshot( | 86 void ShellDelegateImpl::StartPartialScreenshot( |
83 ash::ScreenshotDelegate* screenshot_delegate) { | 87 ash::ScreenshotDelegate* screenshot_delegate) { |
84 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); | 88 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); |
85 } | 89 } |
86 | 90 |
87 ash::LauncherDelegate* ShellDelegateImpl::CreateLauncherDelegate( | 91 ash::LauncherDelegate* ShellDelegateImpl::CreateLauncherDelegate( |
88 ash::LauncherModel* model) { | 92 ash::LauncherModel* model) { |
89 launcher_delegate_ = new LauncherDelegateImpl(watcher_); | 93 launcher_delegate_ = new LauncherDelegateImpl(watcher_); |
90 return launcher_delegate_; | 94 return launcher_delegate_; |
91 } | 95 } |
92 | 96 |
93 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate( | 97 ash::SystemTrayDelegate* ShellDelegateImpl::CreateSystemTrayDelegate( |
94 ash::SystemTray* tray) { | 98 ash::SystemTray* tray) { |
95 return NULL; | 99 return NULL; |
96 } | 100 } |
97 | 101 |
98 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { | 102 ash::UserWallpaperDelegate* ShellDelegateImpl::CreateUserWallpaperDelegate() { |
99 return NULL; | 103 return NULL; |
100 } | 104 } |
101 | 105 |
102 } // namespace shell | 106 } // namespace shell |
103 } // namespace ash | 107 } // namespace ash |
OLD | NEW |