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

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

Issue 6034002: Replace Textfield::Keystroke with views::KeyEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: key_code, ET_KEY_PRESS for WM_CHAR Created 9 years, 11 months 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_EXISTING_USER_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/helper.h" 9 #include "chrome/browser/chromeos/login/helper.h"
10 #include "chrome/browser/chromeos/login/user_input.h" 10 #include "chrome/browser/chromeos/login/user_input.h"
(...skipping 15 matching lines...) Expand all
26 void RecreateFields(); 26 void RecreateFields();
27 27
28 void FocusPasswordField(); 28 void FocusPasswordField();
29 29
30 // Overridden from views::View: 30 // Overridden from views::View:
31 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); 31 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
32 32
33 // Overriden from Textfield::Controller: 33 // Overriden from Textfield::Controller:
34 virtual void ContentsChanged(views::Textfield* sender, 34 virtual void ContentsChanged(views::Textfield* sender,
35 const string16& new_contents); 35 const string16& new_contents);
36 virtual bool HandleKeystroke(views::Textfield* sender, 36 virtual bool HandleKeyEvent(views::Textfield* sender,
37 const views::Textfield::Keystroke& keystroke); 37 const views::KeyEvent& keystroke);
38 38
39 // Overriden from UserInput: 39 // Overriden from UserInput:
40 virtual void EnableInputControls(bool enabled); 40 virtual void EnableInputControls(bool enabled);
41 virtual void ClearAndFocusControls(); 41 virtual void ClearAndFocusControls();
42 virtual void ClearAndFocusPassword(); 42 virtual void ClearAndFocusPassword();
43 virtual gfx::Rect GetMainInputScreenBounds() const; 43 virtual gfx::Rect GetMainInputScreenBounds() const;
44 44
45 protected: 45 protected:
46 // Overridden from views::View: 46 // Overridden from views::View:
47 virtual void OnLocaleChanged(); 47 virtual void OnLocaleChanged();
48 virtual void ViewHierarchyChanged(bool is_add, 48 virtual void ViewHierarchyChanged(bool is_add,
49 views::View* parent, 49 views::View* parent,
50 views::View* child); 50 views::View* child);
51 51
52 private: 52 private:
53 UserController* user_controller_; 53 UserController* user_controller_;
54 54
55 // For editing the password. 55 // For editing the password.
56 views::Textfield* password_field_; 56 views::Textfield* password_field_;
57 57
58 views::Accelerator accel_login_off_the_record_; 58 views::Accelerator accel_login_off_the_record_;
59 views::Accelerator accel_toggle_accessibility_; 59 views::Accelerator accel_toggle_accessibility_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(ExistingUserView); 61 DISALLOW_COPY_AND_ASSIGN(ExistingUserView);
62 }; 62 };
63 63
64 } // chromeos 64 } // chromeos
65 65
66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_EXISTING_USER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/captcha_view.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