| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |