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 25 matching lines...) Expand all Loading... |
36 public: | 36 public: |
37 // Delegate class to get notifications from the view. | 37 // Delegate class to get notifications from the view. |
38 class Delegate { | 38 class Delegate { |
39 public: | 39 public: |
40 virtual ~Delegate() {} | 40 virtual ~Delegate() {} |
41 | 41 |
42 // User provided |username|, |password| and initiated login. | 42 // User provided |username|, |password| and initiated login. |
43 virtual void OnLogin(const std::string& username, | 43 virtual void OnLogin(const std::string& username, |
44 const std::string& password) = 0; | 44 const std::string& password) = 0; |
45 | 45 |
46 // Initiates off the record (incognito) login. | 46 // Initiates incognito login. |
47 virtual void OnLoginAsGuest() = 0; | 47 virtual void OnLoginAsGuest() = 0; |
48 | 48 |
49 // User initiated new account creation. | 49 // User initiated new account creation. |
50 virtual void OnCreateAccount() = 0; | 50 virtual void OnCreateAccount() = 0; |
51 | 51 |
52 // User started typing so clear all error messages. | 52 // User started typing so clear all error messages. |
53 virtual void ClearErrors() = 0; | 53 virtual void ClearErrors() = 0; |
54 | 54 |
55 // User tries to navigate away from NewUserView pod. | 55 // User tries to navigate away from NewUserView pod. |
56 virtual void NavigateAway() = 0; | 56 virtual void NavigateAway() = 0; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 // Ordinal position of controls inside view layout. | 183 // Ordinal position of controls inside view layout. |
184 int languages_menubutton_order_; | 184 int languages_menubutton_order_; |
185 int sign_in_button_order_; | 185 int sign_in_button_order_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(NewUserView); | 187 DISALLOW_COPY_AND_ASSIGN(NewUserView); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace chromeos | 190 } // namespace chromeos |
191 | 191 |
192 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ | 192 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_NEW_USER_VIEW_H_ |
OLD | NEW |