| 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 "ash/session_state_delegate.h" | 5 #include "ash/session_state_delegate.h" |
| 6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
| 7 #include "ash/shell/example_factory.h" | 7 #include "ash/shell/example_factory.h" |
| 8 #include "ash/shell_window_ids.h" | 8 #include "ash/shell_window_ids.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 params.parent = Shell::GetContainer(Shell::GetPrimaryRootWindow(), | 97 params.parent = Shell::GetContainer(Shell::GetPrimaryRootWindow(), |
| 98 kShellWindowId_LockScreenContainer); | 98 kShellWindowId_LockScreenContainer); |
| 99 widget->Init(params); | 99 widget->Init(params); |
| 100 widget->SetContentsView(lock_view); | 100 widget->SetContentsView(lock_view); |
| 101 widget->Show(); | 101 widget->Show(); |
| 102 widget->GetNativeView()->SetName("LockView"); | 102 widget->GetNativeView()->SetName("LockView"); |
| 103 widget->GetNativeView()->Focus(); | 103 widget->GetNativeView()->Focus(); |
| 104 | 104 |
| 105 // TODO: it shouldn't be necessary to invoke UpdateTooltip() here. | 105 // TODO: it shouldn't be necessary to invoke UpdateTooltip() here. |
| 106 Shell::GetInstance()->tooltip_controller()->UpdateTooltip( | 106 Shell::GetInstance()->tooltip_controller()->UpdateTooltip( |
| 107 widget->GetNativeView()); | 107 widget->GetNativeView(), false); |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace shell | 110 } // namespace shell |
| 111 } // namespace ash | 111 } // namespace ash |
| OLD | NEW |