| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/prefs/pref_member.h" | 9 #include "chrome/browser/prefs/pref_member.h" |
| 10 #include "content/browser/webui/web_ui.h" | 10 #include "content/browser/webui/web_ui.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void HandleLoginMessageSeen(const ListValue* args); | 64 void HandleLoginMessageSeen(const ListValue* args); |
| 65 | 65 |
| 66 // Called from JS when the user clicks on the advanced link the sync promo NTP | 66 // Called from JS when the user clicks on the advanced link the sync promo NTP |
| 67 // bubble. Use use this to navigate to the sync settings page. |args| is the | 67 // bubble. Use use this to navigate to the sync settings page. |args| is the |
| 68 // list of arguments passed from JS and should be an empty list. | 68 // list of arguments passed from JS and should be an empty list. |
| 69 void HandleShowAdvancedLoginUI(const ListValue* args); | 69 void HandleShowAdvancedLoginUI(const ListValue* args); |
| 70 | 70 |
| 71 // Internal helper method | 71 // Internal helper method |
| 72 void UpdateLogin(); | 72 void UpdateLogin(); |
| 73 | 73 |
| 74 // Internal helper method |
| 75 string16 AddCSSClass(std::string display_string, std::string css_class); |
| 76 |
| 77 // Internal helper method |
| 78 string16 AddCSSClass(string16 display_string, std::string css_class); |
| 79 |
| 74 StringPrefMember username_pref_; | 80 StringPrefMember username_pref_; |
| 75 content::NotificationRegistrar registrar_; | 81 content::NotificationRegistrar registrar_; |
| 76 }; | 82 }; |
| 77 | 83 |
| 78 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ | 84 #endif // CHROME_BROWSER_UI_WEBUI_NTP_NTP_LOGIN_HANDLER_H_ |
| OLD | NEW |