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

Side by Side Diff: chrome/browser/chromeos/login/existing_user_view.h

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month 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) 2011 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_EXISTING_USER_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
7 #pragma once
8
9 #include "chrome/browser/chromeos/login/helper.h"
10 #include "chrome/browser/chromeos/login/user_input.h"
11 #include "views/accelerator.h"
12 #include "views/controls/textfield/textfield_controller.h"
13 #include "views/view.h"
14
15 namespace chromeos {
16
17 class UserController;
18
19 class ExistingUserView : public ThrobberHostView,
20 public UserInput,
21 public views::TextfieldController {
22 public:
23 explicit ExistingUserView(UserController* user_controller);
24
25 void RecreateFields();
26
27 void FocusPasswordField();
28
29 // views::View:
30 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
31
32 // views::TextfieldController:
33 virtual void ContentsChanged(views::Textfield* sender,
34 const string16& new_contents);
35 virtual bool HandleKeyEvent(views::Textfield* sender,
36 const views::KeyEvent& keystroke);
37 virtual void RequestFocus();
38
39 // UserInput:
40 virtual void EnableInputControls(bool enabled);
41 virtual void ClearAndFocusControls();
42 virtual void ClearAndFocusPassword();
43 virtual gfx::Rect GetMainInputScreenBounds() const;
44
45 protected:
46 // views::View:
47 virtual void OnLocaleChanged();
48
49 private:
50 UserController* user_controller_;
51
52 // For editing the password.
53 views::Textfield* password_field_;
54
55 views::Accelerator accel_enterprise_enrollment_;
56 views::Accelerator accel_login_off_the_record_;
57 views::Accelerator accel_toggle_accessibility_;
58
59 DISALLOW_COPY_AND_ASSIGN(ExistingUserView);
60 };
61
62 } // chromeos
63
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_controller.cc ('k') | chrome/browser/chromeos/login/existing_user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698