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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_gamepad_host.cc

Issue 10824272: Add a skeleton gamepad resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698