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

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

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_GAMEPAD_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_GAMEPAD_HOST_H_
7
8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h"
10 #include "ppapi/host/resource_host.h"
11
12 namespace content {
13
14 class BrowserPpapiHost;
15
16 class CONTENT_EXPORT PepperGamepadHost : public ppapi::host::ResourceHost {
17 public:
18 PepperGamepadHost(BrowserPpapiHost* host,
19 PP_Instance instance,
20 PP_Resource resource);
21 virtual ~PepperGamepadHost();
22
23 virtual int32_t OnResourceMessageReceived(
24 const IPC::Message& msg,
25 ppapi::host::HostMessageContext* context) OVERRIDE;
26
27 private:
28 int32_t OnMsgRequestMemory(ppapi::host::HostMessageContext* context);
29
30 BrowserPpapiHost* browser_ppapi_host_;
raymes 2012/08/23 15:52:32 Probably good to make a note about pointer ownersh
31
32 DISALLOW_COPY_AND_ASSIGN(PepperGamepadHost);
33 };
34
35 } // namespace content
36
37 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_GAMEPAD_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698