Title: [127873] trunk/Tools
Revision
127873
Author
[email protected]
Date
2012-09-07 09:03:25 -0700 (Fri, 07 Sep 2012)

Log Message

[WK2] [EFL] Set theme for WebKit2 API test runner
https://bugs.webkit.org/show_bug.cgi?id=96100

Patch by Sudarsana Nagineni <[email protected]> on 2012-09-07
Reviewed by Kenneth Rohde Christiansen.

Set the theme generated by the build for the WebKit2 API test runner.

* TestWebKitAPI/PlatformEfl.cmake:
* TestWebKitAPI/efl/PlatformWebView.cpp:
(TestWebKitAPI::PlatformWebView::PlatformWebView):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (127872 => 127873)


--- trunk/Tools/ChangeLog	2012-09-07 16:01:56 UTC (rev 127872)
+++ trunk/Tools/ChangeLog	2012-09-07 16:03:25 UTC (rev 127873)
@@ -1,3 +1,16 @@
+2012-09-07  Sudarsana Nagineni  <[email protected]>
+
+        [WK2] [EFL] Set theme for WebKit2 API test runner
+        https://bugs.webkit.org/show_bug.cgi?id=96100
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        Set the theme generated by the build for the WebKit2 API test runner.
+
+        * TestWebKitAPI/PlatformEfl.cmake:
+        * TestWebKitAPI/efl/PlatformWebView.cpp:
+        (TestWebKitAPI::PlatformWebView::PlatformWebView):
+
 2012-09-07  Csaba Osztrogonác  <[email protected]>
 
         Unreviewed. Add Gábor Ballabás as contributor.

Modified: trunk/Tools/TestWebKitAPI/PlatformEfl.cmake (127872 => 127873)


--- trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-09-07 16:01:56 UTC (rev 127872)
+++ trunk/Tools/TestWebKitAPI/PlatformEfl.cmake	2012-09-07 16:03:25 UTC (rev 127873)
@@ -11,6 +11,7 @@
 INCLUDE_DIRECTORIES(${LIBSOUP_INCLUDE_DIRS}
     ${WEBKIT2_DIR}/UIProcess/API/C/soup
     ${WEBKIT2_DIR}/UIProcess/API/C/efl
+    ${WEBKIT2_DIR}/UIProcess/API/efl
     ${ECORE_INCLUDE_DIRS}
     ${EINA_INCLUDE_DIRS}
     ${EVAS_INCLUDE_DIRS}
@@ -77,6 +78,8 @@
     WKPageGetScaleFactorNotZero
 )
 
+ADD_DEFINITIONS(-DTHEME_DIR="${THEME_BINARY_DIR}")
+
 # Tests disabled because of missing features on the test harness:
 #
 #   AboutBlankLoad

Modified: trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp (127872 => 127873)


--- trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-09-07 16:01:56 UTC (rev 127872)
+++ trunk/Tools/TestWebKitAPI/efl/PlatformWebView.cpp	2012-09-07 16:03:25 UTC (rev 127873)
@@ -27,6 +27,7 @@
 #include "config.h"
 #include "PlatformWebView.h"
 
+#include "EWebKit2.h"
 #include "WebKit2/WKAPICast.h"
 #include <Ecore_Evas.h>
 
@@ -59,6 +60,7 @@
     m_window = initEcoreEvas();
     Evas* evas = ecore_evas_get(m_window);
     m_view = toImpl(WKViewCreate(evas, contextRef, pageGroupRef));
+    ewk_view_theme_set(m_view, THEME_DIR"/default.edj");
 }
 
 PlatformWebView::~PlatformWebView()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to