OLD | NEW |
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" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // window controller, NULL if no such shelf exists. | 100 // window controller, NULL if no such shelf exists. |
101 ShelfLayoutManager* GetShelfLayoutManager(); | 101 ShelfLayoutManager* GetShelfLayoutManager(); |
102 | 102 |
103 // Returns the system tray on this root window. Note that | 103 // Returns the system tray on this root window. Note that |
104 // calling this on the root window that doesn't have a launcher will | 104 // calling this on the root window that doesn't have a launcher will |
105 // lead to a crash. | 105 // lead to a crash. |
106 SystemTray* GetSystemTray(); | 106 SystemTray* GetSystemTray(); |
107 | 107 |
108 // Shows context menu at the |location_in_screen|. This uses | 108 // Shows context menu at the |location_in_screen|. This uses |
109 // |ShellDelegate::CreateContextMenu| to define the content of the menu. | 109 // |ShellDelegate::CreateContextMenu| to define the content of the menu. |
110 void ShowContextMenu(const gfx::Point& location_in_screen); | 110 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 111 ui::ContextMenuSourceType source_type); |
111 | 112 |
112 // Returns the layout-manager for the appropriate modal-container. If the | 113 // Returns the layout-manager for the appropriate modal-container. If the |
113 // window is inside the lockscreen modal container, then the layout manager | 114 // window is inside the lockscreen modal container, then the layout manager |
114 // for that is returned. Otherwise the layout manager for the default modal | 115 // for that is returned. Otherwise the layout manager for the default modal |
115 // container is returned. | 116 // container is returned. |
116 // If no window is specified (i.e. |window| is NULL), then the lockscreen | 117 // 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 | 118 // modal container is used if the screen is currently locked. Otherwise, the |
118 // default modal container is used. | 119 // default modal container is used. |
119 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( | 120 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( |
120 aura::Window* window); | 121 aura::Window* window); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; | 213 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; |
213 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_; | 214 scoped_ptr<ToplevelWindowEventHandler> panel_container_handler_; |
214 | 215 |
215 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 216 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace internal | 219 } // namespace internal |
219 } // ash | 220 } // ash |
220 | 221 |
221 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 222 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |