OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/login/ui/lock_window_aura.h" | 5 #include "chrome/browser/chromeos/login/ui/lock_window_aura.h" |
6 | 6 |
7 #include "ash/common/shell_window_ids.h" | 7 #include "ash/shared/shell_window_ids.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/aura/window_event_dispatcher.h" | 11 #include "ui/aura/window_event_dispatcher.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 LockWindow* LockWindow::Create() { | 15 LockWindow* LockWindow::Create() { |
16 LockWindowAura* lock_window = new LockWindowAura(); | 16 LockWindowAura* lock_window = new LockWindowAura(); |
17 // Cancel existing touch events when screen is locked. | 17 // Cancel existing touch events when screen is locked. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; | 59 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; |
60 // TODO(oshima): move the lock screen harness to ash. | 60 // TODO(oshima): move the lock screen harness to ash. |
61 params.parent = | 61 params.parent = |
62 ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), | 62 ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), |
63 ash::kShellWindowId_LockScreenContainer); | 63 ash::kShellWindowId_LockScreenContainer); |
64 views::Widget::Init(params); | 64 views::Widget::Init(params); |
65 SetVisibilityAnimationTransition(views::Widget::ANIMATE_NONE); | 65 SetVisibilityAnimationTransition(views::Widget::ANIMATE_NONE); |
66 } | 66 } |
67 | 67 |
68 } // namespace chromeos | 68 } // namespace chromeos |
OLD | NEW |