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

Side by Side Diff: chrome/browser/chromeos/login/screen_lock_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: nits 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
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_SCREEN_LOCK_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/helper.h"
9 #include "chrome/browser/chromeos/login/user_view.h" 10 #include "chrome/browser/chromeos/login/user_view.h"
10 #include "chrome/common/notification_observer.h" 11 #include "chrome/common/notification_observer.h"
11 #include "chrome/common/notification_registrar.h" 12 #include "chrome/common/notification_registrar.h"
12 #include "views/controls/textfield/textfield.h" 13 #include "views/controls/textfield/textfield.h"
13 #include "views/view.h" 14 #include "views/view.h"
14 15
15 namespace views { 16 namespace views {
16 class ImageView; 17 class ImageView;
17 } // namespace views 18 } // namespace views
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
21 class ScreenLocker; 22 class ScreenLocker;
22 class UserView; 23 class UserView;
23 24
24 namespace test { 25 namespace test {
25 class ScreenLockerTester; 26 class ScreenLockerTester;
26 } // namespace test 27 } // namespace test
27 28
28 // ScreenLockView creates view components necessary to authenticate 29 // ScreenLockView creates view components necessary to authenticate
29 // a user to unlock the screen. 30 // a user to unlock the screen.
30 class ScreenLockView : public views::View, 31 class ScreenLockView : public ThrobberHostView,
31 public views::Textfield::Controller, 32 public views::Textfield::Controller,
32 public NotificationObserver, 33 public NotificationObserver,
33 public UserView::Delegate { 34 public UserView::Delegate {
34 public: 35 public:
35 explicit ScreenLockView(ScreenLocker* screen_locker); 36 explicit ScreenLockView(ScreenLocker* screen_locker);
36 virtual ~ScreenLockView() {} 37 virtual ~ScreenLockView();
37 38
38 void Init(); 39 void Init();
39 40
40 // Clears and sets the focus to the password field. 41 // Clears and sets the focus to the password field.
41 void ClearAndSetFocusToPassword(); 42 void ClearAndSetFocusToPassword();
42 43
43 // Enable/Disable signout button. 44 // Enable/Disable signout button.
44 void SetSignoutEnabled(bool enabled); 45 void SetSignoutEnabled(bool enabled);
45 46
46 // Returns the bounds of the password field in ScreenLocker's coordinate. 47 // Returns the bounds of the password field in ScreenLocker's coordinate.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 // Username that overlays on top of user's picture. 91 // Username that overlays on top of user's picture.
91 views::View* username_; 92 views::View* username_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(ScreenLockView); 94 DISALLOW_COPY_AND_ASSIGN(ScreenLockView);
94 }; 95 };
95 96
96 } // namespace chromeos 97 } // namespace chromeos
97 98
98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCK_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/rounded_view.h ('k') | chrome/browser/chromeos/login/screen_lock_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698