Changeset 112401 in webkit


Ignore:
Timestamp:
Mar 28, 2012 8:13:51 AM (12 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Implement PlatformStrategies
https://bugs.webkit.org/show_bug.cgi?id=82454

Reviewed by Xan Lopez.

Source/WebCore:

  • GNUmakefile.list.am: Remove PluginDataGtk.cpp. The same

functionality is now implemented using platform strategies.

  • plugins/gtk/PluginDataGtk.cpp: Removed.

Source/WebKit/gtk:

  • GNUmakefile.am: Add new files to compilation.
  • WebCoreSupport/PlatformStrategiesGtk.cpp: Added.

(PlatformStrategiesGtk::initialize): Initialize platform
strategies.
(PlatformStrategiesGtk::PlatformStrategiesGtk):
(PlatformStrategiesGtk::createCookiesStrategy): Return this.
(PlatformStrategiesGtk::createPluginStrategy): Ditto.
(PlatformStrategiesGtk::createVisitedLinkStrategy): Ditto.
(PlatformStrategiesGtk::createPasteboardStrategy): Return 0, since
PasteboardStrategy is only used by mac code for now.
(PlatformStrategiesGtk::notifyCookiesChanged):
(PlatformStrategiesGtk::refreshPlugins): Refresh the plugin
database.
(PlatformStrategiesGtk::getPluginInfo): Initialize plugins and
populate the given vector with plugins information.
(PlatformStrategiesGtk::isLinkVisited): Return whether the given
hash is a visited link of the page group.
(PlatformStrategiesGtk::addVisitedLink): Add the given hash to the
page group visited links.

  • WebCoreSupport/PlatformStrategiesGtk.h: Added.
  • webkit/webkitglobals.cpp:

(webkitInit): Initialize PlatformStrategiesGtk.

Source/WTF:

  • wtf/Platform.h: Define WTF_USE_PLATFORM_STRATEGIES for GTK+

platform too.

Location:
trunk/Source
Files:
2 added
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r112186 r112401  
     12012-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Implement PlatformStrategies
     4        https://bugs.webkit.org/show_bug.cgi?id=82454
     5
     6        Reviewed by Xan Lopez.
     7
     8        * wtf/Platform.h: Define WTF_USE_PLATFORM_STRATEGIES for GTK+
     9        platform too.
     10
    1112012-03-26  Ryosuke Niwa  <rniwa@webkit.org>
    212
  • trunk/Source/WTF/wtf/Platform.h

    r111893 r112401  
    10981098
    10991099/* FIXME: Eventually we should enable this for all platforms and get rid of the define. */
    1100 #if PLATFORM(IOS) || PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(QT)
     1100#if PLATFORM(IOS) || PLATFORM(MAC) || PLATFORM(WIN) || PLATFORM(QT) || PLATFORM(GTK)
    11011101#define WTF_USE_PLATFORM_STRATEGIES 1
    11021102#endif
  • trunk/Source/WebCore/ChangeLog

    r112400 r112401  
     12012-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Implement PlatformStrategies
     4        https://bugs.webkit.org/show_bug.cgi?id=82454
     5
     6        Reviewed by Xan Lopez.
     7
     8        * GNUmakefile.list.am: Remove PluginDataGtk.cpp. The same
     9        functionality is now implemented using platform strategies.
     10        * plugins/gtk/PluginDataGtk.cpp: Removed.
     11
    1122012-03-28  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebCore/GNUmakefile.list.am

    r112396 r112401  
    30363036        Source/WebCore/platform/ContextMenuItem.h \
    30373037        Source/WebCore/platform/Cookie.h \
     3038        Source/WebCore/platform/CookiesStrategy.h \
    30383039        Source/WebCore/platform/CookieJar.h \
    30393040        Source/WebCore/platform/CrossThreadCopier.cpp \
     
    34633464        Source/WebCore/platform/NotImplemented.h \
    34643465        Source/WebCore/platform/Pasteboard.h \
     3466        Source/WebCore/platform/PasteboardStrategy.h \
    34653467        Source/WebCore/platform/PlatformEvent.cpp \
    34663468        Source/WebCore/platform/PlatformEvent.h \
     
    34723474        Source/WebCore/platform/PlatformMouseEvent.h \
    34733475        Source/WebCore/platform/PlatformScreen.h \
     3476        Source/WebCore/platform/PlatformStrategies.cpp \
     3477        Source/WebCore/platform/PlatformStrategies.h \
    34743478        Source/WebCore/platform/PlatformWheelEvent.h \
    34753479        Source/WebCore/platform/PODArena.h \
     
    36013605        Source/WebCore/platform/UUID.cpp \
    36023606        Source/WebCore/platform/UUID.h \
     3607        Source/WebCore/platform/VisitedLinkStrategy.h \
    36033608        Source/WebCore/platform/Widget.cpp \
    36043609        Source/WebCore/platform/Widget.h \
     
    36283633        Source/WebCore/plugins/PluginPackage.h \
    36293634        Source/WebCore/plugins/PluginQuirkSet.h \
     3635        Source/WebCore/plugins/PluginStrategy.h \
    36303636        Source/WebCore/plugins/PluginStream.cpp \
    36313637        Source/WebCore/plugins/PluginStream.h \
     
    36333639        Source/WebCore/plugins/PluginView.cpp \
    36343640        Source/WebCore/plugins/PluginView.h \
    3635         Source/WebCore/plugins/gtk/PluginDataGtk.cpp \
    36363641        Source/WebCore/rendering/AutoTableLayout.cpp \
    36373642        Source/WebCore/rendering/AutoTableLayout.h \
  • trunk/Source/WebKit/gtk/ChangeLog

    r112141 r112401  
     12012-03-28  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Implement PlatformStrategies
     4        https://bugs.webkit.org/show_bug.cgi?id=82454
     5
     6        Reviewed by Xan Lopez.
     7
     8        * GNUmakefile.am: Add new files to compilation.
     9        * WebCoreSupport/PlatformStrategiesGtk.cpp: Added.
     10        (PlatformStrategiesGtk::initialize): Initialize platform
     11        strategies.
     12        (PlatformStrategiesGtk::PlatformStrategiesGtk):
     13        (PlatformStrategiesGtk::createCookiesStrategy): Return this.
     14        (PlatformStrategiesGtk::createPluginStrategy): Ditto.
     15        (PlatformStrategiesGtk::createVisitedLinkStrategy): Ditto.
     16        (PlatformStrategiesGtk::createPasteboardStrategy): Return 0, since
     17        PasteboardStrategy is only used by mac code for now.
     18        (PlatformStrategiesGtk::notifyCookiesChanged):
     19        (PlatformStrategiesGtk::refreshPlugins): Refresh the plugin
     20        database.
     21        (PlatformStrategiesGtk::getPluginInfo): Initialize plugins and
     22        populate the given vector with plugins information.
     23        (PlatformStrategiesGtk::isLinkVisited): Return whether the given
     24        hash is a visited link of the page group.
     25        (PlatformStrategiesGtk::addVisitedLink): Add the given hash to the
     26        page group visited links.
     27        * WebCoreSupport/PlatformStrategiesGtk.h: Added.
     28        * webkit/webkitglobals.cpp:
     29        (webkitInit): Initialize PlatformStrategiesGtk.
     30
    1312012-03-26  Joone Hur  <joone.hur@collabora.co.uk>
    232
  • trunk/Source/WebKit/gtk/GNUmakefile.am

    r111847 r112401  
    212212        Source/WebKit/gtk/WebCoreSupport/InspectorClientGtk.h \
    213213        Source/WebKit/gtk/WebCoreSupport/PasteboardHelperGtk.h \
     214        Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.h \
     215        Source/WebKit/gtk/WebCoreSupport/PlatformStrategiesGtk.cpp \
    214216        Source/WebKit/gtk/WebCoreSupport/UserMediaClientGtk.cpp \
    215217        Source/WebKit/gtk/WebCoreSupport/UserMediaClientGtk.h \
  • trunk/Source/WebKit/gtk/webkit/webkitglobals.cpp

    r111847 r112401  
    3333#include "PageCache.h"
    3434#include "PageGroup.h"
     35#include "PlatformStrategiesGtk.h"
    3536#include "TextEncodingRegistry.h"
    3637#include "Pasteboard.h"
     
    501502
    502503    WebCore::initializeLoggingChannelsIfNecessary();
     504    PlatformStrategiesGtk::initialize();
    503505
    504506    // We make sure the text codecs have been initialized, because
Note: See TracChangeset for help on using the changeset viewer.