Changeset 53673 in webkit


Ignore:
Timestamp:
Jan 21, 2010 9:06:41 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-01-21 Andrei Popescu <andreip@google.com>

Reviewed by David Levin.

[Android] bindings/v8/ScriptController.cpp needs to include
PlatformBridge.h instead of ChromiumBridge.h so that it can
be used on both Chromium and Android.
https://bugs.webkit.org/show_bug.cgi?id=33673

Add "static NPObject* pluginScriptableObject(Widget*);" method
to PlatformBridge.h
Include PlatformBridge.h from ScriptController.cpp.

No new tests, just platform code.

  • bindings/v8/ScriptController.cpp: (WebCore::ScriptController::createScriptInstanceForWidget):
  • platform/android/PlatformBridge.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r53672 r53673  
     12010-01-21  Andrei Popescu  <andreip@google.com>
     2
     3        Reviewed by David Levin.
     4
     5        [Android] bindings/v8/ScriptController.cpp needs to include
     6        PlatformBridge.h instead of ChromiumBridge.h so that it can
     7        be used on both Chromium and Android.
     8        https://bugs.webkit.org/show_bug.cgi?id=33673
     9
     10        Add "static NPObject* pluginScriptableObject(Widget*);" method
     11        to PlatformBridge.h
     12        Include PlatformBridge.h from ScriptController.cpp.
     13
     14        No new tests, just platform code.
     15
     16        * bindings/v8/ScriptController.cpp:
     17        (WebCore::ScriptController::createScriptInstanceForWidget):
     18        * platform/android/PlatformBridge.h:
     19
    1202010-01-21  Brady Eidson  <beidson@apple.com>
    221
  • trunk/WebCore/bindings/v8/ScriptController.cpp

    r53290 r53673  
    3333#include "ScriptController.h"
    3434
    35 #include "ChromiumBridge.h"
     35#include "PlatformBridge.h"
    3636#include "CString.h"
    3737#include "Document.h"
     
    303303        return 0;
    304304
    305     NPObject* npObject = ChromiumBridge::pluginScriptableObject(widget);
     305    NPObject* npObject = PlatformBridge::pluginScriptableObject(widget);
     306
    306307    if (!npObject)
    307308        return 0;
  • trunk/WebCore/platform/android/PlatformBridge.h

    r53634 r53673  
    7878
    7979
     80class NPObject;
     81
    8082namespace WebCore {
     83
     84class Widget;
    8185
    8286// An interface to the embedding layer, which has the ability to answer
     
    99103    static String cookies(const KURL&);
    100104    static bool cookiesEnabled();
     105    // Plugin
     106    static NPObject* pluginScriptableObject(Widget*);
    101107};
    102108
Note: See TracChangeset for help on using the changeset viewer.