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 72503002: Remove some pass-thrus on RootWindow API in favor of exposing the RootWindowHost again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ash/shell.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_constants.h" 10 #include "ash/ash_constants.h"
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 shell->AddShellObserver(this); 615 shell->AddShellObserver(this);
616 616
617 if (root_window_type == PRIMARY) { 617 if (root_window_type == PRIMARY) {
618 root_window_layout()->OnWindowResized(); 618 root_window_layout()->OnWindowResized();
619 shell->InitKeyboard(this); 619 shell->InitKeyboard(this);
620 } else { 620 } else {
621 root_window_layout()->OnWindowResized(); 621 root_window_layout()->OnWindowResized();
622 shell->desktop_background_controller()->OnRootWindowAdded(root_window()); 622 shell->desktop_background_controller()->OnRootWindowAdded(root_window());
623 shell->high_contrast_controller()->OnRootWindowAdded( 623 shell->high_contrast_controller()->OnRootWindowAdded(
624 root_window_->window()); 624 root_window_->window());
625 root_window_->ShowRootWindow(); 625 root_window_->host()->Show();
626 626
627 // Create a launcher if a user is already logged in. 627 // Create a launcher if a user is already logged in.
628 if (shell->session_state_delegate()->NumberOfLoggedInUsers()) 628 if (shell->session_state_delegate()->NumberOfLoggedInUsers())
629 shelf()->CreateLauncher(); 629 shelf()->CreateLauncher();
630 } 630 }
631 631
632 solo_window_tracker_.reset(new SoloWindowTracker(root_window_.get())); 632 solo_window_tracker_.reset(new SoloWindowTracker(root_window_.get()));
633 if (docked_layout_manager_) 633 if (docked_layout_manager_)
634 docked_layout_manager_->AddObserver(solo_window_tracker_.get()); 634 docked_layout_manager_->AddObserver(solo_window_tracker_.get());
635 } 635 }
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 DisableTouchHudProjection(); 922 DisableTouchHudProjection();
923 } 923 }
924 924
925 RootWindowController* GetRootWindowController( 925 RootWindowController* GetRootWindowController(
926 const aura::Window* root_window) { 926 const aura::Window* root_window) {
927 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 927 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
928 } 928 }
929 929
930 } // namespace internal 930 } // namespace internal
931 } // namespace ash 931 } // namespace ash
OLDNEW
« no previous file with comments | « ash/magnifier/magnification_controller_unittest.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698