equal
deleted
inserted
replaced
150 } |
150 } |
151 |
151 |
152 void PluginWin::windowChangedL() |
152 void PluginWin::windowChangedL() |
153 { |
153 { |
154 if (m_fullscreen) return; |
154 if (m_fullscreen) return; |
155 PlayPausePluginL(); |
|
156 if (m_pluginskin->getNPPluginFucs() && m_pluginskin->getNPPluginFucs()->setwindow ){ |
155 if (m_pluginskin->getNPPluginFucs() && m_pluginskin->getNPPluginFucs()->setwindow ){ |
157 NPWindow window; |
156 NPWindow window; |
158 TRect rect( m_pluginskin->getPluginWinRect() ); |
157 TRect rect( m_pluginskin->getPluginWinRect() ); |
159 TRect clipRect = m_pluginskin->getClipRect(); |
158 TRect clipRect = m_pluginskin->getClipRect(); |
160 TRect myRect = Rect(); |
159 TRect myRect = Rect(); |
698 { |
697 { |
699 TRAP_IGNORE(m_notifier->NotifyL(MPluginNotifier::EPluginInvisible, (void*)0)); |
698 TRAP_IGNORE(m_notifier->NotifyL(MPluginNotifier::EPluginInvisible, (void*)0)); |
700 } |
699 } |
701 } |
700 } |
702 } |
701 } |
703 void PluginWin::PlayPausePluginL () |
702 void PluginWin::PlayPausePluginL (bool pause) |
704 { |
703 { |
705 if(m_notifier) |
704 if(m_notifier) { |
706 { |
705 if (pause) { |
707 CBrCtl* brCtl = control(m_pluginskin->frame()); |
706 m_notifier->NotifyL( MPluginNotifier::EPluginPause, (void*)1 ); |
708 WebView* view = brCtl->webView(); |
707 } |
709 TBool scrolling = view->viewIsScrolling(); |
708 else { |
710 if (scrolling) { |
709 m_notifier->NotifyL( MPluginNotifier::EPluginPause, (void*)0 ); |
711 m_notifier->NotifyL( MPluginNotifier::EPluginPause, (void*)1 ); |
710 } |
712 } |
|
713 else { |
|
714 m_notifier->NotifyL( MPluginNotifier::EPluginPause, (void*)0 ); |
|
715 } |
|
716 } |
711 } |
717 } |
712 } |
718 |
713 |
719 void PluginWin::HandlePointerEventFromPluginL(const TPointerEvent& aEvent) |
714 void PluginWin::HandlePointerEventFromPluginL(const TPointerEvent& aEvent) |
720 { |
715 { |