| 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 #ifndef ASH_SYSUI_SHELL_DELEGATE_MUS_H_ | 5 #ifndef ASH_SYSUI_SHELL_DELEGATE_MUS_H_ |
| 6 #define ASH_SYSUI_SHELL_DELEGATE_MUS_H_ | 6 #define ASH_SYSUI_SHELL_DELEGATE_MUS_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/shell_delegate.h" | 10 #include "ash/common/shell_delegate.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 | 12 |
| 13 namespace keyboard { | 13 namespace keyboard { |
| 14 class KeyboardUI; | 14 class KeyboardUI; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 | |
| 19 class AppListPresenterMus; | |
| 20 | |
| 21 namespace sysui { | 18 namespace sysui { |
| 22 | 19 |
| 23 class ShellDelegateMus : public ShellDelegate { | 20 class ShellDelegateMus : public ShellDelegate { |
| 24 public: | 21 public: |
| 25 explicit ShellDelegateMus(std::unique_ptr<AppListPresenterMus>); | 22 ShellDelegateMus(); |
| 26 ~ShellDelegateMus() override; | 23 ~ShellDelegateMus() override; |
| 27 | 24 |
| 28 bool IsFirstRunAfterBoot() const override; | 25 bool IsFirstRunAfterBoot() const override; |
| 29 bool IsIncognitoAllowed() const override; | 26 bool IsIncognitoAllowed() const override; |
| 30 bool IsMultiProfilesEnabled() const override; | 27 bool IsMultiProfilesEnabled() const override; |
| 31 bool IsRunningInForcedAppMode() const override; | 28 bool IsRunningInForcedAppMode() const override; |
| 32 bool CanShowWindowForUser(WmWindow* window) const override; | 29 bool CanShowWindowForUser(WmWindow* window) const override; |
| 33 bool IsForceMaximizeOnFirstRun() const override; | 30 bool IsForceMaximizeOnFirstRun() const override; |
| 34 void PreInit() override; | 31 void PreInit() override; |
| 35 void PreShutdown() override; | 32 void PreShutdown() override; |
| 36 void Exit() override; | 33 void Exit() override; |
| 37 keyboard::KeyboardUI* CreateKeyboardUI() override; | 34 keyboard::KeyboardUI* CreateKeyboardUI() override; |
| 38 void OpenUrlFromArc(const GURL& url) override; | 35 void OpenUrlFromArc(const GURL& url) override; |
| 39 app_list::AppListPresenter* GetAppListPresenter() override; | 36 app_list::AppListPresenter* GetAppListPresenter() override; |
| 40 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; | 37 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; |
| 41 SystemTrayDelegate* CreateSystemTrayDelegate() override; | 38 SystemTrayDelegate* CreateSystemTrayDelegate() override; |
| 42 std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override; | 39 std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() override; |
| 43 SessionStateDelegate* CreateSessionStateDelegate() override; | 40 SessionStateDelegate* CreateSessionStateDelegate() override; |
| 44 AccessibilityDelegate* CreateAccessibilityDelegate() override; | 41 AccessibilityDelegate* CreateAccessibilityDelegate() override; |
| 45 NewWindowDelegate* CreateNewWindowDelegate() override; | 42 NewWindowDelegate* CreateNewWindowDelegate() override; |
| 46 MediaDelegate* CreateMediaDelegate() override; | 43 MediaDelegate* CreateMediaDelegate() override; |
| 47 std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() override; | 44 std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() override; |
| 48 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 45 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
| 49 const ShelfItem* item) override; | 46 const ShelfItem* item) override; |
| 50 GPUSupport* CreateGPUSupport() override; | 47 GPUSupport* CreateGPUSupport() override; |
| 51 base::string16 GetProductName() const override; | 48 base::string16 GetProductName() const override; |
| 52 gfx::Image GetDeprecatedAcceleratorImage() const override; | 49 gfx::Image GetDeprecatedAcceleratorImage() const override; |
| 53 | 50 |
| 54 private: | 51 private: |
| 55 std::unique_ptr<app_list::AppListPresenter> app_list_presenter_; | |
| 56 | |
| 57 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); | 52 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); |
| 58 }; | 53 }; |
| 59 | 54 |
| 60 } // namespace sysui | 55 } // namespace sysui |
| 61 } // namespace ash | 56 } // namespace ash |
| 62 | 57 |
| 63 #endif // ASH_SYSUI_SHELL_DELEGATE_MUS_H_ | 58 #endif // ASH_SYSUI_SHELL_DELEGATE_MUS_H_ |
| OLD | NEW |