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

Side by Side Diff: ash/root_window_controller.cc

Issue 2625733003: Re-reland: chromeos: Fix shelf appearing at login screen under mash (Closed)
Patch Set: rebase, fix conflict with sky Created 3 years, 11 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/root_window_controller.h ('k') | ash/root_window_controller_unittest.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 #include "ash/root_window_controller.h" 5 #include "ash/root_window_controller.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_touch_exploration_manager_chromeos.h" 10 #include "ash/ash_touch_exploration_manager_chromeos.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 // Notify shell observers that the shelf has been created. 365 // Notify shell observers that the shelf has been created.
366 // TODO(jamescook): Move this into WmShelf::InitializeShelf(). This will 366 // TODO(jamescook): Move this into WmShelf::InitializeShelf(). This will
367 // require changing AttachedPanelWidgetTargeter's access to WmShelf. 367 // require changing AttachedPanelWidgetTargeter's access to WmShelf.
368 WmShell::Get()->NotifyShelfCreatedForRootWindow( 368 WmShell::Get()->NotifyShelfCreatedForRootWindow(
369 WmWindowAura::Get(GetRootWindow())); 369 WmWindowAura::Get(GetRootWindow()));
370 370
371 wm_shelf_->shelf_widget()->PostCreateShelf(); 371 wm_shelf_->shelf_widget()->PostCreateShelf();
372 } 372 }
373 373
374 void RootWindowController::ShowShelf() {
375 if (!wm_shelf_->IsShelfInitialized())
376 return;
377 // TODO(jamescook): Move this into WmShelf.
378 wm_shelf_->shelf_widget()->SetShelfVisibility(true);
379 wm_shelf_->shelf_widget()->status_area_widget()->Show();
380 }
381
382 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() { 374 ShelfLayoutManager* RootWindowController::GetShelfLayoutManager() {
383 return wm_shelf_->shelf_layout_manager(); 375 return wm_shelf_->shelf_layout_manager();
384 } 376 }
385 377
386 SystemModalContainerLayoutManager* 378 SystemModalContainerLayoutManager*
387 RootWindowController::GetSystemModalLayoutManager(WmWindow* window) { 379 RootWindowController::GetSystemModalLayoutManager(WmWindow* window) {
388 WmWindow* modal_container = nullptr; 380 WmWindow* modal_container = nullptr;
389 if (window) { 381 if (window) {
390 WmWindow* window_container = wm::GetContainerForWindow(window); 382 WmWindow* window_container = wm::GetContainerForWindow(window);
391 if (window_container && 383 if (window_container &&
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
1139 EnableTouchHudProjection(); 1131 EnableTouchHudProjection();
1140 else 1132 else
1141 DisableTouchHudProjection(); 1133 DisableTouchHudProjection();
1142 } 1134 }
1143 1135
1144 RootWindowController* GetRootWindowController(const aura::Window* root_window) { 1136 RootWindowController* GetRootWindowController(const aura::Window* root_window) {
1145 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr; 1137 return root_window ? GetRootWindowSettings(root_window)->controller : nullptr;
1146 } 1138 }
1147 1139
1148 } // namespace ash 1140 } // namespace ash
OLDNEW
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/root_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698