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

Unified Diff: chrome/browser/chromeos/login/user_input.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: code review 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/user_input.h
diff --git a/chrome/browser/chromeos/login/user_input.h b/chrome/browser/chromeos/login/user_input.h
new file mode 100644
index 0000000000000000000000000000000000000000..adf872d556ea68bbea072e5e65c587e99d7348f5
--- /dev/null
+++ b/chrome/browser/chromeos/login/user_input.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2010 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.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_
+
+#include "gfx/rect.h"
+
+namespace chromeos {
+
+// Interface that is used to manage the state of the user input controls.
+class UserInput {
+ public:
+ virtual ~UserInput() {}
+
+ // Enables/Disables the input controls.
+ virtual void EnableInputControls(bool enabled) = 0;
+
+ // Clears and focuses the controls.
+ virtual void ClearAndFocusControls() = 0;
+
+ // Clears and focuses the password field.
+ virtual void ClearAndFocusPassword() = 0;
+
+ // Returns bounds of the main input field in screen coordinats (e.g. these
whywhat 2010/12/13 07:57:35 same nit about coordinats
altimofeev 2010/12/13 15:42:45 Done.
+ // bounds could be used to choose positions for the error bubble).
+ virtual gfx::Rect GetMainInputScreenBounds() const = 0;
+
+ // Returns whether custom bounds for the throbber should be used. If yes then
+ // |bounds| contains custom bounds that should be used.
+ virtual bool UseCustomBoundsForThrobber(const gfx::Size& throbber,
whywhat 2010/12/13 07:57:35 Could we change this method to smth like StartThro
altimofeev 2010/12/13 15:42:45 I went further and implemented class that exposes
+ gfx::Rect* bounds) = 0;
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_

Powered by Google App Engine
This is Rietveld 408576698