| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 SystemTray* GetSystemTray(); | 143 SystemTray* GetSystemTray(); |
| 144 | 144 |
| 145 // Shows context menu at the |location_in_screen|. This uses | 145 // Shows context menu at the |location_in_screen|. This uses |
| 146 // |ShellDelegate::CreateContextMenu| to define the content of the menu. | 146 // |ShellDelegate::CreateContextMenu| to define the content of the menu. |
| 147 void ShowContextMenu(const gfx::Point& location_in_screen, | 147 void ShowContextMenu(const gfx::Point& location_in_screen, |
| 148 ui::MenuSourceType source_type); | 148 ui::MenuSourceType source_type); |
| 149 | 149 |
| 150 // True if the window can receive events on this root window. | 150 // True if the window can receive events on this root window. |
| 151 bool CanWindowReceiveEvents(aura::Window* window); | 151 bool CanWindowReceiveEvents(aura::Window* window); |
| 152 | 152 |
| 153 // Returns the layout-manager for the appropriate modal-container. If the | |
| 154 // window is inside the lockscreen modal container, then the layout manager | |
| 155 // for that is returned. Otherwise the layout manager for the default modal | |
| 156 // container is returned. | |
| 157 // If no window is specified (i.e. |window| is NULL), then the lockscreen | |
| 158 // modal container is used if the screen is currently locked. Otherwise, the | |
| 159 // default modal container is used. | |
| 160 SystemModalContainerLayoutManager* GetSystemModalLayoutManager( | |
| 161 aura::Window* window); | |
| 162 | |
| 163 aura::Window* GetContainer(int container_id); | 153 aura::Window* GetContainer(int container_id); |
| 164 const aura::Window* GetContainer(int container_id) const; | 154 const aura::Window* GetContainer(int container_id) const; |
| 165 | 155 |
| 166 // Show shelf view if it was created hidden (before session has started). | 156 // Show shelf view if it was created hidden (before session has started). |
| 167 // TODO(jamescook): Eliminate this and handle show via Shelf. | 157 // TODO(jamescook): Eliminate this and handle show via Shelf. |
| 168 void ShowShelf(); | 158 void ShowShelf(); |
| 169 | 159 |
| 170 // Creates the shelf for this root window and notifies observers. | 160 // Creates the shelf for this root window and notifies observers. |
| 171 void CreateShelf(); | 161 void CreateShelf(); |
| 172 | 162 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 | 294 |
| 305 // On classic ash, returns the RootWindowController for the given |root_window|. | 295 // On classic ash, returns the RootWindowController for the given |root_window|. |
| 306 // On mus ash, returns the RootWindowController for the primary display. | 296 // On mus ash, returns the RootWindowController for the primary display. |
| 307 // See RootWindowController class comment above. | 297 // See RootWindowController class comment above. |
| 308 ASH_EXPORT RootWindowController* GetRootWindowController( | 298 ASH_EXPORT RootWindowController* GetRootWindowController( |
| 309 const aura::Window* root_window); | 299 const aura::Window* root_window); |
| 310 | 300 |
| 311 } // namespace ash | 301 } // namespace ash |
| 312 | 302 |
| 313 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 303 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
| OLD | NEW |