-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlinphone.cpp
71 lines (56 loc) · 1.67 KB
/
linphone.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
59
60
61
62
63
64
65
66
67
68
69
70
71
/**********************************************************\
Auto-generated linphone.cpp
This file contains the auto-generated main plugin object
implementation for the linphone project
\**********************************************************/
#include "NpapiTypes.h"
#include "linphoneAPI.h"
#include "linphone.h"
void linphone::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
printf("juzna: first init\n");
}
void linphone::StaticDeinitialize()
{
// Place one-time deinitialization stuff here
printf("juzna: last init\n");
}
linphone::linphone()
{
}
linphone::~linphone()
{
}
FB::JSAPI* linphone::createJSAPI()
{
// m_host is the BrowserHostWrapper
return new linphoneAPI(m_host);
}
bool linphone::onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow *)
{
//printf("Mouse down at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}
bool linphone::onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow *)
{
//printf("Mouse up at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}
bool linphone::onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow *)
{
//printf("Mouse move at: %d, %d\n", evt->m_x, evt->m_y);
return false;
}
bool linphone::onWindowAttached(FB::AttachedEvent *evt, FB::PluginWindow *)
{
// The window is attached; act appropriately
return false;
}
bool linphone::onWindowDetached(FB::DetachedEvent *evt, FB::PluginWindow *)
{
// The window is about to be detached; act appropriately
return false;
}