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

Side by Side Diff: ash/shell_delegate.h

Issue 2046843005: mash: Migrate shelf menus to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ash_shell_with_content Created 4 years, 6 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/sysui/context_menu_mus.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 <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class AccessibilityDelegate; 45 class AccessibilityDelegate;
46 class ContainerDelegate; 46 class ContainerDelegate;
47 class MediaDelegate; 47 class MediaDelegate;
48 class NewWindowDelegate; 48 class NewWindowDelegate;
49 class PointerWatcherDelegate; 49 class PointerWatcherDelegate;
50 class SessionStateDelegate; 50 class SessionStateDelegate;
51 class ShelfDelegate; 51 class ShelfDelegate;
52 class ShelfModel; 52 class ShelfModel;
53 class SystemTrayDelegate; 53 class SystemTrayDelegate;
54 class UserWallpaperDelegate; 54 class UserWallpaperDelegate;
55 class Shelf;
56 struct ShelfItem; 55 struct ShelfItem;
56 class WmShelf;
57 57
58 class ASH_EXPORT VirtualKeyboardStateObserver { 58 class ASH_EXPORT VirtualKeyboardStateObserver {
59 public: 59 public:
60 // Called when keyboard is activated/deactivated. 60 // Called when keyboard is activated/deactivated.
61 virtual void OnVirtualKeyboardStateChanged(bool activated) {} 61 virtual void OnVirtualKeyboardStateChanged(bool activated) {}
62 62
63 protected: 63 protected:
64 virtual ~VirtualKeyboardStateObserver() {} 64 virtual ~VirtualKeyboardStateObserver() {}
65 }; 65 };
66 66
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; 143 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
144 144
145 // Creates a media delegate. Shell takes ownership of the delegate. 145 // Creates a media delegate. Shell takes ownership of the delegate.
146 virtual MediaDelegate* CreateMediaDelegate() = 0; 146 virtual MediaDelegate* CreateMediaDelegate() = 0;
147 147
148 virtual std::unique_ptr<PointerWatcherDelegate> 148 virtual std::unique_ptr<PointerWatcherDelegate>
149 CreatePointerWatcherDelegate() = 0; 149 CreatePointerWatcherDelegate() = 0;
150 150
151 virtual std::unique_ptr<ContainerDelegate> CreateContainerDelegate() = 0; 151 virtual std::unique_ptr<ContainerDelegate> CreateContainerDelegate() = 0;
152 152
153 // Creates a menu model for the |shelf| and optional shelf |item|. 153 // Creates a menu model for the |wm_shelf| and optional shelf |item|.
154 // If |item| is null, this creates a context menu for the desktop or shelf. 154 // If |item| is null, this creates a context menu for the desktop or shelf.
155 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf, 155 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf,
156 const ash::ShelfItem* item) = 0; 156 const ShelfItem* item) = 0;
157 157
158 // Creates a GPU support object. Shell takes ownership of the object. 158 // Creates a GPU support object. Shell takes ownership of the object.
159 virtual GPUSupport* CreateGPUSupport() = 0; 159 virtual GPUSupport* CreateGPUSupport() = 0;
160 160
161 // Get the product name. 161 // Get the product name.
162 virtual base::string16 GetProductName() const = 0; 162 virtual base::string16 GetProductName() const = 0;
163 163
164 virtual void OpenKeyboardShortcutHelpPage() const {} 164 virtual void OpenKeyboardShortcutHelpPage() const {}
165 165
166 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 166 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
167 167
168 // Toggles the status of the touchpad / touchscreen on or off. 168 // Toggles the status of the touchpad / touchscreen on or off.
169 virtual void ToggleTouchpad() {} 169 virtual void ToggleTouchpad() {}
170 virtual void ToggleTouchscreen() {} 170 virtual void ToggleTouchscreen() {}
171 }; 171 };
172 172
173 } // namespace ash 173 } // namespace ash
174 174
175 #endif // ASH_SHELL_DELEGATE_H_ 175 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/sysui/context_menu_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698