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

Side by Side Diff: ash/shell.cc

Issue 15974008: Rename SessionStateController -> LockStateController (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 | Annotate | Revision Log
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "ash/wm/coordinate_conversion.h" 49 #include "ash/wm/coordinate_conversion.h"
50 #include "ash/wm/custom_frame_view_ash.h" 50 #include "ash/wm/custom_frame_view_ash.h"
51 #include "ash/wm/event_client_impl.h" 51 #include "ash/wm/event_client_impl.h"
52 #include "ash/wm/event_rewriter_event_filter.h" 52 #include "ash/wm/event_rewriter_event_filter.h"
53 #include "ash/wm/overlay_event_filter.h" 53 #include "ash/wm/overlay_event_filter.h"
54 #include "ash/wm/power_button_controller.h" 54 #include "ash/wm/power_button_controller.h"
55 #include "ash/wm/property_util.h" 55 #include "ash/wm/property_util.h"
56 #include "ash/wm/resize_shadow_controller.h" 56 #include "ash/wm/resize_shadow_controller.h"
57 #include "ash/wm/root_window_layout_manager.h" 57 #include "ash/wm/root_window_layout_manager.h"
58 #include "ash/wm/screen_dimmer.h" 58 #include "ash/wm/screen_dimmer.h"
59 #include "ash/wm/session_state_controller.h" 59 #include "ash/wm/session_lock_state_controller.h"
60 #include "ash/wm/session_lock_state_controller_impl2.h"
60 #include "ash/wm/session_state_controller_impl.h" 61 #include "ash/wm/session_state_controller_impl.h"
61 #include "ash/wm/session_state_controller_impl2.h"
62 #include "ash/wm/system_gesture_event_filter.h" 62 #include "ash/wm/system_gesture_event_filter.h"
63 #include "ash/wm/system_modal_container_event_filter.h" 63 #include "ash/wm/system_modal_container_event_filter.h"
64 #include "ash/wm/system_modal_container_layout_manager.h" 64 #include "ash/wm/system_modal_container_layout_manager.h"
65 #include "ash/wm/user_activity_detector.h" 65 #include "ash/wm/user_activity_detector.h"
66 #include "ash/wm/video_detector.h" 66 #include "ash/wm/video_detector.h"
67 #include "ash/wm/window_animations.h" 67 #include "ash/wm/window_animations.h"
68 #include "ash/wm/window_cycle_controller.h" 68 #include "ash/wm/window_cycle_controller.h"
69 #include "ash/wm/window_properties.h" 69 #include "ash/wm/window_properties.h"
70 #include "ash/wm/window_util.h" 70 #include "ash/wm/window_util.h"
71 #include "ash/wm/workspace_controller.h" 71 #include "ash/wm/workspace_controller.h"
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 window_cycle_controller_.reset(); 291 window_cycle_controller_.reset();
292 capture_controller_.reset(); 292 capture_controller_.reset();
293 nested_dispatcher_controller_.reset(); 293 nested_dispatcher_controller_.reset();
294 user_action_client_.reset(); 294 user_action_client_.reset();
295 visibility_controller_.reset(); 295 visibility_controller_.reset();
296 launcher_delegate_.reset(); 296 launcher_delegate_.reset();
297 launcher_model_.reset(); 297 launcher_model_.reset();
298 video_detector_.reset(); 298 video_detector_.reset();
299 299
300 power_button_controller_.reset(); 300 power_button_controller_.reset();
301 session_state_controller_.reset(); 301 session_lock_state_controller_.reset();
302 302
303 mirror_window_controller_.reset(); 303 mirror_window_controller_.reset();
304 304
305 // This also deletes all RootWindows. Note that we invoke Shutdown() on 305 // This also deletes all RootWindows. Note that we invoke Shutdown() on
306 // DisplayController before resetting |display_controller_|, since destruction 306 // DisplayController before resetting |display_controller_|, since destruction
307 // of its owned RootWindowControllers relies on the value. 307 // of its owned RootWindowControllers relies on the value.
308 display_controller_->Shutdown(); 308 display_controller_->Shutdown();
309 display_controller_.reset(); 309 display_controller_.reset();
310 screen_position_controller_.reset(); 310 screen_position_controller_.reset();
311 311
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 if (keyboard::IsKeyboardEnabled()) 523 if (keyboard::IsKeyboardEnabled())
524 keyboard::InitializeKeyboard(); 524 keyboard::InitializeKeyboard();
525 525
526 internal::RootWindowController* root_window_controller = 526 internal::RootWindowController* root_window_controller =
527 new internal::RootWindowController(root_window); 527 new internal::RootWindowController(root_window);
528 root_window_controller->CreateContainers(); 528 root_window_controller->CreateContainers();
529 root_window_controller->CreateSystemBackground( 529 root_window_controller->CreateSystemBackground(
530 delegate_->IsFirstRunAfterBoot()); 530 delegate_->IsFirstRunAfterBoot());
531 531
532 if (command_line->HasSwitch(ash::switches::kAshDisableNewLockAnimations)) 532 if (command_line->HasSwitch(ash::switches::kAshDisableNewLockAnimations))
533 session_state_controller_.reset(new SessionStateControllerImpl); 533 session_lock_state_controller_.reset(new SessionStateControllerImpl);
534 else 534 else
535 session_state_controller_.reset(new SessionStateControllerImpl2); 535 session_lock_state_controller_.reset(new SessionLockStateControllerImpl2);
536 power_button_controller_.reset(new PowerButtonController( 536 power_button_controller_.reset(new PowerButtonController(
537 session_state_controller_.get())); 537 session_lock_state_controller_.get()));
538 AddShellObserver(session_state_controller_.get()); 538 AddShellObserver(session_lock_state_controller_.get());
539 539
540 mouse_cursor_filter_.reset(new internal::MouseCursorEventFilter()); 540 mouse_cursor_filter_.reset(new internal::MouseCursorEventFilter());
541 AddPreTargetHandler(mouse_cursor_filter_.get()); 541 AddPreTargetHandler(mouse_cursor_filter_.get());
542 542
543 // Create Controllers that may need root window. 543 // Create Controllers that may need root window.
544 // TODO(oshima): Move as many controllers before creating 544 // TODO(oshima): Move as many controllers before creating
545 // RootWindowController as possible. 545 // RootWindowController as possible.
546 visibility_controller_.reset(new AshVisibilityController); 546 visibility_controller_.reset(new AshVisibilityController);
547 drag_drop_controller_.reset(new internal::DragDropController); 547 drag_drop_controller_.reset(new internal::DragDropController);
548 user_action_client_.reset(delegate_->CreateUserActionClient()); 548 user_action_client_.reset(delegate_->CreateUserActionClient());
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 //////////////////////////////////////////////////////////////////////////////// 952 ////////////////////////////////////////////////////////////////////////////////
953 // Shell, aura::client::ActivationChangeObserver implementation: 953 // Shell, aura::client::ActivationChangeObserver implementation:
954 954
955 void Shell::OnWindowActivated(aura::Window* gained_active, 955 void Shell::OnWindowActivated(aura::Window* gained_active,
956 aura::Window* lost_active) { 956 aura::Window* lost_active) {
957 if (gained_active) 957 if (gained_active)
958 active_root_window_ = gained_active->GetRootWindow(); 958 active_root_window_ = gained_active->GetRootWindow();
959 } 959 }
960 960
961 } // namespace ash 961 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698