Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: ash/shell_delegate.h

Issue 1921673005: mus: Add PointerWatcher for passively observing mouse and touch events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <string> 9 #include <string>
9 10
10 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
11 #include "ash/shell.h" 12 #include "ash/shell.h"
12 #include "base/callback.h" 13 #include "base/callback.h"
13 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
14 15
15 class GURL; 16 class GURL;
16 17
17 namespace app_list { 18 namespace app_list {
(...skipping 15 matching lines...) Expand all
33 34
34 namespace keyboard { 35 namespace keyboard {
35 class KeyboardUI; 36 class KeyboardUI;
36 } 37 }
37 38
38 namespace ash { 39 namespace ash {
39 40
40 class AccessibilityDelegate; 41 class AccessibilityDelegate;
41 class MediaDelegate; 42 class MediaDelegate;
42 class NewWindowDelegate; 43 class NewWindowDelegate;
44 class PointerWatcherDelegate;
43 class SessionStateDelegate; 45 class SessionStateDelegate;
44 class ShelfDelegate; 46 class ShelfDelegate;
45 class ShelfModel; 47 class ShelfModel;
46 class SystemTrayDelegate; 48 class SystemTrayDelegate;
47 class UserWallpaperDelegate; 49 class UserWallpaperDelegate;
48 class Shelf; 50 class Shelf;
49 struct ShelfItem; 51 struct ShelfItem;
50 52
51 class ASH_EXPORT VirtualKeyboardStateObserver { 53 class ASH_EXPORT VirtualKeyboardStateObserver {
52 public: 54 public:
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 133
132 // Creates a accessibility delegate. Shell takes ownership of the delegate. 134 // Creates a accessibility delegate. Shell takes ownership of the delegate.
133 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; 135 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
134 136
135 // Creates an application delegate. Shell takes ownership of the delegate. 137 // Creates an application delegate. Shell takes ownership of the delegate.
136 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; 138 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
137 139
138 // Creates a media delegate. Shell takes ownership of the delegate. 140 // Creates a media delegate. Shell takes ownership of the delegate.
139 virtual MediaDelegate* CreateMediaDelegate() = 0; 141 virtual MediaDelegate* CreateMediaDelegate() = 0;
140 142
143 virtual std::unique_ptr<PointerWatcherDelegate>
144 CreatePointerWatcherDelegate() = 0;
145
141 // Creates a menu model for the |shelf| and optional shelf |item|. 146 // Creates a menu model for the |shelf| and optional shelf |item|.
142 // If |item| is null, this creates a context menu for the desktop or shelf. 147 // If |item| is null, this creates a context menu for the desktop or shelf.
143 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, 148 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf,
144 const ash::ShelfItem* item) = 0; 149 const ash::ShelfItem* item) = 0;
145 150
146 // Creates a GPU support object. Shell takes ownership of the object. 151 // Creates a GPU support object. Shell takes ownership of the object.
147 virtual GPUSupport* CreateGPUSupport() = 0; 152 virtual GPUSupport* CreateGPUSupport() = 0;
148 153
149 // Get the product name. 154 // Get the product name.
150 virtual base::string16 GetProductName() const = 0; 155 virtual base::string16 GetProductName() const = 0;
151 156
152 virtual void OpenKeyboardShortcutHelpPage() const {} 157 virtual void OpenKeyboardShortcutHelpPage() const {}
153 158
154 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 159 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
155 160
156 // Toggles the status of the touchpad / touchscreen on or off. 161 // Toggles the status of the touchpad / touchscreen on or off.
157 virtual void ToggleTouchpad() {} 162 virtual void ToggleTouchpad() {}
158 virtual void ToggleTouchscreen() {} 163 virtual void ToggleTouchscreen() {}
159 }; 164 };
160 165
161 } // namespace ash 166 } // namespace ash
162 167
163 #endif // ASH_SHELL_DELEGATE_H_ 168 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698