| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ |
| 7 | 7 |
| 8 #include "gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| 11 | 11 |
| 12 // Interface that is used to manage the state of the user input controls. | 12 // Interface that is used to manage the state of the user input controls. |
| 13 class UserInput { | 13 class UserInput { |
| 14 public: | 14 public: |
| 15 virtual ~UserInput() {} | 15 virtual ~UserInput() {} |
| 16 | 16 |
| 17 // Enables/Disables the input controls. | 17 // Enables/Disables the input controls. |
| 18 virtual void EnableInputControls(bool enabled) = 0; | 18 virtual void EnableInputControls(bool enabled) = 0; |
| 19 | 19 |
| 20 // Clears and focuses the controls. | 20 // Clears and focuses the controls. |
| 21 virtual void ClearAndFocusControls() = 0; | 21 virtual void ClearAndFocusControls() = 0; |
| 22 | 22 |
| 23 // Clears and focuses the password field. | 23 // Clears and focuses the password field. |
| 24 virtual void ClearAndFocusPassword() = 0; | 24 virtual void ClearAndFocusPassword() = 0; |
| 25 | 25 |
| 26 // Returns bounds of the main input field in the screen coordinates (e.g. | 26 // Returns bounds of the main input field in the screen coordinates (e.g. |
| 27 // these bounds could be used to choose positions for the error bubble). | 27 // these bounds could be used to choose positions for the error bubble). |
| 28 virtual gfx::Rect GetMainInputScreenBounds() const = 0; | 28 virtual gfx::Rect GetMainInputScreenBounds() const = 0; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace chromeos | 31 } // namespace chromeos |
| 32 | 32 |
| 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ | 33 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_ |
| OLD | NEW |