OLD | NEW |
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 "chrome/browser/chromeos/login/lock_window_aura.h" | 5 #include "chrome/browser/chromeos/login/lock_window_aura.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
9 #include "ash/wm/window_animations.h" | 9 #include "ash/wm/window_animations.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 LockWindowAura::~LockWindowAura() { | 43 LockWindowAura::~LockWindowAura() { |
44 } | 44 } |
45 | 45 |
46 void LockWindowAura::Init() { | 46 void LockWindowAura::Init() { |
47 views::Widget::InitParams params( | 47 views::Widget::InitParams params( |
48 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); | 48 views::Widget::InitParams::TYPE_WINDOW_FRAMELESS); |
49 params.show_state = ui::SHOW_STATE_FULLSCREEN; | 49 params.show_state = ui::SHOW_STATE_FULLSCREEN; |
50 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; | 50 params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW; |
51 // TODO(oshima): move the lock screen harness to ash. | 51 // TODO(oshima): move the lock screen harness to ash. |
52 params.parent = | 52 params.parent = |
53 ash::Shell::GetContainer( | 53 ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(), |
54 ash::Shell::GetPrimaryRootWindow(), | 54 ash::kShellWindowId_LockScreenContainer); |
55 ash::internal::kShellWindowId_LockScreenContainer); | |
56 views::Widget::Init(params); | 55 views::Widget::Init(params); |
57 wm::SetWindowVisibilityAnimationTransition( | 56 wm::SetWindowVisibilityAnimationTransition( |
58 GetNativeView(), wm::ANIMATE_NONE); | 57 GetNativeView(), wm::ANIMATE_NONE); |
59 } | 58 } |
60 | 59 |
61 } // namespace chromeos | 60 } // namespace chromeos |
OLD | NEW |