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/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 | 18 |
19 class AppListPresenterMus; | 19 class AppListPresenterMus; |
20 | 20 |
21 namespace sysui { | 21 namespace sysui { |
22 | 22 |
23 class ShellDelegateMus : public ash::ShellDelegate { | 23 class ShellDelegateMus : public ShellDelegate { |
24 public: | 24 public: |
25 explicit ShellDelegateMus(std::unique_ptr<AppListPresenterMus>); | 25 explicit ShellDelegateMus(std::unique_ptr<AppListPresenterMus>); |
26 ~ShellDelegateMus() override; | 26 ~ShellDelegateMus() override; |
27 | 27 |
28 bool IsFirstRunAfterBoot() const override; | 28 bool IsFirstRunAfterBoot() const override; |
29 bool IsIncognitoAllowed() const override; | 29 bool IsIncognitoAllowed() const override; |
30 bool IsMultiProfilesEnabled() const override; | 30 bool IsMultiProfilesEnabled() const override; |
31 bool IsRunningInForcedAppMode() const override; | 31 bool IsRunningInForcedAppMode() const override; |
32 bool CanShowWindowForUser(WmWindow* window) const override; | 32 bool CanShowWindowForUser(WmWindow* window) const override; |
33 bool IsForceMaximizeOnFirstRun() const override; | 33 bool IsForceMaximizeOnFirstRun() const override; |
34 void PreInit() override; | 34 void PreInit() override; |
35 void PreShutdown() override; | 35 void PreShutdown() override; |
36 void Exit() override; | 36 void Exit() override; |
37 keyboard::KeyboardUI* CreateKeyboardUI() override; | 37 keyboard::KeyboardUI* CreateKeyboardUI() override; |
38 void VirtualKeyboardActivated(bool activated) override; | 38 void VirtualKeyboardActivated(bool activated) override; |
39 void AddVirtualKeyboardStateObserver( | 39 void AddVirtualKeyboardStateObserver( |
40 VirtualKeyboardStateObserver* observer) override; | 40 VirtualKeyboardStateObserver* observer) override; |
41 void RemoveVirtualKeyboardStateObserver( | 41 void RemoveVirtualKeyboardStateObserver( |
42 VirtualKeyboardStateObserver* observer) override; | 42 VirtualKeyboardStateObserver* observer) override; |
43 void OpenUrl(const GURL& url) override; | 43 void OpenUrl(const GURL& url) override; |
44 app_list::AppListPresenter* GetAppListPresenter() override; | 44 app_list::AppListPresenter* GetAppListPresenter() override; |
45 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; | 45 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; |
46 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; | 46 SystemTrayDelegate* CreateSystemTrayDelegate() override; |
47 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; | 47 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; |
48 ash::SessionStateDelegate* CreateSessionStateDelegate() override; | 48 SessionStateDelegate* CreateSessionStateDelegate() override; |
49 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; | 49 AccessibilityDelegate* CreateAccessibilityDelegate() override; |
50 ash::NewWindowDelegate* CreateNewWindowDelegate() override; | 50 NewWindowDelegate* CreateNewWindowDelegate() override; |
51 ash::MediaDelegate* CreateMediaDelegate() override; | 51 MediaDelegate* CreateMediaDelegate() override; |
52 std::unique_ptr<PointerWatcherDelegate> CreatePointerWatcherDelegate() | 52 std::unique_ptr<PointerWatcherDelegate> CreatePointerWatcherDelegate() |
53 override; | 53 override; |
54 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 54 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
55 const ShelfItem* item) override; | 55 const ShelfItem* item) override; |
56 GPUSupport* CreateGPUSupport() override; | 56 GPUSupport* CreateGPUSupport() override; |
57 base::string16 GetProductName() const override; | 57 base::string16 GetProductName() const override; |
58 gfx::Image GetDeprecatedAcceleratorImage() const override; | 58 gfx::Image GetDeprecatedAcceleratorImage() const override; |
59 | 59 |
60 private: | 60 private: |
61 std::unique_ptr<app_list::AppListPresenter> app_list_presenter_; | 61 std::unique_ptr<app_list::AppListPresenter> app_list_presenter_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); | 63 DISALLOW_COPY_AND_ASSIGN(ShellDelegateMus); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace sysui | 66 } // namespace sysui |
67 } // namespace ash | 67 } // namespace ash |
68 | 68 |
69 #endif // ASH_SYSUI_SHELL_DELEGATE_MUS_H_ | 69 #endif // ASH_SYSUI_SHELL_DELEGATE_MUS_H_ |
OLD | NEW |