My favorites | Sign in
ovw
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
// ============================================================================
//
// Apollo
//
// ============================================================================

#include "Apollo.h"
#include "Local.h"
#include "ArenaModule.h"
#include "ArenaModuleTester.h"
#include "Avatar.h"

Display* ArenaModule::CreateDisplay(const ApHandle& hContext)
{
Display* pDisplay = new Display(this, hContext);
if (pDisplay) {
int ok = pDisplay->Create();
if (ok ) {
displays_.Set(hContext, pDisplay);
} else {
delete pDisplay;
pDisplay = 0;
}
}
return pDisplay;
}

void ArenaModule::DeleteDisplay(const ApHandle& hContext)
{
Display* pDisplay = FindDisplay(hContext);
if (pDisplay) {
pDisplay->Destroy();
displays_.Unset(hContext);
delete pDisplay;
pDisplay = 0;
}
}

Display* ArenaModule::FindDisplay(const ApHandle& hContext)
{
Display* pDisplay = 0;
displays_.Get(hContext, pDisplay);
return pDisplay;
}

//---------------------------

//void ArenaModule::DeleteOldLeaveRequestedLocations()
//{
// int bDone = 0;
// while (!bDone) {
// ApHandle hLocation;
// bDone = 1;
//
// LocationListIterator iter(locations_);
// for (LocationListNode* pNode = 0; (pNode = iter.Next()) != 0; ) {
// Location* pLocation = pNode->Value();
// if (pLocation) {
// int bTooOld = pLocation->TellDeleteMe();
// if (bTooOld) {
// hLocation = pNode->Key();
// bDone = 0;
// break;
// }
// }
// }
//
// if (ApIsHandle(hLocation)) {
// apLog_Info((LOG_CHANNEL, LOG_CONTEXT, "deleting location=" ApHandleFormat "", ApHandlePrintf(hLocation)));
// DeleteLocation(hLocation);
// }
// }
//}

//---------------------------

void ArenaModule::SetContextOfHandle(const ApHandle& h, const ApHandle& hContext)
{
if (contextOfHandle_.IsSet(h)) {
contextOfHandle_.Unset(h);
}
contextOfHandle_.Set(h, hContext);
}

void ArenaModule::DeleteContextOfHandle(const ApHandle& h, const ApHandle& hContext)
{
ApHandle hDelete;
contextOfHandle_.Get(h, hDelete);
if (hDelete != hContext) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "Context not found for handle=" ApHandleFormat " ctxt=" ApHandleFormat "", ApHandlePrintf(h), ApHandlePrintf(hContext)));
} else {
contextOfHandle_.Unset(h);
}
}

ApHandle ArenaModule::GetContextOfHandle(const ApHandle& h)
{
if (contextOfHandle_.IsSet(h)) {
return contextOfHandle_.Find(h)->Value();
}
return ApNoHandle;
}

Display* ArenaModule::GetDisplayOfHandle(const ApHandle& h)
{
ApHandle hContext = GetContextOfHandle(h);
if (ApIsHandle(hContext)) {
return FindDisplay(hContext);
}
return 0;
}

//---------------------------

void ArenaModule::SetContextOfLocation(const ApHandle& hLocation, const ApHandle& hContext)
{
if (!contextsOfLocation_.IsSet(hLocation)) {
ContextHandleList locationContexts;
contextsOfLocation_.Set(hLocation, locationContexts);
}
LocationContextHandleNode* pLocationContexts = contextsOfLocation_.Find(hLocation);
if (pLocationContexts) {
pLocationContexts->Value().Set(hContext, 1);
}
}

void ArenaModule::DeleteContextOfLocation(const ApHandle& hLocation, const ApHandle& hContext)
{
LocationContextHandleNode* pLocationContexts = contextsOfLocation_.Find(hLocation);
if (pLocationContexts == 0) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "Location not found loc=" ApHandleFormat "", ApHandlePrintf(hLocation)));
} else {
if (!pLocationContexts->Value().IsSet(hContext)) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "Context of location not found loc=" ApHandleFormat " ctxt=" ApHandleFormat "", ApHandlePrintf(hLocation), ApHandlePrintf(hContext)));
} else {
pLocationContexts->Value().Unset(hContext);
if (pLocationContexts->Value().Count() == 0) {
contextsOfLocation_.Unset(hLocation);
}
}
}
}

static ContextHandleList ArenaModule_emptyContextHandleList;

ContextHandleList& ArenaModule::GetContextsOfLocation(const ApHandle& hLocation)
{
LocationContextHandleNode* pLocationContexts = contextsOfLocation_.Find(hLocation);
if (pLocationContexts) {
return pLocationContexts->Value();
} else {
return ArenaModule_emptyContextHandleList;
}
}

//---------------------------

void ArenaModule::SetParticipantOfAnimation(const ApHandle& hAnimation, const ApHandle& hParticipant)
{
if (participantOfAnimation_.IsSet(hAnimation)) {
participantOfAnimation_.Unset(hAnimation);
}
participantOfAnimation_.Set(hAnimation, hParticipant);
}

void ArenaModule::DeleteParticipantOfAnimation(const ApHandle& hAnimation, const ApHandle& hParticipant)
{
ApHandle h;
participantOfAnimation_.Get(hAnimation, h);
if (h != hParticipant) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "Participant not found for loc=" ApHandleFormat " ctxt=" ApHandleFormat "", ApHandlePrintf(hParticipant)));
} else {
participantOfAnimation_.Unset(hAnimation);
}
}

ApHandle ArenaModule::GetParticipantOfAnimation(const ApHandle& hAnimation)
{
if (participantOfAnimation_.IsSet(hAnimation)) {
return participantOfAnimation_.Find(hAnimation)->Value();
}
return ApNoHandle;
}

//----------------------------------------------------------

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextCreated)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "Display already exists for ctxt=" ApHandleFormat "", ApHandlePrintf(pMsg->hContext)));
} else {
pDisplay = CreateDisplay(pMsg->hContext);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextDestroyed)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay == 0) {
apLog_Warning((LOG_CHANNEL, LOG_CONTEXT, "No display for ctxt=" ApHandleFormat "", ApHandlePrintf(pMsg->hContext)));
} else {
DeleteDisplay(pMsg->hContext);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextVisibility)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->SetVisibility(pMsg->bVisible);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextPosition)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->SetPosition(pMsg->nLeft, pMsg->nBottom);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextSize)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->SetSize(pMsg->nWidth, pMsg->nHeight);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LocationsChanged) {}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextLocationAssigned)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->AttachLocation(pMsg->hLocation);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextLocationUnassigned)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->DetachLocation(pMsg->hLocation);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ContextDetailsChanged)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay) {
pDisplay->OnContextDetailsChanged(pMsg->vlKeys);
}
}

//----------------------------

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LocationDetailsChanged)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnLocationDetailsChanged(pMsg->vlKeys);
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_EnterLocationRequested)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnEnterRequested();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_EnterLocationBegin)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnEnterBegin();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_EnterLocationComplete)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnEnterComplete();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LocationContextsChanged) {}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ParticipantsChanged)
{
//Display* pDisplay = GetDisplayOfHandle(pMsg->hLocation);
//if (pDisplay) {
// pDisplay->OnParticipantsChanged();
//}
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnParticipantsChanged();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LocationPublicChat)
{
Apollo::TimeValue tv(pMsg->nSec, pMsg->nMicroSec);
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnReceivePublicChat(pMsg->hParticipant, pMsg->hChat, pMsg->sNickname, pMsg->sText, tv);
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LocationPublicAction)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnReceivePublicAction(pMsg->hParticipant, pMsg->sAction);
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ParticipantDetailsChanged)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnParticipantDetailsChanged(pMsg->hParticipant, pMsg->vlKeys);
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LeaveLocationRequested)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnLeaveRequested();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LeaveLocationBegin)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnLeaveBegin();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_LeaveLocationComplete)
{
ContextHandleList& contextsOfLocation = GetContextsOfLocation(pMsg->hLocation);
for (ContextHandleNode* pContextNode = 0; (pContextNode = contextsOfLocation.Next(pContextNode)) != 0; ) {
Display* pDisplay = FindDisplay(pContextNode->Key());
if (pDisplay) {
pDisplay->OnLeaveComplete();
}
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ParticipantAdded) {}

AP_MSG_HANDLER_METHOD(ArenaModule, VpView_ParticipantRemoved) {}

//----------------------------

AP_MSG_HANDLER_METHOD(ArenaModule, WebView_Event_DocumentLoaded)
{
Display* pDisplay = GetDisplayOfHandle(pMsg->hView);
if (pDisplay) {
pDisplay->OnViewLoaded();
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, WebView_Event_Closing)
{
Display* pDisplay = GetDisplayOfHandle(pMsg->hView);
if (pDisplay) {
pDisplay->OnViewUnload();
}
}

//----------------------------

AP_MSG_HANDLER_METHOD(ArenaModule, Animation_SequenceBegin)
{
Display* pDisplay = GetDisplayOfHandle(pMsg->hItem);
if (pDisplay) {
ApHandle hParticipant = GetParticipantOfAnimation(pMsg->hItem);
String sUrl = pMsg->sUrl;
if (!sUrl) {
sUrl = pMsg->sSrc;
}
pDisplay->OnAvatarAnimationBegin(hParticipant, sUrl);
}
}

//AP_MSG_HANDLER_METHOD(ArenaModule, Animation_Frame)
//{
// Display* pDisplay = GetDisplayOfHandle(pMsg->hItem);
// if (pDisplay) {
// ApHandle hParticipant = GetParticipantOfAnimation(pMsg->hItem);
// pDisplay->OnAvatarAnimationFrame(hParticipant, pMsg->iFrame);
// }
//}
//
//AP_MSG_HANDLER_METHOD(ArenaModule, Animation_SequenceEnd)
//{
// Display* pDisplay = GetDisplayOfHandle(pMsg->hItem);
// if (pDisplay) {
// ApHandle hParticipant = GetParticipantOfAnimation(pMsg->hItem);
// pDisplay->OnAvatarAnimationEnd(hParticipant);
// }
//}

//----------------------------

AP_MSG_HANDLER_METHOD(ArenaModule, WebView_ModuleCall)
{
Display* pDisplay = GetDisplayOfHandle(pMsg->hView);
if (pDisplay) {
pDisplay->OnModuleCall(pMsg->srpc, pMsg->response);
pMsg->apStatus = ApMessage::Ok;
}
}

AP_MSGCLASS_HANDLER_METHOD(ArenaModule, Navigator_CallDisplay, ApSRPCMessage)
{
String sContext = pMsg->srpc.getString("hContext");
if (sContext) {
ApHandle hContext = Apollo::string2Handle(sContext);
if (ApIsHandle(hContext)) {
Display* pDisplay = FindDisplay(hContext);
if (pDisplay) {
pDisplay->OnNavigatorCallDisplay(pMsg->srpc, pMsg->response);
pMsg->apStatus = ApMessage::Ok;
}
}
}
}

#if defined(WIN32)
AP_MSG_HANDLER_METHOD(ArenaModule, BrowserInfo_GetContextWin32Window)
{
Display* pDisplay = FindDisplay(pMsg->hContext);
if (pDisplay == 0) { throw ApException(LOG_CONTEXT, "No display for context=" ApHandleFormat "", ApHandlePrintf(pMsg->hContext)); }

Msg_WebView_GetWin32Window msg;
msg.hView = pDisplay->GetView();
if (!msg.Request()) { throw ApException(LOG_CONTEXT, "Msg_WebView_GetWin32Window(" ApHandleFormat ") failed: %s", ApHandlePrintf(msg.hView), _sz(msg.sComment)); }

pMsg->hWnd = msg.hWnd;
pMsg->apStatus = ApMessage::Ok;
}
#endif // defined(WIN32)

//----------------------------------------------------------

#if defined(AP_TEST)

ApHandle Test_Avatar_RemoveOldPublicChats_hView_;
ApHandle Test_Avatar_RemoveOldPublicChats_hRemovedChat_;

void Test_Avatar_RemoveOldPublicChats_ViewSrpcMessage(ViewSrpcMessage* pMsg)
{
if (pMsg->hView == Test_Avatar_RemoveOldPublicChats_hView_) {
if (pMsg->srpc.getString(Srpc::Key::Method) == "RemoveAvatarChat") {
Test_Avatar_RemoveOldPublicChats_hRemovedChat_ = pMsg->srpc.getHandle("hChat");
}
pMsg->apStatus = ApMessage::Ok;
}
}

static String Test_Avatar_RemoveOldPublicChats()
{
String s;

Test_Avatar_RemoveOldPublicChats_hView_ = ApHandle(12345, 12345);

ArenaModule m;
Display d(&m, Apollo::newHandle()); d._SetView(Test_Avatar_RemoveOldPublicChats_hView_);
Avatar a(&m, &d, Apollo::newHandle());

{ ViewSrpcMessage msg(&d, "Dummy"); msg.Hook(MODULE_NAME, (ApCallback) Test_Avatar_RemoveOldPublicChats_ViewSrpcMessage, 0, ApCallbackPosEarly); }

ApHandle hChat2 = Apollo::newHandle();
ApHandle hChat1 = Apollo::newHandle();
ApHandle hChat4 = Apollo::newHandle();
ApHandle hChat3 = Apollo::newHandle();

a.OnReceivePublicChat(hChat4, "Nickname4", "Text4", Apollo::TimeValue(4, 0));
a.OnReceivePublicChat(hChat3, "Nickname3", "Text3", Apollo::TimeValue(3, 0));
a.OnReceivePublicChat(hChat1, "Nickname1", "Text1", Apollo::TimeValue(1, 0));
a.OnReceivePublicChat(hChat2, "Nickname2", "Text2", Apollo::TimeValue(2, 0));

if (Test_Avatar_RemoveOldPublicChats_hRemovedChat_ != hChat1) {
s = "Did not send remove oldest chat to view";
}

{ ViewSrpcMessage msg(&d, "Dummy"); msg.Unhook(MODULE_NAME, (ApCallback) Test_Avatar_RemoveOldPublicChats_ViewSrpcMessage, 0); }

return s;
}

AP_MSG_HANDLER_METHOD(ArenaModule, UnitTest_Begin)
{
AP_UNUSED_ARG(pMsg);
if (Apollo::getConfig("Test/Arena", 0)) {
ArenaModuleTester::Begin();
AP_UNITTEST_REGISTER(Test_Avatar_RemoveOldPublicChats);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, UnitTest_Execute)
{
AP_UNUSED_ARG(pMsg);
if (Apollo::getConfig("Test/Arena", 0)) {
ArenaModuleTester::Execute();
AP_UNITTEST_EXECUTE(Test_Avatar_RemoveOldPublicChats);
}
}

AP_MSG_HANDLER_METHOD(ArenaModule, UnitTest_End)
{
AP_UNUSED_ARG(pMsg);
if (Apollo::getConfig("Test/Arena", 0)) {
ArenaModuleTester::End();
}
}

#endif // #if defined(AP_TEST)

//----------------------------------------------------------

int ArenaModule::Init()
{
int ok = 1;

AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextCreated, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextDestroyed, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextVisibility, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextPosition, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextSize, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LocationsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextLocationAssigned, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextLocationUnassigned, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_EnterLocationRequested, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_EnterLocationBegin, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_EnterLocationComplete, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LocationContextsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ParticipantsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LocationPublicChat, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LocationPublicAction, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LocationDetailsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ContextDetailsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ParticipantDetailsChanged, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LeaveLocationRequested, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LeaveLocationBegin, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_LeaveLocationComplete, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ParticipantAdded, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, VpView_ParticipantRemoved, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, WebView_Event_DocumentLoaded, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, WebView_Event_Closing, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, Animation_SequenceBegin, this, ApCallbackPosNormal);
//AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, Animation_Frame, this, ApCallbackPosNormal);
//AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, Animation_SequenceEnd, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, WebView_ModuleCall, this, ApCallbackPosNormal);
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, Navigator_CallDisplay, this, ApCallbackPosNormal);
#if defined(WIN32)
AP_MSG_REGISTRY_ADD(MODULE_NAME, ArenaModule, BrowserInfo_GetContextWin32Window, this, ApCallbackPosNormal);
#endif // defined(WIN32)

AP_UNITTEST_HOOK(ArenaModule, this);

return ok;
}

void ArenaModule::Exit()
{
AP_UNITTEST_UNHOOK(ArenaModule, this);

AP_MSG_REGISTRY_FINISH;
}

Change log

r328 by wolf.heiner on Jul 8, 2011   Diff
Forgot to commit after evening/night work
LOG_CONTEXT
ApException with context oaram
_sz
ApHandlePrintf
tweaks
language file ja instead of zn
more Local.h
UnitTest not start Runlevel normal 2 times
Dialog::CallScriptFunction with sFrame
instead of ApContentEval
Go to: 
Project members, sign in to write a code review

Older revisions

r325 by wolf.heiner on Jul 5, 2011   Diff
WebView: Call into iframe
WebView: Serialize Loads (not
complete)
r308 by wolf.heiner on Jun 28, 2011   Diff
TrayIcon: test
Srpc::Key constants
r281 by wolf.heiner on Jun 22, 2011   Diff
Reliably delete view if view window
closes
All revisions of this file

File info

Size: 20965 bytes, 609 lines
Powered by Google Project Hosting