| 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_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
| 6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/shell.h" | |
| 13 #include "base/callback.h" | 12 #include "base/callback.h" |
| 14 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 15 | 14 |
| 16 class GURL; | 15 class GURL; |
| 17 | 16 |
| 18 namespace app_list { | 17 namespace app_list { |
| 19 class AppListPresenter; | 18 class AppListPresenter; |
| 20 class AppListViewDelegate; | 19 class AppListViewDelegate; |
| 21 } | 20 } |
| 22 | 21 |
| 23 namespace aura { | |
| 24 class Window; | |
| 25 } | |
| 26 | |
| 27 namespace gfx { | 22 namespace gfx { |
| 28 class Image; | 23 class Image; |
| 29 } | 24 } |
| 30 | 25 |
| 31 namespace keyboard { | 26 namespace keyboard { |
| 32 class KeyboardUI; | 27 class KeyboardUI; |
| 33 } | 28 } |
| 34 | 29 |
| 35 namespace ui { | 30 namespace ui { |
| 36 class MenuModel; | 31 class MenuModel; |
| 37 } | 32 } |
| 38 | 33 |
| 39 namespace views { | 34 namespace views { |
| 40 class Widget; | 35 class Widget; |
| 41 } | 36 } |
| 42 | 37 |
| 43 namespace ash { | 38 namespace ash { |
| 44 | 39 |
| 45 class AccessibilityDelegate; | 40 class AccessibilityDelegate; |
| 46 class ContainerDelegate; | 41 class ContainerDelegate; |
| 42 class GPUSupport; |
| 47 class MediaDelegate; | 43 class MediaDelegate; |
| 48 class NewWindowDelegate; | 44 class NewWindowDelegate; |
| 49 class PointerWatcherDelegate; | 45 class PointerWatcherDelegate; |
| 50 class SessionStateDelegate; | 46 class SessionStateDelegate; |
| 51 class ShelfDelegate; | 47 class ShelfDelegate; |
| 52 class ShelfModel; | 48 class ShelfModel; |
| 53 class SystemTrayDelegate; | 49 class SystemTrayDelegate; |
| 54 class UserWallpaperDelegate; | 50 class UserWallpaperDelegate; |
| 55 struct ShelfItem; | 51 struct ShelfItem; |
| 56 class WmShelf; | 52 class WmShelf; |
| 53 class WmWindow; |
| 57 | 54 |
| 58 class ASH_EXPORT VirtualKeyboardStateObserver { | 55 class ASH_EXPORT VirtualKeyboardStateObserver { |
| 59 public: | 56 public: |
| 60 // Called when keyboard is activated/deactivated. | 57 // Called when keyboard is activated/deactivated. |
| 61 virtual void OnVirtualKeyboardStateChanged(bool activated) {} | 58 virtual void OnVirtualKeyboardStateChanged(bool activated) {} |
| 62 | 59 |
| 63 protected: | 60 protected: |
| 64 virtual ~VirtualKeyboardStateObserver() {} | 61 virtual ~VirtualKeyboardStateObserver() {} |
| 65 }; | 62 }; |
| 66 | 63 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 80 | 77 |
| 81 // Returns true if incognito mode is allowed for the user. | 78 // Returns true if incognito mode is allowed for the user. |
| 82 // Incognito windows are restricted for supervised users. | 79 // Incognito windows are restricted for supervised users. |
| 83 virtual bool IsIncognitoAllowed() const = 0; | 80 virtual bool IsIncognitoAllowed() const = 0; |
| 84 | 81 |
| 85 // Returns true if we're running in forced app mode. | 82 // Returns true if we're running in forced app mode. |
| 86 virtual bool IsRunningInForcedAppMode() const = 0; | 83 virtual bool IsRunningInForcedAppMode() const = 0; |
| 87 | 84 |
| 88 // Returns true if |window| can be shown for the delegate's concept of current | 85 // Returns true if |window| can be shown for the delegate's concept of current |
| 89 // user. | 86 // user. |
| 90 virtual bool CanShowWindowForUser(aura::Window* window) const = 0; | 87 virtual bool CanShowWindowForUser(WmWindow* window) const = 0; |
| 91 | 88 |
| 92 // Returns true if the first window shown on first run should be | 89 // Returns true if the first window shown on first run should be |
| 93 // unconditionally maximized, overriding the heuristic that normally chooses | 90 // unconditionally maximized, overriding the heuristic that normally chooses |
| 94 // the window size. | 91 // the window size. |
| 95 virtual bool IsForceMaximizeOnFirstRun() const = 0; | 92 virtual bool IsForceMaximizeOnFirstRun() const = 0; |
| 96 | 93 |
| 97 // Called before processing |Shell::Init()| so that the delegate | 94 // Called before processing |Shell::Init()| so that the delegate |
| 98 // can perform tasks necessary before the shell is initialized. | 95 // can perform tasks necessary before the shell is initialized. |
| 99 virtual void PreInit() = 0; | 96 virtual void PreInit() = 0; |
| 100 | 97 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; | 163 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; |
| 167 | 164 |
| 168 // Toggles the status of the touchpad / touchscreen on or off. | 165 // Toggles the status of the touchpad / touchscreen on or off. |
| 169 virtual void ToggleTouchpad() {} | 166 virtual void ToggleTouchpad() {} |
| 170 virtual void ToggleTouchscreen() {} | 167 virtual void ToggleTouchscreen() {} |
| 171 }; | 168 }; |
| 172 | 169 |
| 173 } // namespace ash | 170 } // namespace ash |
| 174 | 171 |
| 175 #endif // ASH_SHELL_DELEGATE_H_ | 172 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |