| 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 <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Returns the system tray on this root window. Note that | 161 // Returns the system tray on this root window. Note that |
| 162 // calling this on the root window that doesn't have a shelf will | 162 // calling this on the root window that doesn't have a shelf will |
| 163 // lead to a crash. | 163 // lead to a crash. |
| 164 SystemTray* GetSystemTray(); | 164 SystemTray* GetSystemTray(); |
| 165 | 165 |
| 166 // Shows context menu at the |location_in_screen|. This uses | 166 // Shows context menu at the |location_in_screen|. This uses |
| 167 // |ShellDelegate::CreateContextMenu| to define the content of the menu. | 167 // |ShellDelegate::CreateContextMenu| to define the content of the menu. |
| 168 void ShowContextMenu(const gfx::Point& location_in_screen, | 168 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 169 ui::MenuSourceType source_type); | 169 ui::MenuSourceType source_type); |
| 170 | 170 |
| 171 // True if the window can receive events on this root window. |
| 172 bool CanWindowReceiveEvents(aura::Window* window); |
| 173 |
| 171 // Returns the layout-manager for the appropriate modal-container. If the | 174 // Returns the layout-manager for the appropriate modal-container. If the |
| 172 // window is inside the lockscreen modal container, then the layout manager | 175 // window is inside the lockscreen modal container, then the layout manager |
| 173 // for that is returned. Otherwise the layout manager for the default modal | 176 // for that is returned. Otherwise the layout manager for the default modal |
| 174 // container is returned. | 177 // container is returned. |
| 175 // If no window is specified (i.e. |window| is NULL), then the lockscreen | 178 // If no window is specified (i.e. |window| is NULL), then the lockscreen |
| 176 // modal container is used if the screen is currently locked. Otherwise, the | 179 // modal container is used if the screen is currently locked. Otherwise, the |
| 177 // default modal container is used. | 180 // default modal container is used. |
| 178 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( | 181 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( |
| 179 aura::Window* window); | 182 aura::Window* window); |
| 180 | 183 |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 337 |
| 335 // On classic ash, returns the RootWindowController for the given |root_window|. | 338 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 336 // On mus ash, returns the RootWindowController for the primary display. | 339 // On mus ash, returns the RootWindowController for the primary display. |
| 337 // See RootWindowController class comment above. | 340 // See RootWindowController class comment above. |
| 338 ASH_EXPORT RootWindowController* GetRootWindowController( | 341 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 339 const aura::Window* root_window); | 342 const aura::Window* root_window); |
| 340 | 343 |
| 341 } // namespace ash | 344 } // namespace ash |
| 342 | 345 |
| 343 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 346 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |