equal
deleted
inserted
replaced
376 apId = pluginWin->pluginSkin()->handleNetworkAccess(); |
376 apId = pluginWin->pluginSkin()->handleNetworkAccess(); |
377 } |
377 } |
378 *((TInt*) aRetValue) = apId; |
378 *((TInt*) aRetValue) = apId; |
379 break; |
379 break; |
380 |
380 |
381 |
381 case NPNVGenericParameter: { |
|
382 PluginWin* pluginWin = (PluginWin*)aInstance->ndata; |
|
383 if (pluginWin) { |
|
384 void **v = (void **)aRetValue; |
|
385 *v = pluginWin->pluginSkin()->genericElementArray(); |
|
386 } |
|
387 else { |
|
388 err = NPERR_GENERIC_ERROR; |
|
389 } |
|
390 } |
|
391 break; // for code consistency |
382 default: |
392 default: |
383 { |
393 { |
384 *((TBool*) aRetValue) = EFalse; |
394 *((TBool*) aRetValue) = EFalse; |
385 err = NPERR_INVALID_PARAM; |
395 err = NPERR_INVALID_PARAM; |
386 } |
396 } |
458 } |
468 } |
459 case NPPVPluginDeactivate: |
469 case NPPVPluginDeactivate: |
460 { |
470 { |
461 PluginWin* pluginWin = (PluginWin*)aInstance->ndata; |
471 PluginWin* pluginWin = (PluginWin*)aInstance->ndata; |
462 if (pluginWin) { |
472 if (pluginWin) { |
463 pluginWin->pluginDeactivate(); |
473 TPoint* cursorPos = static_cast<TPoint*>(aSetValue); |
|
474 pluginWin->pluginDeactivate(*cursorPos); |
464 } |
475 } |
465 } |
476 } |
466 break; |
477 break; |
467 case NPPVpluginFullScreenBool: |
478 case NPPVpluginFullScreenBool: |
468 { |
479 { |