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

Unified Diff: ppapi/proxy/ppb_input_event_proxy.cc

Issue 7621070: Merge the plugin and impl side of the audio config and input event resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed compile issues 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/ppb_input_event_proxy.cc
diff --git a/ppapi/proxy/ppb_input_event_proxy.cc b/ppapi/proxy/ppb_input_event_proxy.cc
index f94cdc213ba5728d49bdaa367ba92a3a6bf1e4d9..29513bc359b4c6c49b51199c5d53088c12048423 100644
--- a/ppapi/proxy/ppb_input_event_proxy.cc
+++ b/ppapi/proxy/ppb_input_event_proxy.cc
@@ -18,38 +18,6 @@ using ppapi::thunk::PPB_InputEvent_API;
namespace ppapi {
namespace proxy {
-// The implementation is actually in InputEventImpl.
-class InputEvent : public Resource, public InputEventImpl {
- public:
- InputEvent(const HostResource& resource, const InputEventData& data);
- virtual ~InputEvent();
-
- // Resource overrides.
- virtual PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE;
-
- // InputEventImpl overrides.
- virtual PP_Var StringToPPVar(const std::string& str) OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(InputEvent);
-};
-
-InputEvent::InputEvent(const HostResource& resource, const InputEventData& data)
- : Resource(resource),
- InputEventImpl(data) {
-}
-
-InputEvent::~InputEvent() {
-}
-
-PPB_InputEvent_API* InputEvent::AsPPB_InputEvent_API() {
- return this;
-}
-
-PP_Var InputEvent::StringToPPVar(const std::string& str) {
- return StringVar::StringToPPVar(0, str);
-}
-
namespace {
InterfaceProxy* CreateInputEventProxy(Dispatcher* dispatcher,
@@ -115,14 +83,6 @@ const InterfaceProxy::Info* PPB_InputEvent_Proxy::GetWheelInputEventInfo() {
return &info;
}
-// static
-PP_Resource PPB_InputEvent_Proxy::CreateProxyResource(
- PP_Instance instance,
- const InputEventData& data) {
- return (new InputEvent(HostResource::MakeInstanceOnly(instance), data))->
- GetReference();
-}
-
bool PPB_InputEvent_Proxy::OnMessageReceived(const IPC::Message& msg) {
// There are no IPC messages for this interface.
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698