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

Side by Side Diff: ash/root_window_controller.h

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again Created 4 years, 3 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
« no previous file with comments | « ash/mus/workspace/workspace_layout_manager_unittest.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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class ScopedCaptureClient; 48 class ScopedCaptureClient;
49 } 49 }
50 50
51 namespace ash { 51 namespace ash {
52 class AshWindowTreeHost; 52 class AshWindowTreeHost;
53 class AlwaysOnTopController; 53 class AlwaysOnTopController;
54 class AnimatingWallpaperWidgetController; 54 class AnimatingWallpaperWidgetController;
55 class DockedWindowLayoutManager; 55 class DockedWindowLayoutManager;
56 enum class LoginStatus; 56 enum class LoginStatus;
57 class PanelLayoutManager; 57 class PanelLayoutManager;
58 class Shelf;
59 class ShelfLayoutManager; 58 class ShelfLayoutManager;
60 class ShelfWidget; 59 class ShelfWidget;
61 class StackingController; 60 class StackingController;
62 class StatusAreaWidget; 61 class StatusAreaWidget;
63 class SystemModalContainerLayoutManager; 62 class SystemModalContainerLayoutManager;
64 class SystemTray; 63 class SystemTray;
65 class SystemWallpaperController; 64 class SystemWallpaperController;
66 class TouchHudDebug; 65 class TouchHudDebug;
67 class TouchHudProjection; 66 class TouchHudProjection;
68 class WallpaperWidgetController; 67 class WallpaperWidgetController;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 aura::Window* GetContainer(int container_id); 178 aura::Window* GetContainer(int container_id);
180 const aura::Window* GetContainer(int container_id) const; 179 const aura::Window* GetContainer(int container_id) const;
181 180
182 // Show shelf view if it was created hidden (before session has started). 181 // Show shelf view if it was created hidden (before session has started).
183 // TODO(jamescook): Eliminate this and handle show via Shelf. 182 // TODO(jamescook): Eliminate this and handle show via Shelf.
184 void ShowShelf(); 183 void ShowShelf();
185 184
186 // Creates the shelf for this root window and notifies observers. 185 // Creates the shelf for this root window and notifies observers.
187 void CreateShelf(); 186 void CreateShelf();
188 187
189 // Returns the shelf controller for this root window.
190 // TODO(jamescook): Remove this and use WmRootWindowController::GetShelf().
191 Shelf* GetShelf() const;
192
193 // Called when the login status changes after login (such as lock/unlock). 188 // Called when the login status changes after login (such as lock/unlock).
194 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|. 189 // TODO(oshima): Investigate if we can merge this and |OnLoginStateChanged|.
195 void UpdateAfterLoginStatusChange(LoginStatus status); 190 void UpdateAfterLoginStatusChange(LoginStatus status);
196 191
197 // Called when the brightness/grayscale animation from white to the login 192 // Called when the brightness/grayscale animation from white to the login
198 // wallpaper image has started. Starts |boot_splash_screen_|'s hiding 193 // wallpaper image has started. Starts |boot_splash_screen_|'s hiding
199 // animation (if the screen is non-NULL). 194 // animation (if the screen is non-NULL).
200 void HandleInitialWallpaperAnimationStarted(); 195 void HandleInitialWallpaperAnimationStarted();
201 196
202 // Called when the wallpaper animation is finished. Updates 197 // Called when the wallpaper animation is finished. Updates
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // Owned by the root window. 268 // Owned by the root window.
274 WmRootWindowControllerAura* wm_root_window_controller_ = nullptr; 269 WmRootWindowControllerAura* wm_root_window_controller_ = nullptr;
275 270
276 std::unique_ptr<StackingController> stacking_controller_; 271 std::unique_ptr<StackingController> stacking_controller_;
277 272
278 // The shelf controller for this root window. Exists for the entire lifetime 273 // The shelf controller for this root window. Exists for the entire lifetime
279 // of the RootWindowController so that it is safe for observers to be added 274 // of the RootWindowController so that it is safe for observers to be added
280 // to it during construction of the shelf widget and status tray. 275 // to it during construction of the shelf widget and status tray.
281 std::unique_ptr<WmShelfAura> wm_shelf_aura_; 276 std::unique_ptr<WmShelfAura> wm_shelf_aura_;
282 277
283 // Legacy shelf controller. Only present after shelf is created (post-login).
284 std::unique_ptr<Shelf> shelf_;
285
286 // The shelf widget for this root window. 278 // The shelf widget for this root window.
279 // TODO(jamescook): Move ownership to WmShelf.
287 std::unique_ptr<ShelfWidget> shelf_widget_; 280 std::unique_ptr<ShelfWidget> shelf_widget_;
288 281
289 // An invisible/empty window used as a event target for 282 // An invisible/empty window used as a event target for
290 // |MouseCursorEventFilter| before a user logs in. 283 // |MouseCursorEventFilter| before a user logs in.
291 // (crbug.com/266987) 284 // (crbug.com/266987)
292 // Its container is |LockScreenWallpaperContainer| and 285 // Its container is |LockScreenWallpaperContainer| and
293 // this must be deleted before the container is deleted. 286 // this must be deleted before the container is deleted.
294 std::unique_ptr<aura::Window> mouse_event_target_; 287 std::unique_ptr<aura::Window> mouse_event_target_;
295 288
296 // Manages layout of docked windows. Owned by DockedContainer. 289 // Manages layout of docked windows. Owned by DockedContainer.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 326
334 // On classic ash, returns the RootWindowController for the given |root_window|. 327 // On classic ash, returns the RootWindowController for the given |root_window|.
335 // On mus ash, returns the RootWindowController for the primary display. 328 // On mus ash, returns the RootWindowController for the primary display.
336 // See RootWindowController class comment above. 329 // See RootWindowController class comment above.
337 ASH_EXPORT RootWindowController* GetRootWindowController( 330 ASH_EXPORT RootWindowController* GetRootWindowController(
338 const aura::Window* root_window); 331 const aura::Window* root_window);
339 332
340 } // namespace ash 333 } // namespace ash
341 334
342 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ 335 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/mus/workspace/workspace_layout_manager_unittest.cc ('k') | ash/root_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698