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

Side by Side Diff: ash/shell_delegate.h

Issue 107163005: [ash] Add TYPE_DIALOG and its item's LauncherContextMenu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell/window_watcher_shelf_item_delegate.cc ('k') | ash/test/test_shelf_item_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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 namespace ash { 43 namespace ash {
44 44
45 class AccessibilityDelegate; 45 class AccessibilityDelegate;
46 class CapsLockDelegate; 46 class CapsLockDelegate;
47 class MediaDelegate; 47 class MediaDelegate;
48 class NewWindowDelegate; 48 class NewWindowDelegate;
49 class WindowTreeHostFactory; 49 class WindowTreeHostFactory;
50 class SessionStateDelegate; 50 class SessionStateDelegate;
51 class ShelfDelegate; 51 class ShelfDelegate;
52 class ShelfItemDelegate;
52 class ShelfModel; 53 class ShelfModel;
53 class SystemTrayDelegate; 54 class SystemTrayDelegate;
54 class UserWallpaperDelegate; 55 class UserWallpaperDelegate;
55 struct LauncherItem; 56 struct LauncherItem;
56 57
57 // Delegate of the Shell. 58 // Delegate of the Shell.
58 class ASH_EXPORT ShellDelegate { 59 class ASH_EXPORT ShellDelegate {
59 public: 60 public:
60 // The Shell owns the delegate. 61 // The Shell owns the delegate.
61 virtual ~ShellDelegate() {} 62 virtual ~ShellDelegate() {}
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Creates an application delegate. Shell takes ownership of the delegate. 120 // Creates an application delegate. Shell takes ownership of the delegate.
120 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0; 121 virtual NewWindowDelegate* CreateNewWindowDelegate() = 0;
121 122
122 // Creates a media delegate. Shell takes ownership of the delegate. 123 // Creates a media delegate. Shell takes ownership of the delegate.
123 virtual MediaDelegate* CreateMediaDelegate() = 0; 124 virtual MediaDelegate* CreateMediaDelegate() = 0;
124 125
125 // Creates a user action client. Shell takes ownership of the object. 126 // Creates a user action client. Shell takes ownership of the object.
126 virtual aura::client::UserActionClient* CreateUserActionClient() = 0; 127 virtual aura::client::UserActionClient* CreateUserActionClient() = 0;
127 128
128 // Creates a menu model of the context for the |root_window|. 129 // Creates a menu model of the context for the |root_window|.
129 virtual ui::MenuModel* CreateContextMenu(aura::Window* root_window) = 0; 130 // When a ContextMenu is used for an item created by ShelfWindowWatcher,
131 // passes its ShelfItemDelegate and LauncherItem.
132 virtual ui::MenuModel* CreateContextMenu(
133 aura::Window* root_window,
134 ash::ShelfItemDelegate* item_delegate,
135 ash::LauncherItem* item) = 0;
130 136
131 // Creates a root window host factory. Shell takes ownership of the returned 137 // Creates a root window host factory. Shell takes ownership of the returned
132 // value. 138 // value.
133 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0; 139 virtual WindowTreeHostFactory* CreateWindowTreeHostFactory() = 0;
134 140
135 // Get the product name. 141 // Get the product name.
136 virtual base::string16 GetProductName() const = 0; 142 virtual base::string16 GetProductName() const = 0;
137 }; 143 };
138 144
139 } // namespace ash 145 } // namespace ash
140 146
141 #endif // ASH_SHELL_DELEGATE_H_ 147 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/shell/window_watcher_shelf_item_delegate.cc ('k') | ash/test/test_shelf_item_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698