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

Side by Side Diff: chrome/browser/ui/webui/ntp/ntp_login_handler.h

Issue 8921008: Follow-up to bug 102685 (r113862) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Refactoring AddCSSClass into a separate method Created 9 years 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/ntp_login_handler.cc » ('j') | chrome/browser/ui/webui/ntp/ntp_login_handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698