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

Unified Diff: chrome/browser/chromeos/login/ui/lock_window.h

Issue 371923002: cros: Fixes the text input focus when screen is locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to use WidgetDelegate::GetInitiallyFocusedView. Created 6 years, 5 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/ui/lock_window.h
diff --git a/chrome/browser/chromeos/login/ui/lock_window.h b/chrome/browser/chromeos/login/ui/lock_window.h
index 3e453454543724d467b70a7d970c4f2ec1b400dc..be42a8bd3ea99d5e6ec1bd3564d47ac3096c40fe 100644
--- a/chrome/browser/chromeos/login/ui/lock_window.h
+++ b/chrome/browser/chromeos/login/ui/lock_window.h
@@ -8,6 +8,7 @@
#include "base/basictypes.h"
namespace views {
+class View;
class Widget;
}
@@ -40,6 +41,11 @@ class LockWindow {
observer_ = observer;
}
+ // Sets the view which should be initially focused.
+ void set_initially_focused_view(views::View* view) {
+ initially_focused_view_ = view;
+ }
+
// Creates an instance of the platform specific lock window.
static LockWindow* Create();
@@ -48,6 +54,10 @@ class LockWindow {
// window has finished all initialization.
Observer* observer_;
+ // The view which should be initially focused.
+ views::View* initially_focused_view_;
+
+ private:
DISALLOW_COPY_AND_ASSIGN(LockWindow);
};
« no previous file with comments | « chrome/browser/chromeos/login/lock/webui_screen_locker.cc ('k') | chrome/browser/chromeos/login/ui/lock_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698