| 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 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_ | 5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ | 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ash/shell_delegate.h" | 11 #include "ash/common/shell_delegate.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 | 14 |
| 15 namespace app_list { | 15 namespace app_list { |
| 16 class AppListPresenterDelegateFactory; | 16 class AppListPresenterDelegateFactory; |
| 17 class AppListPresenterImpl; | 17 class AppListPresenterImpl; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace keyboard { | 20 namespace keyboard { |
| 21 class KeyboardUI; | 21 class KeyboardUI; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace ash { | 24 namespace ash { |
| 25 namespace shell { | 25 namespace shell { |
| 26 | 26 |
| 27 class ShelfDelegateImpl; | 27 class ShelfDelegateImpl; |
| 28 | 28 |
| 29 class ShellDelegateImpl : public ash::ShellDelegate { | 29 class ShellDelegateImpl : public ShellDelegate { |
| 30 public: | 30 public: |
| 31 ShellDelegateImpl(); | 31 ShellDelegateImpl(); |
| 32 ~ShellDelegateImpl() override; | 32 ~ShellDelegateImpl() override; |
| 33 | 33 |
| 34 bool IsFirstRunAfterBoot() const override; | 34 bool IsFirstRunAfterBoot() const override; |
| 35 bool IsIncognitoAllowed() const override; | 35 bool IsIncognitoAllowed() const override; |
| 36 bool IsMultiProfilesEnabled() const override; | 36 bool IsMultiProfilesEnabled() const override; |
| 37 bool IsRunningInForcedAppMode() const override; | 37 bool IsRunningInForcedAppMode() const override; |
| 38 bool CanShowWindowForUser(WmWindow* window) const override; | 38 bool CanShowWindowForUser(WmWindow* window) const override; |
| 39 bool IsForceMaximizeOnFirstRun() const override; | 39 bool IsForceMaximizeOnFirstRun() const override; |
| 40 void PreInit() override; | 40 void PreInit() override; |
| 41 void PreShutdown() override; | 41 void PreShutdown() override; |
| 42 void Exit() override; | 42 void Exit() override; |
| 43 keyboard::KeyboardUI* CreateKeyboardUI() override; | 43 keyboard::KeyboardUI* CreateKeyboardUI() override; |
| 44 void VirtualKeyboardActivated(bool activated) override; | 44 void VirtualKeyboardActivated(bool activated) override; |
| 45 void AddVirtualKeyboardStateObserver( | 45 void AddVirtualKeyboardStateObserver( |
| 46 VirtualKeyboardStateObserver* observer) override; | 46 VirtualKeyboardStateObserver* observer) override; |
| 47 void RemoveVirtualKeyboardStateObserver( | 47 void RemoveVirtualKeyboardStateObserver( |
| 48 VirtualKeyboardStateObserver* observer) override; | 48 VirtualKeyboardStateObserver* observer) override; |
| 49 void OpenUrl(const GURL& url) override; | 49 void OpenUrl(const GURL& url) override; |
| 50 app_list::AppListPresenter* GetAppListPresenter() override; | 50 app_list::AppListPresenter* GetAppListPresenter() override; |
| 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; | 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; |
| 52 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; | 52 SystemTrayDelegate* CreateSystemTrayDelegate() override; |
| 53 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; | 53 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; |
| 54 ash::SessionStateDelegate* CreateSessionStateDelegate() override; | 54 SessionStateDelegate* CreateSessionStateDelegate() override; |
| 55 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; | 55 AccessibilityDelegate* CreateAccessibilityDelegate() override; |
| 56 ash::NewWindowDelegate* CreateNewWindowDelegate() override; | 56 NewWindowDelegate* CreateNewWindowDelegate() override; |
| 57 ash::MediaDelegate* CreateMediaDelegate() override; | 57 MediaDelegate* CreateMediaDelegate() override; |
| 58 std::unique_ptr<PointerWatcherDelegate> CreatePointerWatcherDelegate() | 58 std::unique_ptr<PointerWatcherDelegate> CreatePointerWatcherDelegate() |
| 59 override; | 59 override; |
| 60 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, | 60 ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, |
| 61 const ShelfItem* item) override; | 61 const ShelfItem* item) override; |
| 62 GPUSupport* CreateGPUSupport() override; | 62 GPUSupport* CreateGPUSupport() override; |
| 63 base::string16 GetProductName() const override; | 63 base::string16 GetProductName() const override; |
| 64 gfx::Image GetDeprecatedAcceleratorImage() const override; | 64 gfx::Image GetDeprecatedAcceleratorImage() const override; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 ShelfDelegateImpl* shelf_delegate_; | 67 ShelfDelegateImpl* shelf_delegate_; |
| 68 std::unique_ptr<app_list::AppListPresenterDelegateFactory> | 68 std::unique_ptr<app_list::AppListPresenterDelegateFactory> |
| 69 app_list_presenter_delegate_factory_; | 69 app_list_presenter_delegate_factory_; |
| 70 std::unique_ptr<app_list::AppListPresenterImpl> app_list_presenter_; | 70 std::unique_ptr<app_list::AppListPresenterImpl> app_list_presenter_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); | 72 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace shell | 75 } // namespace shell |
| 76 } // namespace ash | 76 } // namespace ash |
| 77 | 77 |
| 78 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ | 78 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| OLD | NEW |