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

Unified Diff: chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h

Issue 2341803003: Add chrome://vr-shell-ui internal page (Closed)
Patch Set: review Created 4 years, 3 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/vr_shell/vr_shell_ui_message_handler.h
diff --git a/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..ee18b80b3a7c0b0c16d4efec3559ee89b816e942
--- /dev/null
+++ b/chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h
@@ -0,0 +1,40 @@
+// 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_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_
+#define CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_
+
+#include <string>
+
+#include "base/macros.h"
+#include "content/public/browser/web_ui_message_handler.h"
+
+namespace base {
+class ListValue;
+}
+
+namespace vr_shell {
+class VrShell;
+}
+
+class VrShellUIMessageHandler : public content::WebUIMessageHandler {
+ public:
+ VrShellUIMessageHandler();
+ ~VrShellUIMessageHandler() override;
+
+ private:
+ // content::WebUIMessageHandler:
+ void RegisterMessages() override;
+
+ void HandleDomLoaded(const base::ListValue* args);
+ void HandleSetDevicePixelRatio(const base::ListValue* args);
+ void HandleAddMesh(const base::ListValue* args);
+ void HandleRemoveMesh(const base::ListValue* args);
+ void HandleAddAnimations(const base::ListValue* args);
+ void HandleDoAction(const base::ListValue* args);
+
+ DISALLOW_COPY_AND_ASSIGN(VrShellUIMessageHandler);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698