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

Unified Diff: chrome/browser/ui/webui/chromeos/login/base_screen_handler.h

Issue 326933004: Example of usage of new features of context and screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
diff --git a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
index 9efddca25312b298cf9845616bff6667ad0c7d6b..8f7a79bdd1dcd112e4bc23b03238a9960ea9cb02 100644
--- a/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
+++ b/chrome/browser/ui/webui/chromeos/login/base_screen_handler.h
@@ -200,6 +200,12 @@ class BaseScreenHandler : public content::WebUIMessageHandler {
name, base::Bind(&CallbackWrapper4<A1, A2, A3, A4>, callback));
}
+ template <typename Method>
+ void AddPrefixedCallback(const std::string& unprefixed_name,
+ const Method& method) {
+ AddCallback(FullMethodPath(unprefixed_name), method);
+ }
+
// Called when the page is ready and handler can do initialization.
virtual void Initialize() = 0;
« no previous file with comments | « chrome/browser/resources/login/screen.js ('k') | chrome/browser/ui/webui/chromeos/login/controller_pairing_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698