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

Unified Diff: chrome/browser/chromeos/login/lock_window_aura.cc

Issue 286933002: [cros login] Split login related classes into subfolders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix includes in new tests Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/lock_window_aura.cc
diff --git a/chrome/browser/chromeos/login/lock_window_aura.cc b/chrome/browser/chromeos/login/lock_window_aura.cc
deleted file mode 100644
index 05028a133d87472142611d48e6fe3639a5e81603..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/lock_window_aura.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/login/lock_window_aura.h"
-
-#include "ash/shell.h"
-#include "ash/shell_window_ids.h"
-#include "ash/wm/window_animations.h"
-#include "base/command_line.h"
-#include "ui/aura/window.h"
-#include "ui/aura/window_event_dispatcher.h"
-
-namespace chromeos {
-
-LockWindow* LockWindow::Create() {
- LockWindowAura* lock_window = new LockWindowAura();
- // Cancel existing touch events when screen is locked.
- ui::GestureRecognizer::Get()->TransferEventsTo(
- lock_window->GetNativeWindow(), NULL);
- return lock_window;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// LockWindow implementation:
-void LockWindowAura::Grab() {
- // We already have grab from the lock screen container, just call the ready
- // callback immediately.
- if (observer_)
- observer_->OnLockWindowReady();
-}
-
-views::Widget* LockWindowAura::GetWidget() {
- return this;
-}
-
-////////////////////////////////////////////////////////////////////////////////
-// LockWindowAura private:
-LockWindowAura::LockWindowAura() {
- Init();
-}
-
-LockWindowAura::~LockWindowAura() {
-}
-
-void LockWindowAura::Init() {
- views::Widget::InitParams params(
- views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
- params.show_state = ui::SHOW_STATE_FULLSCREEN;
- params.opacity = views::Widget::InitParams::TRANSLUCENT_WINDOW;
- // TODO(oshima): move the lock screen harness to ash.
- params.parent =
- ash::Shell::GetContainer(ash::Shell::GetPrimaryRootWindow(),
- ash::kShellWindowId_LockScreenContainer);
- views::Widget::Init(params);
- wm::SetWindowVisibilityAnimationTransition(
- GetNativeView(), wm::ANIMATE_NONE);
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/lock_window_aura.h ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698