Ticket #24622: patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff

File patch-quartz-WebCore-plugins-gtk-PluginViewGtk.cpp.diff, 1.3 KB (added by elelay (Eric Le Lay), 15 years ago)

disable some functions

  • WebCore/plugins/gtk/PluginViewGtk.cpp

    old new  
    5959#include "runtime_root.h"
    6060#include <runtime/JSLock.h>
    6161#include <runtime/JSValue.h>
     62#include "NotImplemented.h"
    6263
    6364#include <gdkconfig.h>
    6465#include <gtk/gtk.h>
    6566
     67#undef XP_UNIX
     68
    6669#if defined(XP_UNIX)
    6770#include "gtk2xtbin.h"
    6871#define Bool int // this got undefined somewhere
     
    440443        event->setDefaultHandled();
    441444}
    442445
    443 #if defined(XP_UNIX)
    444446void PluginView::handleFocusInEvent()
    445447{
     448#if defined(XP_UNIX)
    446449    XEvent npEvent;
    447450    initXEvent(&npEvent);
    448451
     
    452455    event.detail = NotifyDetailNone;
    453456
    454457    dispatchNPEvent(npEvent);
     458#endif
    455459}
    456460
    457461void PluginView::handleFocusOutEvent()
    458462{
     463#if defined(XP_UNIX)
    459464    XEvent npEvent;
    460465    initXEvent(&npEvent);
    461466
     
    465470    event.detail = NotifyDetailNone;
    466471
    467472    dispatchNPEvent(npEvent);
    468 }
    469473#endif
     474}
    470475
    471476void PluginView::setParent(ScrollView* parent)
    472477{
     
    794799    }
    795800
    796801    if (m_isWindowed) {
    797 #if defined(XP_UNIX)
    798802        GtkWidget* pageClient = m_parentFrame->view()->hostWindow()->platformPageClient();
     803#if defined(XP_UNIX)
    799804
    800805        if (m_needsXEmbed) {
    801806            // If our parent is not anchored the startup process will