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

Unified Diff: ash/login/views/lock_screen.cc

Issue 2867173003: cros: Move LockWindow from chrome to ash (Closed)
Patch Set: Created 3 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: ash/login/views/lock_screen.cc
diff --git a/ash/login/views/lock_screen.cc b/ash/login/views/lock_screen.cc
index 44bd17d34359841a22db225133cef2880abddc8b..b005c10a9ba222508b200525921491479d6498ca 100644
--- a/ash/login/views/lock_screen.cc
+++ b/ash/login/views/lock_screen.cc
@@ -5,14 +5,22 @@
#include "ash/login/views/lock_screen.h"
#include "ash/login/views/lock_contents_view.h"
+#include "ash/login/views/lock_window.h"
+#include "ui/display/display.h"
+#include "ui/display/screen.h"
#include "ui/views/widget/widget.h"
namespace ash {
-void ShowLockScreenInWidget(views::Widget* widget) {
+bool ShowLockScreen() {
+ LockWindow* window = new LockWindow();
+ window->SetBounds(display::Screen::GetScreen()->GetPrimaryDisplay().bounds());
+
views::View* contents = new LockContentsView();
- widget->SetContentsView(contents);
- widget->Show();
+ window->SetContentsView(contents);
+ window->Show();
+
+ return true;
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698