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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 WmShelf* wm_shelf() const { return wm_shelf_.get(); } | 135 WmShelf* wm_shelf() const { return wm_shelf_.get(); } |
136 | 136 |
137 bool HasShelf(); | 137 bool HasShelf(); |
138 | 138 |
139 WmShelf* GetShelf(); | 139 WmShelf* GetShelf(); |
140 | 140 |
141 // Creates the shelf for this root window and notifies observers. | 141 // Creates the shelf for this root window and notifies observers. |
142 void CreateShelf(); | 142 void CreateShelf(); |
143 | 143 |
144 // Show shelf view if it was created hidden (before session has started). | |
145 // TODO(jamescook): Eliminate this and handle show via Shelf. | |
146 void ShowShelf(); | |
147 | |
148 // Get touch HUDs associated with this root window controller. | 144 // Get touch HUDs associated with this root window controller. |
149 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } | 145 TouchHudDebug* touch_hud_debug() const { return touch_hud_debug_; } |
150 TouchHudProjection* touch_hud_projection() const { | 146 TouchHudProjection* touch_hud_projection() const { |
151 return touch_hud_projection_; | 147 return touch_hud_projection_; |
152 } | 148 } |
153 | 149 |
154 // Set touch HUDs for this root window controller. The root window controller | 150 // Set touch HUDs for this root window controller. The root window controller |
155 // will not own the HUDs; their lifetimes are managed by themselves. Whenever | 151 // will not own the HUDs; their lifetimes are managed by themselves. Whenever |
156 // the widget showing a HUD is being destroyed (e.g. because of detaching a | 152 // the widget showing a HUD is being destroyed (e.g. because of detaching a |
157 // display), the HUD deletes itself. | 153 // display), the HUD deletes itself. |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 376 |
381 // On classic ash, returns the RootWindowController for the given |root_window|. | 377 // On classic ash, returns the RootWindowController for the given |root_window|. |
382 // On mus ash, returns the RootWindowController for the primary display. | 378 // On mus ash, returns the RootWindowController for the primary display. |
383 // See RootWindowController class comment above. | 379 // See RootWindowController class comment above. |
384 ASH_EXPORT RootWindowController* GetRootWindowController( | 380 ASH_EXPORT RootWindowController* GetRootWindowController( |
385 const aura::Window* root_window); | 381 const aura::Window* root_window); |
386 | 382 |
387 } // namespace ash | 383 } // namespace ash |
388 | 384 |
389 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 385 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |