-
Notifications
You must be signed in to change notification settings - Fork 4
/
IndexedDatabasePlugin.cpp
58 lines (44 loc) · 1.5 KB
/
IndexedDatabasePlugin.cpp
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**********************************************************\
Auto-generated IndexedDatabasePlugin.cpp
This file contains the auto-generated main plugin object
implementation for the ${PLUGIN.name} project
\**********************************************************/
#include "NpapiTypes.h"
#include "IndexedDatabasePluginAPI.h"
#include "IndexedDatabasePlugin.h"
void IndexedDatabasePlugin::StaticInitialize()
{
// Place one-time initialization stuff here; note that there isn't an absolute guarantee that
// this will only execute once per process, just a guarantee that it won't execute again until
// after StaticDeinitialize is called
}
void IndexedDatabasePlugin::StaticDeinitialize()
{
// Place one-time deinitialization stuff here
}
IndexedDatabasePlugin::IndexedDatabasePlugin()
{
}
IndexedDatabasePlugin::~IndexedDatabasePlugin()
{
}
FB::JSAPIPtr IndexedDatabasePlugin::createJSAPI()
{
// m_host is the BrowserHostWrapper
return boost::make_shared<IndexedDatabasePluginAPI>(m_host);
}
bool IndexedDatabasePlugin::onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow*)
{
//printf("Mouse down at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}
bool IndexedDatabasePlugin::onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow*)
{
//printf("Mouse up at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}
bool IndexedDatabasePlugin::onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow*)
{
//printf("Mouse move at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}