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

Side by Side Diff: ash/shell_delegate.h

Issue 1812013003: Pass shelf instances, not root windows, for ash context menus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call OnShelfAlignmentChanged after LayoutShelf. Created 4 years, 9 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 <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 24 matching lines...) Expand all
35 namespace ash { 35 namespace ash {
36 36
37 class AccessibilityDelegate; 37 class AccessibilityDelegate;
38 class MediaDelegate; 38 class MediaDelegate;
39 class NewWindowDelegate; 39 class NewWindowDelegate;
40 class SessionStateDelegate; 40 class SessionStateDelegate;
41 class ShelfDelegate; 41 class ShelfDelegate;
42 class ShelfModel; 42 class ShelfModel;
43 class SystemTrayDelegate; 43 class SystemTrayDelegate;
44 class UserWallpaperDelegate; 44 class UserWallpaperDelegate;
45 class Shelf;
45 struct ShelfItem; 46 struct ShelfItem;
46 47
47 class ASH_EXPORT VirtualKeyboardStateObserver { 48 class ASH_EXPORT VirtualKeyboardStateObserver {
48 public: 49 public:
49 // Called when keyboard is activated/deactivated. 50 // Called when keyboard is activated/deactivated.
50 virtual void OnVirtualKeyboardStateChanged(bool activated) {} 51 virtual void OnVirtualKeyboardStateChanged(bool activated) {}
51 52
52 protected: 53 protected:
53 virtual ~VirtualKeyboardStateObserver() {} 54 virtual ~VirtualKeyboardStateObserver() {}
54 }; 55 };
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 126
126 // Creates a accessibility delegate. Shell takes ownership of the delegate. 127 // Creates a accessibility delegate. Shell takes ownership of the delegate.
127 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; 128 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
128 129
129 // Creates an application delegate. Shell takes ownership of the delegate. 130 // Creates an application delegate. Shell takes ownership of the delegate.
130 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; 131 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
131 132
132 // Creates a media delegate. Shell takes ownership of the delegate. 133 // Creates a media delegate. Shell takes ownership of the delegate.
133 virtual MediaDelegate* CreateMediaDelegate() = 0; 134 virtual MediaDelegate* CreateMediaDelegate() = 0;
134 135
135 // Creates a menu model for the |root_window| and optional shelf |item|. 136 // Creates a menu model for the |shelf| and optional shelf |item|.
136 // If |item| is null, this creates a context menu for the desktop or shelf. 137 // If |item| is null, this creates a context menu for the desktop or shelf.
137 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window, 138 virtual ui::MenuModel* CreateContextMenu(ash::Shelf* shelf,
138 const ash::ShelfItem* item) = 0; 139 const ash::ShelfItem* item) = 0;
139 140
140 // Creates a GPU support object. Shell takes ownership of the object. 141 // Creates a GPU support object. Shell takes ownership of the object.
141 virtual GPUSupport* CreateGPUSupport() = 0; 142 virtual GPUSupport* CreateGPUSupport() = 0;
142 143
143 // Get the product name. 144 // Get the product name.
144 virtual base::string16 GetProductName() const = 0; 145 virtual base::string16 GetProductName() const = 0;
145 146
146 virtual void OpenKeyboardShortcutHelpPage() const {} 147 virtual void OpenKeyboardShortcutHelpPage() const {}
147 148
148 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 149 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
149 150
150 // Toggles the status of the touchpad / touchscreen on or off. 151 // Toggles the status of the touchpad / touchscreen on or off.
151 virtual void ToggleTouchpad() {} 152 virtual void ToggleTouchpad() {}
152 virtual void ToggleTouchscreen() {} 153 virtual void ToggleTouchscreen() {}
153 }; 154 };
154 155
155 } // namespace ash 156 } // namespace ash
156 157
157 #endif // ASH_SHELL_DELEGATE_H_ 158 #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