equal
deleted
inserted
replaced
30 |
30 |
31 #include "BavpLogger.h" |
31 #include "BavpLogger.h" |
32 #include "BavpView.h" |
32 #include "BavpView.h" |
33 #include "BrCtlDefs.h" |
33 #include "BrCtlDefs.h" |
34 #include "BavpController.h" |
34 #include "BavpController.h" |
|
35 #include "BavpPlugin.h" |
35 |
36 |
36 // ============================ MEMBER FUNCTIONS =============================== |
37 // ============================ MEMBER FUNCTIONS =============================== |
37 |
38 |
38 // ----------------------------------------------------------------------------- |
39 // ----------------------------------------------------------------------------- |
39 // CBavpView::CBavpView |
40 // CBavpView::CBavpView |
223 Log( EFalse, _L("CBavpView::SizeChanged") ); |
224 Log( EFalse, _L("CBavpView::SizeChanged") ); |
224 |
225 |
225 if ( iBavpController ) |
226 if ( iBavpController ) |
226 { |
227 { |
227 iRect = Rect(); |
228 iRect = Rect(); |
228 iBavpController->RefreshRectCoordinates(); |
229 iBavpController->RefreshRectCoordinatesL(); |
229 } |
230 } |
230 } |
231 } |
231 |
232 |
232 // ----------------------------------------------------------------------------- |
233 // ----------------------------------------------------------------------------- |
233 // CBavpView::AddPluginOptionMenuItemsL |
234 // CBavpView::AddPluginOptionMenuItemsL |
740 ); |
741 ); |
741 } |
742 } |
742 |
743 |
743 } |
744 } |
744 |
745 |
|
746 |
|
747 void CBavpView::HandlePointerEventL(const TPointerEvent &aPointerEvent) |
|
748 { |
|
749 /* |
|
750 * Plugin is sending all pointer events to the browser. |
|
751 * Browser will process them to gesture and return back using |
|
752 * event() function. (see PluginWin::HandleGesture(), BavpEvent() and |
|
753 * CBavpPlugin::HandleGesture(). |
|
754 * Browser expects event position to be in absolute co-ordinates, |
|
755 * so we convert position of the pointer event here. |
|
756 */ |
|
757 TPoint point(aPointerEvent.iPosition + PositionRelativeToScreen()); |
|
758 TPointerEvent tmpEvent(aPointerEvent); |
|
759 tmpEvent.iPosition = point; |
|
760 |
|
761 NPNetscapeFuncs* funcs = iBavPlugin->getNPNFuncs(); |
|
762 |
|
763 |
|
764 if(funcs && funcs->setvalue) |
|
765 { |
|
766 (funcs->setvalue)(iBavPlugin->getNPP(), |
|
767 (NPPVariable) NPPVPluginPointerEvent, |
|
768 (void*) &(tmpEvent)); |
|
769 } |
|
770 } |
|
771 |
745 // End of File |
772 // End of File |