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

Unified Diff: chrome/browser/chromeos/login/existing_user_view.h

Issue 5709001: Place the spinner in the right corner of the controls window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos/login
Patch Set: nits Created 10 years 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/existing_user_view.h
diff --git a/chrome/browser/chromeos/login/existing_user_view.h b/chrome/browser/chromeos/login/existing_user_view.h
index 004ff2166a4733fecf96fc9ba0066a18d8f2f038..42253d45b3312fc7500e9d54907b870689c7085d 100644
--- a/chrome/browser/chromeos/login/existing_user_view.h
+++ b/chrome/browser/chromeos/login/existing_user_view.h
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
#pragma once
+#include "chrome/browser/chromeos/login/helper.h"
+#include "chrome/browser/chromeos/login/user_input.h"
#include "views/accelerator.h"
#include "views/controls/button/native_button.h"
#include "views/controls/textfield/textfield.h"
@@ -15,19 +17,31 @@ namespace chromeos {
class UserController;
-class ExistingUserView : public views::View {
+class ExistingUserView : public ThrobberHostView,
+ public UserInput,
+ public views::Textfield::Controller {
public:
- explicit ExistingUserView(UserController* uc);
+ explicit ExistingUserView(UserController* user_controller);
void RecreateFields();
- views::Textfield* password_field() { return password_field_; }
-
void FocusPasswordField();
// Overridden from views::View:
virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
+ // Overriden from Textfield::Controller:
+ virtual void ContentsChanged(views::Textfield* sender,
+ const string16& new_contents);
+ virtual bool HandleKeystroke(views::Textfield* sender,
+ const views::Textfield::Keystroke& keystroke);
+
+ // Overriden from UserInput:
+ virtual void EnableInputControls(bool enabled);
+ virtual void ClearAndFocusControls();
+ virtual void ClearAndFocusPassword();
+ virtual gfx::Rect GetMainInputScreenBounds() const;
+
protected:
// Overridden from views::View:
virtual void OnLocaleChanged();
@@ -35,14 +49,13 @@ class ExistingUserView : public views::View {
views::View* parent,
views::View* child);
- views::Accelerator accel_login_off_the_record_;
+ private:
+ UserController* user_controller_;
// For editing the password.
views::Textfield* password_field_;
- UserController* user_controller_;
-
- private:
+ views::Accelerator accel_login_off_the_record_;
views::Accelerator accel_enable_accessibility_;
DISALLOW_COPY_AND_ASSIGN(ExistingUserView);
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/existing_user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698