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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_
7
8 #include "gfx/rect.h"
9
10 namespace chromeos {
11
12 // Interface that is used to manage the state of the user input controls.
13 class UserInput {
14 public:
15 virtual ~UserInput() {}
16
17 // Enables/Disables the input controls.
18 virtual void EnableInputControls(bool enabled) = 0;
19
20 // Clears and focuses the controls.
21 virtual void ClearAndFocusControls() = 0;
22
23 // Clears and focuses the password field.
24 virtual void ClearAndFocusPassword() = 0;
25
26 // Returns bounds of the controls to place the error bubble.
27 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?
28
29 // 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.
30 // |bounds| contains custom bounds that should be used.
31 virtual bool UseCustomBoundsForThrobber(const gfx::Size& throbber,
32 gfx::Rect* bounds) const = 0;
33 };
34
35 } // namespace chromeos
36
37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_INPUT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698