OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 "content/browser/renderer_host/pepper/pepper_gamepad_host.h" |
| 6 |
| 7 #include "content/public/browser/browser_ppapi_host.h" |
| 8 #include "ppapi/c/pp_errors.h" |
| 9 #include "ppapi/host/dispatch_host_message.h" |
| 10 #include "ppapi/proxy/ppapi_messages.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 PepperGamepadHost::PepperGamepadHost(BrowserPpapiHost* host, |
| 15 PP_Instance instance, |
| 16 PP_Resource resource) |
| 17 : ResourceHost(host->GetPpapiHost(), instance, resource), |
| 18 browser_ppapi_host_(host) { |
| 19 } |
| 20 |
| 21 PepperGamepadHost::~PepperGamepadHost() { |
| 22 } |
| 23 |
| 24 int32_t PepperGamepadHost::OnResourceMessageReceived( |
| 25 const IPC::Message& msg, |
| 26 ppapi::host::HostMessageContext* context) { |
| 27 IPC_BEGIN_MESSAGE_MAP(PepperGamepadHost, msg) |
| 28 PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(PpapiHostMsg_Gamepad_RequestMemory, |
| 29 OnMsgRequestMemory) |
| 30 IPC_END_MESSAGE_MAP() |
| 31 return PP_ERROR_FAILED; |
| 32 } |
| 33 |
| 34 int32_t PepperGamepadHost::OnMsgRequestMemory( |
| 35 ppapi::host::HostMessageContext* context) { |
| 36 return PP_ERROR_FAILED; |
| 37 } |
| 38 |
| 39 } // namespace content |
OLD | NEW |