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

Side by Side Diff: trunk/src/ash/shell.cc

Issue 77203002: Revert 236048 "Rename RootWindowHost* to WindowTreeHost*" (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « trunk/src/ash/shell.h ('k') | trunk/src/ash/shell/shell_delegate_impl.h » ('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/shell.h" 5 #include "ash/shell.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "ash/accelerators/accelerator_controller.h" 10 #include "ash/accelerators/accelerator_controller.h"
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 AddPreTargetHandler(env_filter_.get()); 754 AddPreTargetHandler(env_filter_.get());
755 755
756 views::corewm::FocusController* focus_controller = 756 views::corewm::FocusController* focus_controller =
757 new views::corewm::FocusController(new wm::AshFocusRules); 757 new views::corewm::FocusController(new wm::AshFocusRules);
758 focus_client_.reset(focus_controller); 758 focus_client_.reset(focus_controller);
759 activation_client_ = focus_controller; 759 activation_client_ = focus_controller;
760 activation_client_->AddObserver(this); 760 activation_client_->AddObserver(this);
761 focus_cycler_.reset(new internal::FocusCycler()); 761 focus_cycler_.reset(new internal::FocusCycler());
762 762
763 screen_position_controller_.reset(new internal::ScreenPositionController); 763 screen_position_controller_.reset(new internal::ScreenPositionController);
764 root_window_host_factory_.reset(delegate_->CreateWindowTreeHostFactory()); 764 root_window_host_factory_.reset(delegate_->CreateRootWindowHostFactory());
765 765
766 display_controller_->Start(); 766 display_controller_->Start();
767 display_controller_->InitPrimaryDisplay(); 767 display_controller_->InitPrimaryDisplay();
768 aura::Window* root_window = display_controller_->GetPrimaryRootWindow(); 768 aura::Window* root_window = display_controller_->GetPrimaryRootWindow();
769 target_root_window_ = root_window; 769 target_root_window_ = root_window;
770 770
771 resolution_notification_controller_.reset( 771 resolution_notification_controller_.reset(
772 new internal::ResolutionNotificationController); 772 new internal::ResolutionNotificationController);
773 773
774 cursor_manager_.SetDisplay(DisplayController::GetPrimaryDisplay()); 774 cursor_manager_.SetDisplay(DisplayController::GetPrimaryDisplay());
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 //////////////////////////////////////////////////////////////////////////////// 1002 ////////////////////////////////////////////////////////////////////////////////
1003 // Shell, aura::client::ActivationChangeObserver implementation: 1003 // Shell, aura::client::ActivationChangeObserver implementation:
1004 1004
1005 void Shell::OnWindowActivated(aura::Window* gained_active, 1005 void Shell::OnWindowActivated(aura::Window* gained_active,
1006 aura::Window* lost_active) { 1006 aura::Window* lost_active) {
1007 if (gained_active) 1007 if (gained_active)
1008 target_root_window_ = gained_active->GetRootWindow(); 1008 target_root_window_ = gained_active->GetRootWindow();
1009 } 1009 }
1010 1010
1011 } // namespace ash 1011 } // namespace ash
OLDNEW
« no previous file with comments | « trunk/src/ash/shell.h ('k') | trunk/src/ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698