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

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

Issue 2401853005: Adding client code for new Windows 10 First Run Experience (Closed)
Patch Set: Using Polymer dom-bind Created 4 years, 2 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/welcome_win10_handler.h
diff --git a/chrome/browser/ui/webui/welcome_win10_handler.h b/chrome/browser/ui/webui/welcome_win10_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..8acd2a1d09406631804b59f0e2fd4a1fa4917491
--- /dev/null
+++ b/chrome/browser/ui/webui/welcome_win10_handler.h
@@ -0,0 +1,27 @@
+// Copyright 2016 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_WELCOME_WIN10_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_WELCOME_WIN10_HANDLER_H_
+
+#include "base/macros.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+// Handles actions on the Windows 10 specific Welcome page.
+class WelcomeWin10Handler : public content::WebUIMessageHandler {
+ public:
+ explicit WelcomeWin10Handler(content::WebUI* web_ui);
+ ~WelcomeWin10Handler() override;
+
+ // content::WebUIMessageHandler:
+ void RegisterMessages() override;
+
+ private:
+ void HandleSetDefaultBrowser(const base::ListValue* args);
michaelpg 2016/10/22 03:19:01 nit: forward declare ListValue
Patrick Monette 2016/10/24 20:49:40 Done.
+ void HandleContinue(const base::ListValue* args);
+
+ DISALLOW_COPY_AND_ASSIGN(WelcomeWin10Handler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_WELCOME_WIN10_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698