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

Unified Diff: chrome/browser/ui/webui/new_profile_dom_handler.h

Issue 7256002: Multi-Profiles: New Profile Setup UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 9 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/new_profile_dom_handler.h
diff --git a/chrome/browser/ui/webui/new_profile_dom_handler.h b/chrome/browser/ui/webui/new_profile_dom_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..8e8cc3826de45c92cc8d304d6d61667b1c9cf0eb
--- /dev/null
+++ b/chrome/browser/ui/webui/new_profile_dom_handler.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_HANDLER_H_
+#pragma once
+
+#include "content/browser/webui/web_ui.h"
+
+class RefCountedMemory;
+
+// The handler for Javascript messages related to the "new profile" view.
James Hawkins 2011/06/30 23:02:58 s/view/page/
sail 2011/07/01 01:16:18 Done.
+class NewProfileDOMHandler : public WebUIMessageHandler {
+ public:
+ NewProfileDOMHandler();
+
+ // WebUIMessageHandler implementation.
+ virtual void RegisterMessages();
+
+ // Callback for the "create" message - finishes creating a profile.
+ void HandleCreate(const ListValue* args);
+
+ // Callback for the "cancel" message - cancels creating a profile.
+ void HandleCancel(const ListValue* args);
+
+ // Callback for the "requestProfileInfo" message - sends profile info.
+ void HandleRequestProfileInfo(const ListValue* args);
+
+ private:
+ void SendDefaultAvatarImages();
James Hawkins 2011/06/30 23:02:58 Document these methods.
sail 2011/07/01 01:16:18 Done.
+ void SendProfileInfo();
+
+ DISALLOW_COPY_AND_ASSIGN(NewProfileDOMHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_NEW_PROFILE_DOM_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698