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

Unified Diff: chrome/browser/chromeos/login/guest_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: Merged with trunk. 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/guest_user_view.h
diff --git a/chrome/browser/chromeos/login/guest_user_view.h b/chrome/browser/chromeos/login/guest_user_view.h
index d9590f59f4431ff24732779449037074614ad38b..6da23b9043ea9edb8c725d66fab279d51417b63b 100644
--- a/chrome/browser/chromeos/login/guest_user_view.h
+++ b/chrome/browser/chromeos/login/guest_user_view.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_CHROMEOS_LOGIN_GUEST_USER_VIEW_H_
#pragma once
+#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"
@@ -18,7 +19,9 @@ class UserController;
// This view is for controls window of Guest mode pod that allows user to
// get temporary profile and use it for browsing. Contains only one Sign-in
// button and handles different common keyboard shortcuts.
-class GuestUserView : public views::View {
+class GuestUserView : public UserInput,
+ public views::ButtonListener,
+ public views::View {
public:
explicit GuestUserView(UserController* uc);
@@ -29,6 +32,21 @@ class GuestUserView : public views::View {
// Overridden from views::View:
virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
+ // Overridden from views::ButtonListener.
+ virtual void ButtonPressed(views::Button* sender, const views::Event& event);
+
+ // Implements UserInput:
whywhat 2010/12/09 16:20:18 Same here about consistent comments.
altimofeev 2010/12/10 16:37:40 Done.
+ virtual void EnableInputControls(bool enabled);
+
whywhat 2010/12/09 16:20:18 You could remove blank lines between methods.
altimofeev 2010/12/10 16:37:40 Done.
+ virtual void ClearAndFocusControls();
+
+ virtual void ClearAndFocusPassword();
+
+ virtual gfx::Rect GetControlWithErrorBounds() const;
+
+ virtual bool UseCustomBoundsForThrobber(const gfx::Size& throbber,
+ gfx::Rect* bounds) const;
+
private:
// Overridden from views::View:
virtual void OnLocaleChanged();

Powered by Google App Engine
This is Rietveld 408576698