Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ | |
| 6 #define CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "content/public/browser/web_ui_message_handler.h" | |
| 12 | |
| 13 namespace base { | |
| 14 class ListValue; | |
| 15 } // namespace base | |
|
xiyuan
2016/09/15 22:58:47
nit: remove "// namespace base" to be consistent w
bshe
2016/09/16 18:27:53
Done.
| |
| 16 | |
| 17 namespace vr_shell { | |
| 18 class VrShell; | |
| 19 } | |
| 20 | |
| 21 class VrShellUIMessageHandler : public content::WebUIMessageHandler { | |
| 22 public: | |
| 23 VrShellUIMessageHandler(); | |
| 24 ~VrShellUIMessageHandler() override; | |
| 25 | |
| 26 private: | |
| 27 // content::WebUIMessageHandler: | |
| 28 void RegisterMessages() override; | |
| 29 | |
| 30 void HandleDomLoaded(const base::ListValue* args); | |
| 31 void HandleSetDevicePixelRatio(const base::ListValue* args); | |
| 32 void HandleAddMesh(const base::ListValue* args); | |
| 33 void HandleRemoveMesh(const base::ListValue* args); | |
| 34 void HandleAddAnimations(const base::ListValue* args); | |
| 35 void HandleDoAction(const base::ListValue* args); | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(VrShellUIMessageHandler); | |
| 38 }; | |
| 39 | |
| 40 #endif // CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ | |
| OLD | NEW |