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 #include "chrome/browser/ui/webui/vr_shell/vr_shell_ui_message_handler.h" |
| 6 |
| 7 #include <memory> |
| 8 |
| 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" |
| 11 #include "base/values.h" |
| 12 #include "content/public/browser/web_ui.h" |
| 13 |
| 14 VrShellUIMessageHandler::VrShellUIMessageHandler() {} |
| 15 |
| 16 VrShellUIMessageHandler::~VrShellUIMessageHandler() {} |
| 17 |
| 18 void VrShellUIMessageHandler::RegisterMessages() { |
| 19 web_ui()->RegisterMessageCallback( |
| 20 "domLoaded", base::Bind(&VrShellUIMessageHandler::HandleDomLoaded, |
| 21 base::Unretained(this))); |
| 22 web_ui()->RegisterMessageCallback( |
| 23 "addMesh", base::Bind(&VrShellUIMessageHandler::HandleAddMesh, |
| 24 base::Unretained(this))); |
| 25 web_ui()->RegisterMessageCallback( |
| 26 "removeMesh", base::Bind(&VrShellUIMessageHandler::HandleRemoveMesh, |
| 27 base::Unretained(this))); |
| 28 web_ui()->RegisterMessageCallback( |
| 29 "doAction", base::Bind(&VrShellUIMessageHandler::HandleDoAction, |
| 30 base::Unretained(this))); |
| 31 web_ui()->RegisterMessageCallback( |
| 32 "addAnimations", base::Bind(&VrShellUIMessageHandler::HandleAddAnimations, |
| 33 base::Unretained(this))); |
| 34 web_ui()->RegisterMessageCallback( |
| 35 "setDevicePixelRatio", |
| 36 base::Bind(&VrShellUIMessageHandler::HandleSetDevicePixelRatio, |
| 37 base::Unretained(this))); |
| 38 } |
| 39 |
| 40 void VrShellUIMessageHandler::HandleDomLoaded(const base::ListValue* args) { |
| 41 NOTIMPLEMENTED(); |
| 42 } |
| 43 |
| 44 void VrShellUIMessageHandler::HandleSetDevicePixelRatio( |
| 45 const base::ListValue* args) { |
| 46 NOTIMPLEMENTED(); |
| 47 } |
| 48 |
| 49 void VrShellUIMessageHandler::HandleAddMesh(const base::ListValue* args) { |
| 50 NOTIMPLEMENTED(); |
| 51 } |
| 52 |
| 53 void VrShellUIMessageHandler::HandleRemoveMesh(const base::ListValue* args) { |
| 54 NOTIMPLEMENTED(); |
| 55 } |
| 56 |
| 57 void VrShellUIMessageHandler::HandleAddAnimations(const base::ListValue* args) { |
| 58 NOTIMPLEMENTED(); |
| 59 } |
| 60 |
| 61 void VrShellUIMessageHandler::HandleDoAction(const base::ListValue* args) { |
| 62 NOTIMPLEMENTED(); |
| 63 } |
OLD | NEW |