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

Side by Side Diff: ash/shell.cc

Issue 9264059: Enable hide animation for login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/base_login_display_host.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 8
9 #include "ash/accelerators/accelerator_controller.h" 9 #include "ash/accelerators/accelerator_controller.h"
10 #include "ash/accelerators/accelerator_filter.h" 10 #include "ash/accelerators/accelerator_filter.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 modal_container->set_id(internal::kShellWindowId_SystemModalContainer); 109 modal_container->set_id(internal::kShellWindowId_SystemModalContainer);
110 SetChildWindowVisibilityChangesAnimated(modal_container); 110 SetChildWindowVisibilityChangesAnimated(modal_container);
111 containers->push_back(modal_container); 111 containers->push_back(modal_container);
112 112
113 // TODO(beng): Figure out if we can make this use 113 // TODO(beng): Figure out if we can make this use
114 // SystemModalContainerEventFilter instead of stops_event_propagation. 114 // SystemModalContainerEventFilter instead of stops_event_propagation.
115 aura::Window* lock_container = new aura::Window(NULL); 115 aura::Window* lock_container = new aura::Window(NULL);
116 lock_container->SetLayoutManager(new internal::BaseLayoutManager); 116 lock_container->SetLayoutManager(new internal::BaseLayoutManager);
117 lock_container->set_stops_event_propagation(true); 117 lock_container->set_stops_event_propagation(true);
118 lock_container->set_id(internal::kShellWindowId_LockScreenContainer); 118 lock_container->set_id(internal::kShellWindowId_LockScreenContainer);
119 SetChildWindowVisibilityChangesAnimated(lock_container);
120 containers->push_back(lock_container); 119 containers->push_back(lock_container);
121 120
122 aura::Window* lock_modal_container = new aura::Window(NULL); 121 aura::Window* lock_modal_container = new aura::Window(NULL);
123 lock_modal_container->SetEventFilter( 122 lock_modal_container->SetEventFilter(
124 new ToplevelWindowEventFilter(lock_modal_container)); 123 new ToplevelWindowEventFilter(lock_modal_container));
125 lock_modal_container->SetLayoutManager( 124 lock_modal_container->SetLayoutManager(
126 new internal::SystemModalContainerLayoutManager(lock_modal_container)); 125 new internal::SystemModalContainerLayoutManager(lock_modal_container));
127 lock_modal_container->set_id( 126 lock_modal_container->set_id(
128 internal::kShellWindowId_LockSystemModalContainer); 127 internal::kShellWindowId_LockSystemModalContainer);
129 SetChildWindowVisibilityChangesAnimated(lock_modal_container); 128 SetChildWindowVisibilityChangesAnimated(lock_modal_container);
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 507
509 // Create the desktop background image. 508 // Create the desktop background image.
510 root_window_layout_->SetBackgroundWidget(internal::CreateDesktopBackground()); 509 root_window_layout_->SetBackgroundWidget(internal::CreateDesktopBackground());
511 } 510 }
512 511
513 void Shell::ResetLayoutManager(int container_id) { 512 void Shell::ResetLayoutManager(int container_id) {
514 GetContainer(container_id)->SetLayoutManager(NULL); 513 GetContainer(container_id)->SetLayoutManager(NULL);
515 } 514 }
516 515
517 } // namespace ash 516 } // namespace ash
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/base_login_display_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698