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

Side by Side Diff: ash/shell.cc

Issue 11377140: re-re-land of https://codereview.chromium.org/11364053/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more renames\! Created 8 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/shell.h ('k') | 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/focus_manager_factory.h" 10 #include "ash/accelerators/focus_manager_factory.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 #include "ash/wm/visibility_controller.h" 60 #include "ash/wm/visibility_controller.h"
61 #include "ash/wm/window_cycle_controller.h" 61 #include "ash/wm/window_cycle_controller.h"
62 #include "ash/wm/window_modality_controller.h" 62 #include "ash/wm/window_modality_controller.h"
63 #include "ash/wm/window_properties.h" 63 #include "ash/wm/window_properties.h"
64 #include "ash/wm/window_util.h" 64 #include "ash/wm/window_util.h"
65 #include "ash/wm/workspace_controller.h" 65 #include "ash/wm/workspace_controller.h"
66 #include "base/bind.h" 66 #include "base/bind.h"
67 #include "base/command_line.h" 67 #include "base/command_line.h"
68 #include "base/debug/leak_annotations.h" 68 #include "base/debug/leak_annotations.h"
69 #include "ui/aura/client/aura_constants.h" 69 #include "ui/aura/client/aura_constants.h"
70 #include "ui/aura/client/stacking_client.h"
70 #include "ui/aura/client/user_action_client.h" 71 #include "ui/aura/client/user_action_client.h"
71 #include "ui/aura/display_manager.h" 72 #include "ui/aura/display_manager.h"
72 #include "ui/aura/env.h" 73 #include "ui/aura/env.h"
73 #include "ui/aura/focus_manager.h" 74 #include "ui/aura/focus_manager.h"
74 #include "ui/aura/layout_manager.h" 75 #include "ui/aura/layout_manager.h"
75 #include "ui/aura/root_window.h" 76 #include "ui/aura/root_window.h"
76 #include "ui/aura/ui_controls_aura.h" 77 #include "ui/aura/ui_controls_aura.h"
77 #include "ui/aura/window.h" 78 #include "ui/aura/window.h"
78 #include "ui/compositor/layer.h" 79 #include "ui/compositor/layer.h"
79 #include "ui/compositor/layer_animator.h" 80 #include "ui/compositor/layer_animator.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 touch_observer_hud_.reset(new internal::TouchObserverHUD); 449 touch_observer_hud_.reset(new internal::TouchObserverHUD);
449 AddPreTargetHandler(touch_observer_hud_.get()); 450 AddPreTargetHandler(touch_observer_hud_.get());
450 } 451 }
451 452
452 mouse_cursor_filter_.reset(new internal::MouseCursorEventFilter()); 453 mouse_cursor_filter_.reset(new internal::MouseCursorEventFilter());
453 AddPreTargetHandler(mouse_cursor_filter_.get()); 454 AddPreTargetHandler(mouse_cursor_filter_.get());
454 455
455 // Create Controllers that may need root window. 456 // Create Controllers that may need root window.
456 // TODO(oshima): Move as many controllers before creating 457 // TODO(oshima): Move as many controllers before creating
457 // RootWindowController as possible. 458 // RootWindowController as possible.
458 stacking_controller_.reset(new internal::StackingController); 459 stacking_client_.reset(delegate_->CreateStackingClient());
460 if (stacking_client_.get())
461 aura::client::SetStackingClient(stacking_client_.get());
459 visibility_controller_.reset(new internal::VisibilityController); 462 visibility_controller_.reset(new internal::VisibilityController);
460 drag_drop_controller_.reset(new internal::DragDropController); 463 drag_drop_controller_.reset(new internal::DragDropController);
461 user_action_client_.reset(delegate_->CreateUserActionClient()); 464 user_action_client_.reset(delegate_->CreateUserActionClient());
462 window_modality_controller_.reset(new internal::WindowModalityController); 465 window_modality_controller_.reset(new internal::WindowModalityController);
463 AddPreTargetHandler(window_modality_controller_.get()); 466 AddPreTargetHandler(window_modality_controller_.get());
464 467
465 magnification_controller_.reset( 468 magnification_controller_.reset(
466 internal::MagnificationController::CreateInstance()); 469 internal::MagnificationController::CreateInstance());
467 470
468 high_contrast_controller_.reset(new HighContrastController); 471 high_contrast_controller_.reset(new HighContrastController);
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 root->ShowRootWindow(); 760 root->ShowRootWindow();
758 // Activate new root for testing. 761 // Activate new root for testing.
759 active_root_window_ = root; 762 active_root_window_ = root;
760 } 763 }
761 764
762 void Shell::DoInitialWorkspaceAnimation() { 765 void Shell::DoInitialWorkspaceAnimation() {
763 return GetPrimaryRootWindowController()->workspace_controller()-> 766 return GetPrimaryRootWindowController()->workspace_controller()->
764 DoInitialAnimation(); 767 DoInitialAnimation();
765 } 768 }
766 769
770 aura::client::StackingClient* Shell::stacking_client() {
771 return stacking_client_.get();
772 }
773
767 void Shell::InitRootWindowController( 774 void Shell::InitRootWindowController(
768 internal::RootWindowController* controller) { 775 internal::RootWindowController* controller) {
769 aura::RootWindow* root_window = controller->root_window(); 776 aura::RootWindow* root_window = controller->root_window();
770 DCHECK(activation_controller_.get()); 777 DCHECK(activation_controller_.get());
771 DCHECK(visibility_controller_.get()); 778 DCHECK(visibility_controller_.get());
772 DCHECK(drag_drop_controller_.get()); 779 DCHECK(drag_drop_controller_.get());
773 DCHECK(capture_controller_.get()); 780 DCHECK(capture_controller_.get());
774 DCHECK(window_cycle_controller_.get()); 781 DCHECK(window_cycle_controller_.get());
775 782
776 root_window->set_focus_manager(focus_manager_.get()); 783 root_window->set_focus_manager(focus_manager_.get());
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 835
829 bool Shell::CanAcceptEvents() { 836 bool Shell::CanAcceptEvents() {
830 return true; 837 return true;
831 } 838 }
832 839
833 ui::EventTarget* Shell::GetParentTarget() { 840 ui::EventTarget* Shell::GetParentTarget() {
834 return NULL; 841 return NULL;
835 } 842 }
836 843
837 } // namespace ash 844 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell.h ('k') | ash/shell/shell_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698