Changeset 96133 in webkit
- Timestamp:
- Sep 27, 2011 11:06:06 AM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 added
- 3 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r96126 r96133 1 2011-09-27 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 4 [GTK] Add WebKitWebContext to GTK API 5 https://bugs.webkit.org/show_bug.cgi?id=67931 6 7 Reviewed by Philippe Normand. 8 9 Initial implementation of WebKitWebContext for WebKit2 GTK API. 10 11 * GNUmakefile.am: Add new files to compilation. 12 * UIProcess/API/gtk/WebKitWebContext.cpp: Added. 13 (webkitWebContextFinalize): 14 (webkit_web_context_init): 15 (webkit_web_context_class_init): 16 (createDefaultWebContext): 17 (webkit_web_context_get_default): 18 * UIProcess/API/gtk/WebKitWebContext.h: Added. 19 * UIProcess/API/gtk/tests/testwebcontext.c: 20 (testWebContextDefault): 21 (main): 22 * UIProcess/API/gtk/webkit2.h: Add <webkit2/WebKitWebContext.h>. 23 1 24 2011-09-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 25 -
trunk/Source/WebKit2/GNUmakefile.am
r96121 r96133 70 70 libwebkit2gtkincludedir = $(libwebkitgtkincludedir)/webkit2 71 71 libwebkit2gtkinclude_HEADERS = \ 72 $(WebKit2)/UIProcess/API/gtk/WebKitWebContext.h \ 72 73 $(WebKit2)/UIProcess/API/gtk/WebKitWebView.h \ 73 74 $(WebKit2)/UIProcess/API/gtk/WebKitWebViewBase.h \ … … 453 454 Source/WebKit2/UIProcess/API/gtk/PageClientImpl.h \ 454 455 Source/WebKit2/UIProcess/API/gtk/PageClientImpl.cpp \ 456 Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.h \ 457 Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp \ 455 458 Source/WebKit2/UIProcess/API/gtk/WebKitWebView.h \ 456 459 Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp \ … … 983 986 $(top_builddir)/WebKit2/webkit2gtk-@WEBKITGTK_API_VERSION@.pc 984 987 988 # Unit tests 989 TEST_PROGS += \ 990 Programs/unittests/webkit2/testwebcontext 991 992 noinst_PROGRAMS += $(TEST_PROGS) 993 webkit2_tests_cflags = \ 994 -I$(srcdir)/Source \ 995 -I$(srcdir)/Source/WebKit2 \ 996 -I$(top_builddir)/DerivedSources/WebKit2/include \ 997 -I$(top_builddir)/DerivedSources/WebKit2/include/webkit2gtk \ 998 -I$(srcdir)/Source/WebKit2/UIProcess/API/gtk \ 999 $(global_cflags) \ 1000 $(global_cppflags) \ 1001 $(GLIB_CFLAGS) \ 1002 $(GTK_CFLAGS) \ 1003 $(LIBSOUP_CFLAGS) 1004 1005 webkit2_tests_ldadd = \ 1006 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 1007 libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 1008 $(GLIB_LIBS) \ 1009 $(GTK_LIBS) \ 1010 $(LIBSOUP_LIBS) 1011 1012 webkit2_tests_ldflags = \ 1013 -no-install \ 1014 -no-fast-install 1015 1016 Programs_unittests_webkit2_testwebcontext_SOURCES = Source/WebKit2/UIProcess/API/gtk/tests/testwebcontext.c 1017 Programs_unittests_webkit2_testwebcontext_CFLAGS = $(webkit2_tests_cflags) 1018 Programs_unittests_webkit2_testwebcontext_LDADD = $(webkit2_tests_ldadd) 1019 Programs_unittests_webkit2_testwebcontext_LDFLAGS = $(webkit2_tests_ldflags) 1020 985 1021 # WebKitWebProcess 986 1022 libexec_PROGRAMS += \ -
trunk/Source/WebKit2/UIProcess/API/gtk/tests/testwebcontext.c
r96130 r96133 3 3 * 4 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU L ibraryGeneral Public5 * modify it under the terms of the GNU Lesser General Public 6 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version.7 * version 2,1 of the License, or (at your option) any later version. 8 8 * 9 9 * This library is distributed in the hope that it will be useful, … … 18 18 */ 19 19 20 #ifndef __WEBKIT2_H__ 21 #define __WEBKIT2_H__ 20 #include <glib.h> 21 #include <gtk/gtk.h> 22 #include <webkit2/webkit2.h> 22 23 23 #include <webkit2/WebKitWebViewBase.h> 24 #include <webkit2/WebKitWebView.h> 24 static void testWebContextDefault(void) 25 { 26 /* Check there's a single instance of the default web context. */ 27 g_assert(webkit_web_context_get_default() == webkit_web_context_get_default()); 28 } 25 29 26 #endif /* __WEBKIT2_H__ */ 30 int main(int argc, char **argv) 31 { 32 g_thread_init(NULL); 33 gtk_test_init(&argc, &argv, NULL); 34 35 g_test_bug_base("https://bugs.webkit.org/"); 36 g_test_add_func("/webkit2/webcontext/default_context", 37 testWebContextDefault); 38 39 return g_test_run(); 40 } 41 -
trunk/Source/WebKit2/UIProcess/API/gtk/webkit2.h
r96121 r96133 21 21 #define __WEBKIT2_H__ 22 22 23 #include <webkit2/WebKitWebContext.h> 23 24 #include <webkit2/WebKitWebViewBase.h> 24 25 #include <webkit2/WebKitWebView.h>
Note: See TracChangeset
for help on using the changeset viewer.