blob: 513970460797d78b03db7f2beb0235d2b07f38ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/plugins/ppapi/ppb_input_event_impl.h"
#include "webkit/plugins/ppapi/plugin_module.h"
#include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
#include "webkit/plugins/ppapi/var.h"
using ppapi::InputEventData;
using ppapi::InputEventImpl;
using ppapi::thunk::PPB_InputEvent_API;
namespace webkit {
namespace ppapi {
PPB_InputEvent_Impl::PPB_InputEvent_Impl(PluginInstance* instance,
const InputEventData& data)
: Resource(instance),
InputEventImpl(data) {
}
// static
PP_Resource PPB_InputEvent_Impl::Create(PluginInstance* instance,
const InputEventData& data) {
scoped_refptr<PPB_InputEvent_Impl> event(
new PPB_InputEvent_Impl(instance, data));
return event->GetReference();
}
PPB_InputEvent_API* PPB_InputEvent_Impl::AsPPB_InputEvent_API() {
return this;
}
PP_Var PPB_InputEvent_Impl::StringToPPVar(const std::string& str) {
return StringVar::StringToPPVar(instance()->module()->pp_module(), str);
}
} // namespace ppapi
} // namespace webkit
|