| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mus/shell_delegate_mus.h" | 5 #include "ash/mus/shell_delegate_mus.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/gpu_support_stub.h" | 9 #include "ash/common/gpu_support_stub.h" |
| 10 #include "ash/common/media_delegate.h" | 10 #include "ash/common/media_delegate.h" |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 108 |
| 109 } // namespace | 109 } // namespace |
| 110 | 110 |
| 111 ShellDelegateMus::ShellDelegateMus(shell::Connector* connector) | 111 ShellDelegateMus::ShellDelegateMus(shell::Connector* connector) |
| 112 : connector_(connector), app_list_presenter_(connector) { | 112 : connector_(connector), app_list_presenter_(connector) { |
| 113 // |connector_| may be null in tests. | 113 // |connector_| may be null in tests. |
| 114 } | 114 } |
| 115 | 115 |
| 116 ShellDelegateMus::~ShellDelegateMus() {} | 116 ShellDelegateMus::~ShellDelegateMus() {} |
| 117 | 117 |
| 118 ::shell::Connector* ShellDelegateMus::GetShellConnector() const { |
| 119 return connector_; |
| 120 } |
| 121 |
| 118 bool ShellDelegateMus::IsFirstRunAfterBoot() const { | 122 bool ShellDelegateMus::IsFirstRunAfterBoot() const { |
| 119 NOTIMPLEMENTED(); | 123 NOTIMPLEMENTED(); |
| 120 return false; | 124 return false; |
| 121 } | 125 } |
| 122 | 126 |
| 123 bool ShellDelegateMus::IsIncognitoAllowed() const { | 127 bool ShellDelegateMus::IsIncognitoAllowed() const { |
| 124 NOTIMPLEMENTED(); | 128 NOTIMPLEMENTED(); |
| 125 return false; | 129 return false; |
| 126 } | 130 } |
| 127 | 131 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 app_list::AppListPresenter* ShellDelegateMus::GetAppListPresenter() { | 173 app_list::AppListPresenter* ShellDelegateMus::GetAppListPresenter() { |
| 170 return &app_list_presenter_; | 174 return &app_list_presenter_; |
| 171 } | 175 } |
| 172 | 176 |
| 173 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) { | 177 ShelfDelegate* ShellDelegateMus::CreateShelfDelegate(ShelfModel* model) { |
| 174 return new ShelfDelegateMus(WmShell::Get()->shelf_model()); | 178 return new ShelfDelegateMus(WmShell::Get()->shelf_model()); |
| 175 } | 179 } |
| 176 | 180 |
| 177 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() { | 181 SystemTrayDelegate* ShellDelegateMus::CreateSystemTrayDelegate() { |
| 178 #if defined(OS_CHROMEOS) | 182 #if defined(OS_CHROMEOS) |
| 179 return new SystemTrayDelegateMus(connector_); | 183 return new SystemTrayDelegateMus(); |
| 180 #else | 184 #else |
| 181 // Windows and Linux do not support the services required for most system tray | 185 // Windows and Linux do not support the services required for most system tray |
| 182 // items. Use the same stub delegate as ash_shell_with_content. | 186 // items. Use the same stub delegate as ash_shell_with_content. |
| 183 return new DefaultSystemTrayDelegate(); | 187 return new DefaultSystemTrayDelegate(); |
| 184 #endif | 188 #endif |
| 185 } | 189 } |
| 186 | 190 |
| 187 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() { | 191 std::unique_ptr<WallpaperDelegate> ShellDelegateMus::CreateWallpaperDelegate() { |
| 188 return base::MakeUnique<WallpaperDelegateMus>(connector_); | 192 return base::MakeUnique<WallpaperDelegateMus>(connector_); |
| 189 } | 193 } |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 NOTIMPLEMENTED(); | 233 NOTIMPLEMENTED(); |
| 230 return base::string16(); | 234 return base::string16(); |
| 231 } | 235 } |
| 232 | 236 |
| 233 gfx::Image ShellDelegateMus::GetDeprecatedAcceleratorImage() const { | 237 gfx::Image ShellDelegateMus::GetDeprecatedAcceleratorImage() const { |
| 234 NOTIMPLEMENTED(); | 238 NOTIMPLEMENTED(); |
| 235 return gfx::Image(); | 239 return gfx::Image(); |
| 236 } | 240 } |
| 237 | 241 |
| 238 } // namespace ash | 242 } // namespace ash |
| OLD | NEW |