OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ | 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_ | 6 #define CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/browser/android/vr_shell/ui_interface.h" | 10 #include "chrome/browser/android/vr_shell/ui_interface.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 void SendCommandToUi(const base::Value& value) override; | 27 void SendCommandToUi(const base::Value& value) override; |
28 | 28 |
29 private: | 29 private: |
30 // content::WebUIMessageHandler: | 30 // content::WebUIMessageHandler: |
31 void RegisterMessages() override; | 31 void RegisterMessages() override; |
32 void OnJavascriptAllowed() override; | 32 void OnJavascriptAllowed() override; |
33 | 33 |
34 void HandleDomLoaded(const base::ListValue* args); | 34 void HandleDomLoaded(const base::ListValue* args); |
35 void HandleUpdateScene(const base::ListValue* args); | 35 void HandleUpdateScene(const base::ListValue* args); |
36 void HandleDoAction(const base::ListValue* args); | 36 void HandleDoAction(const base::ListValue* args); |
| 37 void HandleSetUiCssSize(const base::ListValue* args); |
37 | 38 |
38 base::WeakPtr<vr_shell::VrShell> vr_shell_; | 39 base::WeakPtr<vr_shell::VrShell> vr_shell_; |
39 | 40 |
40 DISALLOW_COPY_AND_ASSIGN(VrShellUIMessageHandler); | 41 DISALLOW_COPY_AND_ASSIGN(VrShellUIMessageHandler); |
41 }; | 42 }; |
42 | 43 |
43 #endif // CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ | 44 #endif // CHROME_BROWSER_UI_WEBUI_VR_SHELL_VR_SHELL_UI_MESSAGE_HANDLER_H_ |
OLD | NEW |