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

Side by Side Diff: webkit/plugins/ppapi/ppb_input_event_impl.h

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 9 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ppapi/shared_impl/input_event_impl.h" 5 #include "ppapi/shared_impl/input_event_impl.h"
6 #include "webkit/plugins/ppapi/resource.h" 6 #include "webkit/plugins/ppapi/resource.h"
7 7
8 namespace ppapi { 8 namespace ppapi {
9 struct InputEventData; 9 struct InputEventData;
10 } 10 }
11 11
12 namespace webkit { 12 namespace webkit {
13 namespace ppapi { 13 namespace ppapi {
14 14
15 class PPB_InputEvent_Impl : public Resource, 15 class PPB_InputEvent_Impl : public Resource,
16 public ::ppapi::InputEventImpl { 16 public ::ppapi::InputEventImpl {
17 public: 17 public:
18 PPB_InputEvent_Impl(PluginInstance* instance, 18 PPB_InputEvent_Impl(PluginInstance* instance,
19 const ::ppapi::InputEventData& data); 19 const ::ppapi::InputEventData& data);
20 20
21 static PP_Resource Create(PluginInstance* instance, 21 static PP_Resource Create(PluginInstance* instance,
22 const ::ppapi::InputEventData& data); 22 const ::ppapi::InputEventData& data);
23 23
24 // ResourceObjectBase overrides. 24 // Resource overrides.
25 virtual ::ppapi::thunk::PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE; 25 virtual ::ppapi::thunk::PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE;
26 26
27 protected: 27 protected:
28 // InputEventImpl implementation. 28 // InputEventImpl implementation.
29 virtual PP_Var StringToPPVar(const std::string& str) OVERRIDE; 29 virtual PP_Var StringToPPVar(const std::string& str) OVERRIDE;
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(PPB_InputEvent_Impl); 32 DISALLOW_COPY_AND_ASSIGN(PPB_InputEvent_Impl);
33 }; 33 };
34 34
35 } // namespace ppapi 35 } // namespace ppapi
36 } // namespace webkit 36 } // namespace webkit
37 37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698