Ticket #28993: patch-PluginView-no-carbon.diff

File patch-PluginView-no-carbon.diff, 1020 bytes (added by michaelld (Michael Dickens), 14 years ago)

Patch for qt4-mac to fix PluginView for no Carbon (at least PPC64)

  • src/3rdparty/webkit/WebCore/plugins/PluginView.h

    old new  
    360360
    361361        Point m_lastMousePos;
    362362        void setNPWindowIfNeeded();
     363#ifndef NP_NO_CARBON
    363364        void nullEventTimerFired(Timer<PluginView>*);
     365#endif
    364366        Point globalMousePosForPlugin() const;
    365367        Point mousePosForPlugin(MouseEvent* event = 0) const;
    366368#endif
  • src/3rdparty/webkit/WebCore/plugins/mac/PluginViewMac.mm

    old new  
    233233        setNPWindowIfNeeded();
    234234
    235235    // TODO: Implement null timer throttling depending on plugin activation
     236#ifndef NP_NO_CARBON
    236237    m_nullEventTimer.set(new Timer<PluginView>(this, &PluginView::nullEventTimerFired));
     238#endif
    237239    m_nullEventTimer->startRepeating(0.02);
    238240
    239241    m_lastMousePos.h = m_lastMousePos.v = 0;