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

Side by Side Diff: ash/root_window_controller.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/root_window_controller.cc » ('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_ROOT_WINDOW_CONTROLLER_H_ 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/shelf_types.h" 9 #include "ash/shelf/shelf_types.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "ui/base/ui_base_types.h"
13 14
14 class SkBitmap; 15 class SkBitmap;
15 16
16 namespace aura { 17 namespace aura {
17 class EventFilter; 18 class EventFilter;
18 class RootWindow; 19 class RootWindow;
19 class Window; 20 class Window;
20 } 21 }
21 22
22 namespace gfx { 23 namespace gfx {
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // window controller, NULL if no such shelf exists. 101 // window controller, NULL if no such shelf exists.
101 ShelfLayoutManager* GetShelfLayoutManager(); 102 ShelfLayoutManager* GetShelfLayoutManager();
102 103
103 // Returns the system tray on this root window. Note that 104 // Returns the system tray on this root window. Note that
104 // calling this on the root window that doesn't have a launcher will 105 // calling this on the root window that doesn't have a launcher will
105 // lead to a crash. 106 // lead to a crash.
106 SystemTray* GetSystemTray(); 107 SystemTray* GetSystemTray();
107 108
108 // Shows context menu at the |location_in_screen|. This uses 109 // Shows context menu at the |location_in_screen|. This uses
109 // |ShellDelegate::CreateContextMenu| to define the content of the menu. 110 // |ShellDelegate::CreateContextMenu| to define the content of the menu.
110 void ShowContextMenu(const gfx::Point& location_in_screen); 111 void ShowContextMenu(const gfx::Point& location_in_screen,
112 ui::MenuSourceType source_type);
111 113
112 // Returns the layout-manager for the appropriate modal-container. If the 114 // Returns the layout-manager for the appropriate modal-container. If the
113 // window is inside the lockscreen modal container, then the layout manager 115 // window is inside the lockscreen modal container, then the layout manager
114 // for that is returned. Otherwise the layout manager for the default modal 116 // for that is returned. Otherwise the layout manager for the default modal
115 // container is returned. 117 // container is returned.
116 // If no window is specified (i.e. |window| is NULL), then the lockscreen 118 // If no window is specified (i.e. |window| is NULL), then the lockscreen
117 // modal container is used if the screen is currently locked. Otherwise, the 119 // modal container is used if the screen is currently locked. Otherwise, the
118 // default modal container is used. 120 // default modal container is used.
119 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( 121 SystemModalContainerLayoutManager* GetSystemModalLayoutManager(
120 aura::Window* window); 122 aura::Window* window);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; 214 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_;
213 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_; 215 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_;
214 216
215 DISALLOW_COPY_AND_ASSIGN(RootWindowController); 217 DISALLOW_COPY_AND_ASSIGN(RootWindowController);
216 }; 218 };
217 219
218 } // namespace internal 220 } // namespace internal
219 } // ash 221 } // ash
220 222
221 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 223 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/launcher/launcher_view.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698