Changeset 48505 in webkit
- Timestamp:
- Sep 18, 2009 6:53:10 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r48250 r48505 1 2009-09-14 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha and Jan Alonzo. 4 5 [GTK] context menu overriding API is very limited 6 https://bugs.webkit.org/show_bug.cgi?id=27546 7 8 Add WebKitHitTestResult to the build. 9 10 * GNUmakefile.am: 11 1 12 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 13 -
trunk/GNUmakefile.am
r48118 r48505 319 319 $(srcdir)/WebKit/gtk/webkit/webkitdownload.h \ 320 320 $(srcdir)/WebKit/gtk/webkit/webkiterror.h \ 321 $(srcdir)/WebKit/gtk/webkit/webkithittestresult.h \ 321 322 $(srcdir)/WebKit/gtk/webkit/webkitnetworkrequest.h \ 322 323 $(srcdir)/WebKit/gtk/webkit/webkitnetworkresponse.h \ … … 363 364 WebKit/gtk/webkit/webkitdownload.cpp \ 364 365 WebKit/gtk/webkit/webkiterror.cpp \ 366 WebKit/gtk/webkit/webkithittestresult.cpp \ 365 367 WebKit/gtk/webkit/webkitnetworkrequest.cpp \ 366 368 WebKit/gtk/webkit/webkitnetworkresponse.cpp \ -
trunk/WebKit/gtk/ChangeLog
r48382 r48505 1 2009-09-18 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha and Jan Alonzo. 4 5 [GTK] context menu overriding API is very limited 6 https://bugs.webkit.org/show_bug.cgi?id=27546 7 8 Add WebKitHitTestResult, a wrapper over HitTestResult. It contains 9 context information about a point in the web page. 10 11 * webkit/webkit.h: 12 * webkit/webkitdefines.h: 13 * webkit/webkithittestresult.cpp: Added. 14 (webkit_hit_test_result_finalize): 15 (webkit_hit_test_result_get_property): 16 (webkit_hit_test_result_set_property): 17 (webkit_hit_test_result_class_init): 18 (webkit_hit_test_result_init): 19 * webkit/webkithittestresult.h: Added. 20 * webkit/webkitprivate.cpp: 21 (WebKit::kit): 22 * webkit/webkitprivate.h: 23 1 24 2009-09-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 25 -
trunk/WebKit/gtk/webkit/webkit.h
r48118 r48505 25 25 #include <webkit/webkitdefines.h> 26 26 #include <webkit/webkitdownload.h> 27 #include <webkit/webkithittestresult.h> 27 28 #include <webkit/webkitnetworkrequest.h> 28 29 #include <webkit/webkitnetworkresponse.h> -
trunk/WebKit/gtk/webkit/webkitdefines.h
r48118 r48505 87 87 typedef struct _WebKitSecurityOriginClass WebKitSecurityOriginClass; 88 88 89 typedef struct _WebKitHitTestResult WebKitHitTestResult; 90 typedef struct _WebKitHitTestResultClass WebKitHitTestResultClass; 91 89 92 G_END_DECLS 90 93 -
trunk/WebKit/gtk/webkit/webkitprivate.cpp
r48118 r48505 28 28 #include "FrameLoader.h" 29 29 #include "FrameLoaderClientGtk.h" 30 #include "HitTestResult.h" 30 31 #include <libintl.h> 31 32 #include "Logging.h" … … 117 118 } 118 119 120 WebKitHitTestResult* kit(const WebCore::HitTestResult& result) 121 { 122 guint context = WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT; 123 GOwnPtr<char> linkURI(0); 124 GOwnPtr<char> imageURI(0); 125 GOwnPtr<char> mediaURI(0); 126 127 if (!result.absoluteLinkURL().isEmpty()) { 128 context |= WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK; 129 linkURI.set(g_strdup(result.absoluteLinkURL().string().utf8().data())); 130 } 131 132 if (!result.absoluteImageURL().isEmpty()) { 133 context |= WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE; 134 imageURI.set(g_strdup(result.absoluteImageURL().string().utf8().data())); 135 } 136 137 if (!result.absoluteMediaURL().isEmpty()) { 138 context |= WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA; 139 mediaURI.set(g_strdup(result.absoluteMediaURL().string().utf8().data())); 140 } 141 142 if (result.isSelected()) 143 context |= WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION; 144 145 if (result.isContentEditable()) 146 context |= WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE; 147 148 return WEBKIT_HIT_TEST_RESULT(g_object_new(WEBKIT_TYPE_HIT_TEST_RESULT, 149 "link-uri", linkURI.get(), 150 "image-uri", imageURI.get(), 151 "media-uri", mediaURI.get(), 152 "context", context, 153 NULL)); 154 } 155 119 156 } /** end namespace WebKit */ 120 157 -
trunk/WebKit/gtk/webkit/webkitprivate.h
r48382 r48505 31 31 #include <webkit/webkitdefines.h> 32 32 #include <webkit/webkitdownload.h> 33 #include <webkit/webkithittestresult.h> 33 34 #include <webkit/webkitnetworkrequest.h> 34 35 #include <webkit/webkitwebview.h> … … 95 96 WebKitSecurityOrigin* kit(WebCore::SecurityOrigin*); 96 97 WebCore::SecurityOrigin* core(WebKitSecurityOrigin*); 98 99 WebKitHitTestResult* kit(const WebCore::HitTestResult&); 97 100 } 98 101
Note: See TracChangeset
for help on using the changeset viewer.