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

Side by Side Diff: chrome/browser/chromeos/login/new_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_NEW_USER_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Setters for textfields. 89 // Setters for textfields.
90 void SetUsername(const std::string& username); 90 void SetUsername(const std::string& username);
91 void SetPassword(const std::string& password); 91 void SetPassword(const std::string& password);
92 92
93 // Attempt to login with the current field values. 93 // Attempt to login with the current field values.
94 void Login(); 94 void Login();
95 95
96 // Overridden from views::Textfield::Controller 96 // Overridden from views::Textfield::Controller
97 // Not thread-safe, by virtue of using SetupSession(). 97 // Not thread-safe, by virtue of using SetupSession().
98 virtual bool HandleKeystroke(views::Textfield* sender, 98 virtual bool HandleKeyEvent(views::Textfield* sender,
99 const views::Textfield::Keystroke& keystroke); 99 const views::KeyEvent& keystroke);
100 virtual void ContentsChanged(views::Textfield* sender, 100 virtual void ContentsChanged(views::Textfield* sender,
101 const string16& new_contents); 101 const string16& new_contents);
102 102
103 // Overridden from views::ButtonListener. 103 // Overridden from views::ButtonListener.
104 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 104 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
105 105
106 // Overridden from views::LinkController. 106 // Overridden from views::LinkController.
107 virtual void LinkActivated(views::Link* source, int event_flags); 107 virtual void LinkActivated(views::Link* source, int event_flags);
108 virtual bool AcceleratorPressed(const views::Accelerator& accelerator); 108 virtual bool AcceleratorPressed(const views::Accelerator& accelerator);
109 109
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 FRIEND_TEST_ALL_PREFIXES(LoginScreenTest, IncognitoLogin); 202 FRIEND_TEST_ALL_PREFIXES(LoginScreenTest, IncognitoLogin);
203 friend class LoginScreenTest; 203 friend class LoginScreenTest;
204 204
205 DISALLOW_COPY_AND_ASSIGN(NewUserView); 205 DISALLOW_COPY_AND_ASSIGN(NewUserView);
206 }; 206 };
207 207
208 } // namespace chromeos 208 } // namespace chromeos
209 209
210 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ 210 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/existing_user_view.cc ('k') | chrome/browser/chromeos/login/new_user_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698