Changeset 149902 in webkit


Ignore:
Timestamp:
May 10, 2013 1:34:16 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[WK2][CoordinatedGraphics] WKViewSetThemePath is EFL specific
https://bugs.webkit.org/show_bug.cgi?id=115928

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2013-05-10
Reviewed by Kenneth Rohde Christiansen.

Source/WebKit2:

WKViewSetThemePath was moved to WKViewEfl.h since it is EFL specific.

  • UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
  • UIProcess/API/C/CoordinatedGraphics/WKView.h:
  • UIProcess/API/C/efl/WKViewEfl.cpp:

(WKViewSetThemePath):

  • UIProcess/API/C/efl/WKViewEfl.h:
  • UIProcess/CoordinatedGraphics/WebView.cpp:
  • UIProcess/CoordinatedGraphics/WebView.h:

(WebView):

  • UIProcess/efl/ViewClientEfl.cpp:
  • UIProcess/efl/WebInspectorProxyEfl.cpp:
  • UIProcess/efl/WebViewEfl.cpp:

(WebKit::WebViewEfl::setThemePath):

  • UIProcess/efl/WebViewEfl.h:

(WebViewEfl):

Tools:

WKViewSetThemePath was moved to WKViewEfl.h.

  • TestWebKitAPI/efl/PlatformWebView.cpp:
Location:
trunk
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r149885 r149902  
     12013-05-10  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [WK2][CoordinatedGraphics] WKViewSetThemePath is EFL specific
     4        https://bugs.webkit.org/show_bug.cgi?id=115928
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        WKViewSetThemePath was moved to WKViewEfl.h since it is EFL specific.
     9
     10        * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
     11        * UIProcess/API/C/CoordinatedGraphics/WKView.h:
     12        * UIProcess/API/C/efl/WKViewEfl.cpp:
     13        (WKViewSetThemePath):
     14        * UIProcess/API/C/efl/WKViewEfl.h:
     15        * UIProcess/CoordinatedGraphics/WebView.cpp:
     16        * UIProcess/CoordinatedGraphics/WebView.h:
     17        (WebView):
     18        * UIProcess/efl/ViewClientEfl.cpp:
     19        * UIProcess/efl/WebInspectorProxyEfl.cpp:
     20        * UIProcess/efl/WebViewEfl.cpp:
     21        (WebKit::WebViewEfl::setThemePath):
     22        * UIProcess/efl/WebViewEfl.h:
     23        (WebViewEfl):
     24
    1252013-05-10  Jer Noble  <jer.noble@apple.com>
    226
  • trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.cpp

    r149289 r149902  
    137137}
    138138
    139 void WKViewSetThemePath(WKViewRef viewRef, WKStringRef theme)
    140 {
    141     toImpl(viewRef)->setThemePath(toImpl(theme)->string());
    142 }
    143 
    144139void WKViewSuspendActiveDOMObjectsAndAnimations(WKViewRef viewRef)
    145140{
  • trunk/Source/WebKit2/UIProcess/API/C/CoordinatedGraphics/WKView.h

    r149289 r149902  
    8585WK_EXPORT WKPageRef WKViewGetPage(WKViewRef);
    8686
    87 WK_EXPORT void WKViewSetThemePath(WKViewRef, WKStringRef);
    88 
    8987WK_EXPORT void WKViewSetDrawsBackground(WKViewRef, bool);
    9088WK_EXPORT bool WKViewGetDrawsBackground(WKViewRef);
  • trunk/Source/WebKit2/UIProcess/API/C/efl/WKViewEfl.cpp

    r148963 r149902  
    4444    return WKImageCreateFromCairoSurface(ewkView->takeSnapshot().get(), 0 /* options */);
    4545}
     46
     47void WKViewSetThemePath(WKViewRef viewRef, WKStringRef theme)
     48{
     49    static_cast<WebViewEfl*>(toImpl(viewRef))->setThemePath(toImpl(theme)->string());
     50}
  • trunk/Source/WebKit2/UIProcess/API/C/efl/WKViewEfl.h

    r148963 r149902  
    3939WK_EXPORT WKImageRef WKViewCreateSnapshot(WKViewRef);
    4040
     41WK_EXPORT void WKViewSetThemePath(WKViewRef, WKStringRef);
     42
    4143#ifdef __cplusplus
    4244}
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.cpp

    r149289 r149902  
    123123}
    124124
    125 void WebView::setThemePath(const String& theme)
    126 {
    127     m_page->setThemePath(theme);
    128 }
    129 
    130125void WebView::setDrawsBackground(bool drawsBackground)
    131126{
  • trunk/Source/WebKit2/UIProcess/CoordinatedGraphics/WebView.h

    r149289 r149902  
    8282    bool drawsTransparentBackground() const;
    8383
    84     void setThemePath(const String&);
    85 
    8684    void suspendActiveDOMObjectsAndAnimations();
    8785    void resumeActiveDOMObjectsAndAnimations();
  • trunk/Source/WebKit2/UIProcess/efl/ViewClientEfl.cpp

    r148660 r149902  
    3232#include <WebKit2/WKString.h>
    3333#include <WebKit2/WKView.h>
     34#include <WebKit2/WKViewEfl.h>
    3435
    3536using namespace EwkViewCallbacks;
  • trunk/Source/WebKit2/UIProcess/efl/WebInspectorProxyEfl.cpp

    r147004 r149902  
    4242#include <WebKit2/WKPreferencesPrivate.h>
    4343#include <WebKit2/WKString.h>
     44#include <WebKit2/WKViewEfl.h>
    4445#include <wtf/text/CString.h>
    4546#include <wtf/text/StringBuilder.h>
  • trunk/Source/WebKit2/UIProcess/efl/WebViewEfl.cpp

    r148963 r149902  
    108108}
    109109
     110void WebViewEfl::setThemePath(const String& theme)
     111{
     112    m_page->setThemePath(theme);
     113}
    110114
    111115} // namespace WebKit
  • trunk/Source/WebKit2/UIProcess/efl/WebViewEfl.h

    r148963 r149902  
    3939
    4040    void paintToCairoSurface(cairo_surface_t*);
     41    void setThemePath(const String&);
    4142
    4243private:
  • trunk/Tools/ChangeLog

    r149889 r149902  
     12013-05-10  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        [WK2][CoordinatedGraphics] WKViewSetThemePath is EFL specific
     4        https://bugs.webkit.org/show_bug.cgi?id=115928
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        WKViewSetThemePath was moved to WKViewEfl.h.
     9
     10        * TestWebKitAPI/efl/PlatformWebView.cpp:
     11
    1122013-05-10  Andreas Kling  <akling@apple.com>
    213
  • trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp

    r148025 r149902  
    3232#include <WebKit2/WKAPICast.h>
    3333#include <WebKit2/WKRetainPtr.h>
     34#include <WebKit2/WKViewEfl.h>
    3435#include <Ecore_Evas.h>
    3536
Note: See TracChangeset for help on using the changeset viewer.