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

Side by Side Diff: ash/common/shell_delegate.h

Issue 2434463004: mash: Move directly linked NewWindowDelegate to mojom::NewWindowClient. (Closed)
Patch Set: Rebase to ToT Created 4 years, 1 month 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/common/new_window_delegate.h ('k') | ash/common/test/BUILD.gn » ('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_COMMON_SHELL_DELEGATE_H_ 5 #ifndef ASH_COMMON_SHELL_DELEGATE_H_
6 #define ASH_COMMON_SHELL_DELEGATE_H_ 6 #define ASH_COMMON_SHELL_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 26 matching lines...) Expand all
37 37
38 namespace views { 38 namespace views {
39 class Widget; 39 class Widget;
40 } 40 }
41 41
42 namespace ash { 42 namespace ash {
43 43
44 class AccessibilityDelegate; 44 class AccessibilityDelegate;
45 class GPUSupport; 45 class GPUSupport;
46 class MediaDelegate; 46 class MediaDelegate;
47 class NewWindowDelegate;
48 class PaletteDelegate; 47 class PaletteDelegate;
49 class SessionStateDelegate; 48 class SessionStateDelegate;
50 class ShelfDelegate; 49 class ShelfDelegate;
51 class ShelfModel; 50 class ShelfModel;
52 class SystemTrayDelegate; 51 class SystemTrayDelegate;
53 struct ShelfItem; 52 struct ShelfItem;
54 class WallpaperDelegate; 53 class WallpaperDelegate;
55 class WmShelf; 54 class WmShelf;
56 class WmWindow; 55 class WmWindow;
57 56
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 111
113 // Creates a wallpaper delegate. Shell takes ownership of the delegate. 112 // Creates a wallpaper delegate. Shell takes ownership of the delegate.
114 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0; 113 virtual std::unique_ptr<WallpaperDelegate> CreateWallpaperDelegate() = 0;
115 114
116 // Creates a session state delegate. Shell takes ownership of the delegate. 115 // Creates a session state delegate. Shell takes ownership of the delegate.
117 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0; 116 virtual SessionStateDelegate* CreateSessionStateDelegate() = 0;
118 117
119 // Creates a accessibility delegate. Shell takes ownership of the delegate. 118 // Creates a accessibility delegate. Shell takes ownership of the delegate.
120 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0; 119 virtual AccessibilityDelegate* CreateAccessibilityDelegate() = 0;
121 120
122 // Creates an application delegate. Shell takes ownership of the delegate.
123 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
124
125 // Creates a media delegate. Shell takes ownership of the delegate. 121 // Creates a media delegate. Shell takes ownership of the delegate.
126 virtual MediaDelegate* CreateMediaDelegate() = 0; 122 virtual MediaDelegate* CreateMediaDelegate() = 0;
127 123
128 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0; 124 virtual std::unique_ptr<PaletteDelegate> CreatePaletteDelegate() = 0;
129 125
130 // Creates a menu model for the |wm_shelf| and optional shelf |item|. 126 // Creates a menu model for the |wm_shelf| and optional shelf |item|.
131 // If |item| is null, this creates a context menu for the wallpaper or shelf. 127 // If |item| is null, this creates a context menu for the wallpaper or shelf.
132 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf, 128 virtual ui::MenuModel* CreateContextMenu(WmShelf* wm_shelf,
133 const ShelfItem* item) = 0; 129 const ShelfItem* item) = 0;
134 130
135 // Creates a GPU support object. Shell takes ownership of the object. 131 // Creates a GPU support object. Shell takes ownership of the object.
136 virtual GPUSupport* CreateGPUSupport() = 0; 132 virtual GPUSupport* CreateGPUSupport() = 0;
137 133
138 // Get the product name. 134 // Get the product name.
139 virtual base::string16 GetProductName() const = 0; 135 virtual base::string16 GetProductName() const = 0;
140 136
141 virtual void OpenKeyboardShortcutHelpPage() const {} 137 virtual void OpenKeyboardShortcutHelpPage() const {}
142 138
143 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0; 139 virtual gfx::Image GetDeprecatedAcceleratorImage() const = 0;
144 140
145 // Toggles the status of the touchpad / touchscreen on or off. 141 // Toggles the status of the touchpad / touchscreen on or off.
146 virtual void ToggleTouchpad() {} 142 virtual void ToggleTouchpad() {}
147 virtual void ToggleTouchscreen() {} 143 virtual void ToggleTouchscreen() {}
148 }; 144 };
149 145
150 } // namespace ash 146 } // namespace ash
151 147
152 #endif // ASH_COMMON_SHELL_DELEGATE_H_ 148 #endif // ASH_COMMON_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/common/new_window_delegate.h ('k') | ash/common/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698