Chromium Code Reviews| 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..106ac41e12131670cd54d9e5e9eeae76af3214f4 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/user_input.h |
| @@ -0,0 +1,37 @@ |
| +// 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 controls to place the error bubble. |
| + virtual gfx::Rect GetControlWithErrorBounds() const = 0; |
|
whywhat
2010/12/09 16:20:18
Don't get both the comment and the method name, so
altimofeev
2010/12/10 16:37:40
I have slightly changed both. Is it better now?
|
| + |
| + // Returns whether custom bounds for the throbber should be used. If yes than |
|
whywhat
2010/12/09 16:20:18
than -> then
altimofeev
2010/12/10 16:37:40
Done.
|
| + // |bounds| contains custom bounds that should be used. |
| + virtual bool UseCustomBoundsForThrobber(const gfx::Size& throbber, |
| + gfx::Rect* bounds) const = 0; |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ |