Changeset 141439 in webkit
- Timestamp:
- Jan 31, 2013 10:43:41 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 14 deleted
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r141430 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Turn off WEB_INTENTS flag in EFL CMake project. 9 10 * Source/cmake/OptionsEfl.cmake: 11 1 12 2013-01-31 Simon Hausmann <simon.hausmann@digia.com> 2 13 -
trunk/LayoutTests/ChangeLog
r141437 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Skip webintents/ test cases for EFL port now that 9 the feature is disabled. 10 11 * platform/efl/TestExpectations: 12 1 13 2013-01-31 Tony Chang <tony@chromium.org> 2 14 -
trunk/LayoutTests/platform/efl/TestExpectations
r141418 r141439 369 369 webkit.org/b/85465 css3/filters [ Skip ] 370 370 webkit.org/b/85465 compositing/filters [ Skip ] 371 372 # Web Intents are no longer supported. 373 Bug(EFL) webintents [ WontFix ] 371 374 372 375 # CSS image-resolution is not yet enabled. -
trunk/Source/WebKit/ChangeLog
r140900 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Remove intents files from EFL CMake project. 9 10 * PlatformEfl.cmake: 11 1 12 2013-01-25 Roger Fong <roger_fong@apple.com> 2 13 -
trunk/Source/WebKit/PlatformEfl.cmake
r140389 r141439 136 136 efl/ewk/ewk_frame.cpp 137 137 efl/ewk/ewk_history.cpp 138 efl/ewk/ewk_intent.cpp139 efl/ewk/ewk_intent_request.cpp140 138 efl/ewk/ewk_js.cpp 141 139 efl/ewk/ewk_main.cpp … … 200 198 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_frame.h 201 199 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_history.h 202 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent.h203 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_intent_request.h204 200 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_js.h 205 201 ${CMAKE_CURRENT_SOURCE_DIR}/efl/ewk/ewk_main.h -
trunk/Source/WebKit/efl/ChangeLog
r141387 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Remove code related to Web Intents from EFL 9 WebKit. 10 11 * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: 12 * WebCoreSupport/DumpRenderTreeSupportEfl.h: 13 * WebCoreSupport/FrameLoaderClientEfl.cpp: 14 * WebCoreSupport/FrameLoaderClientEfl.h: 15 (FrameLoaderClientEfl): 16 * ewk/EWebKit.h: 17 * ewk/ewk_frame.cpp: 18 * ewk/ewk_frame.h: 19 * ewk/ewk_frame_private.h: 20 * ewk/ewk_intent.cpp: Removed. 21 * ewk/ewk_intent.h: Removed. 22 * ewk/ewk_intent_private.h: Removed. 23 * ewk/ewk_intent_request.cpp: Removed. 24 * ewk/ewk_intent_request.h: Removed. 25 1 26 2013-01-31 Sheriff Bot <webkit.review.bot@gmail.com> 2 27 -
trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
r140389 r141439 26 26 #include "ewk_frame_private.h" 27 27 #include "ewk_history_private.h" 28 #include "ewk_intent_private.h"29 28 #include "ewk_private.h" 30 29 #include "ewk_view_private.h" … … 44 43 #include <InspectorController.h> 45 44 #include <IntRect.h> 46 #include <Intent.h>47 45 #include <JSCSSStyleDeclaration.h> 48 46 #include <JSElement.h> … … 660 658 } 661 659 662 void DumpRenderTreeSupportEfl::sendWebIntentResponse(Ewk_Intent_Request* request, JSStringRef response)663 {664 #if ENABLE(WEB_INTENTS)665 String responseString = response->string();666 if (responseString.isEmpty())667 ewk_intent_request_failure_post(request, WebCore::SerializedScriptValue::create(String::fromUTF8("ERROR")));668 else669 ewk_intent_request_result_post(request, WebCore::SerializedScriptValue::create(String(responseString.impl())));670 #endif671 }672 673 WebCore::MessagePortChannelArray* DumpRenderTreeSupportEfl::intentMessagePorts(const Ewk_Intent* intent)674 {675 #if ENABLE(WEB_INTENTS)676 const WebCore::Intent* coreIntent = EWKPrivate::coreIntent(intent);677 return coreIntent ? coreIntent->messagePorts() : 0;678 #else679 UNUSED_PARAM(intent);680 return 0;681 #endif682 }683 684 void DumpRenderTreeSupportEfl::deliverWebIntent(Evas_Object* ewkFrame, JSStringRef action, JSStringRef type, JSStringRef data)685 {686 #if ENABLE(WEB_INTENTS)687 RefPtr<WebCore::SerializedScriptValue> serializedData = WebCore::SerializedScriptValue::create(data->string());688 WebCore::ExceptionCode ec = 0;689 WebCore::MessagePortArray ports;690 RefPtr<WebCore::Intent> coreIntent = WebCore::Intent::create(action->string(), type->string(), serializedData.get(), ports, ec);691 if (ec)692 return;693 Ewk_Intent* ewkIntent = ewk_intent_new(coreIntent.get());694 ewk_frame_intent_deliver(ewkFrame, ewkIntent);695 ewk_intent_free(ewkIntent);696 #endif697 }698 699 660 void DumpRenderTreeSupportEfl::setComposition(Evas_Object* ewkView, const char* text, int start, int length) 700 661 { -
trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h
r140389 r141439 36 36 37 37 typedef struct _Ewk_History_Item Ewk_History_Item; 38 typedef struct _Ewk_Intent Ewk_Intent;39 typedef struct _Ewk_Intent_Request Ewk_Intent_Request;40 38 41 39 typedef Vector<Ewk_History_Item*> HistoryItemChildrenVector; … … 124 122 static void setShouldTrackVisitedLinks(bool); 125 123 126 // Web Intents127 static void sendWebIntentResponse(Ewk_Intent_Request*, JSStringRef response);128 static WebCore::MessagePortChannelArray* intentMessagePorts(const Ewk_Intent*);129 static void deliverWebIntent(Evas_Object* ewkFrame, JSStringRef action, JSStringRef type, JSStringRef data);130 131 124 // TextInputController 132 125 static void setComposition(Evas_Object*, const char*, int, int); -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
r137845 r141439 47 47 #include "HTMLFormElement.h" 48 48 #include "HTTPStatusCodes.h" 49 #include "IntentRequest.h"50 49 #include "MIMETypeRegistry.h" 51 50 #include "NotImplemented.h" … … 59 58 #include "WebKitVersion.h" 60 59 #include "ewk_frame_private.h" 61 #include "ewk_intent_private.h"62 60 #include "ewk_private.h" 63 61 #include "ewk_settings_private.h" … … 1025 1023 } 1026 1024 1027 #if ENABLE(WEB_INTENTS)1028 void FrameLoaderClientEfl::dispatchIntent(PassRefPtr<WebCore::IntentRequest> intentRequest)1029 {1030 Ewk_Intent_Request* ewkRequest = ewk_intent_request_new(intentRequest);1031 ewk_frame_intent_new(m_frame, ewkRequest);1032 ewk_intent_request_unref(ewkRequest);1033 }1034 #endif1035 1036 #if ENABLE(WEB_INTENTS_TAG)1037 void FrameLoaderClientEfl::registerIntentService(const String& action, const String& type, const KURL& href, const String& title, const String& disposition)1038 {1039 CString actionStr = action.utf8();1040 CString typeStr = type.utf8();1041 CString hrefStr = href.string().utf8();1042 CString titleStr = title.utf8();1043 CString dispositionStr = disposition.utf8();1044 1045 Ewk_Intent_Service_Info serviceInfo = { actionStr.data(), typeStr.data(), hrefStr.data(), titleStr.data(), dispositionStr.data() };1046 1047 ewk_frame_intent_service_register(m_frame, &serviceInfo);1048 }1049 #endif1050 1051 1025 PassRefPtr<FrameNetworkingContext> FrameLoaderClientEfl::createNetworkingContext() 1052 1026 { -
trunk/Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.h
r137845 r141439 186 186 virtual void didFinishLoad(); 187 187 virtual void prepareForDataSourceReplacement(); 188 #if ENABLE(WEB_INTENTS)189 virtual void dispatchIntent(PassRefPtr<WebCore::IntentRequest>);190 #endif191 #if ENABLE(WEB_INTENTS_TAG)192 virtual void registerIntentService(const String& action, const String& type, const KURL& href, const String& title, const String& disposition);193 #endif194 188 195 189 virtual WTF::PassRefPtr<DocumentLoader> createDocumentLoader(const ResourceRequest&, const SubstituteData&); -
trunk/Source/WebKit/efl/ewk/EWebKit.h
r139541 r141439 36 36 #include "ewk_frame.h" 37 37 #include "ewk_history.h" 38 #include "ewk_intent.h"39 #include "ewk_intent_request.h"40 38 #include "ewk_js.h" 41 39 #include "ewk_main.h" -
trunk/Source/WebKit/efl/ewk/ewk_frame.cpp
r139816 r141439 25 25 #include "ewk_frame.h" 26 26 27 #include "DOMWindowIntents.h"28 #include "DeliveredIntent.h"29 27 #include "DocumentLoader.h" 30 28 #include "DocumentMarkerController.h" … … 56 54 #include "WindowsKeyboardCodes.h" 57 55 #include "ewk_frame_private.h" 58 #include "ewk_intent_private.h"59 56 #include "ewk_private.h" 60 57 #include "ewk_security_origin_private.h" … … 752 749 753 750 return hitTest; 754 }755 756 void ewk_frame_intent_deliver(const Evas_Object* ewkFrame, Ewk_Intent* ewk_intent)757 {758 #if ENABLE(WEB_INTENTS)759 EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData);760 EINA_SAFETY_ON_NULL_RETURN(smartData->frame);761 762 WebCore::Intent* intent = EWKPrivate::coreIntent(ewk_intent);763 764 OwnPtr<WebCore::MessagePortChannelArray> channels;765 WebCore::MessagePortChannelArray* origChannels = intent->messagePorts();766 if (origChannels && origChannels->size()) {767 channels = adoptPtr(new WebCore::MessagePortChannelArray(origChannels->size()));768 for (size_t i = 0; i < origChannels->size(); ++i)769 (*channels)[i] = origChannels->at(i).release();770 }771 OwnPtr<WebCore::MessagePortArray> ports = WebCore::MessagePort::entanglePorts(*(smartData->frame->document()), channels.release());772 773 OwnPtr<WebCore::DeliveredIntentClient> dummyClient;774 RefPtr<WebCore::DeliveredIntent> deliveredIntent = WebCore::DeliveredIntent::create(smartData->frame, dummyClient.release(), intent->action(), intent->type(), intent->data(), ports.release(), intent->extras());775 776 WebCore::DOMWindowIntents::from(smartData->frame->document()->domWindow())->deliver(deliveredIntent.release());777 #endif778 751 } 779 752 … … 1552 1525 /** 1553 1526 * @internal 1554 * Reports new intent.1555 *1556 * Emits signal: "intent,new" with pointer to a Ewk_Intent_Request.1557 */1558 void ewk_frame_intent_new(Evas_Object* ewkFrame, Ewk_Intent_Request* request)1559 {1560 #if ENABLE(WEB_INTENTS)1561 evas_object_smart_callback_call(ewkFrame, "intent,new", request);1562 #endif1563 }1564 1565 /**1566 * @internal1567 * Reports an intent service registration.1568 *1569 * Emits signal: "intent,service,register" with pointer to a Ewk_Intent_Service_Info.1570 */1571 void ewk_frame_intent_service_register(Evas_Object* ewkFrame, Ewk_Intent_Service_Info* info)1572 {1573 #if ENABLE(WEB_INTENTS_TAG)1574 evas_object_smart_callback_call(ewkFrame, "intent,service,register", info);1575 #endif1576 }1577 1578 /**1579 * @internal1580 1527 * 1581 1528 * Reports contents size changed. -
trunk/Source/WebKit/efl/ewk/ewk_frame.h
r123604 r141439 41 41 * contents were changed 42 42 * - "icon,changed", void: frame favicon changed. 43 * - "intent,new", Ewk_Intent_Request*: reports new intent.44 * - "intent,service,register", Ewk_Intent_Service_Info*: reports new intent service registration.45 43 * - "load,committed", void: reports load committed. 46 44 * - "load,document,finished", void: frame finished loading the document. … … 83 81 #define ewk_frame_h 84 82 85 #include "ewk_intent.h"86 83 #include "ewk_security_origin.h" 87 84 … … 183 180 const char *insecure_url; /**< insecure url of the document */ 184 181 Eina_Bool is_entire_page_blocked; /** < indicates if the entire page was blocked by XSSAuditor */ 185 };186 187 /// Creates a type name for Ewk_Intent_Service_Info.188 typedef struct _Ewk_Intent_Service_Info Ewk_Intent_Service_Info;189 190 struct _Ewk_Intent_Service_Info {191 const char *action; /**< an opaque string indicating the behavior class the service supports. */192 const char *type; /**< a string specifying the type of payload data the service can accept. */193 const char *href; /**< service URI. */194 const char *title; /**< A human-readable title for the service. */195 const char *disposition; /**< A hint about whether the service can be run "inline" or in a new "window". */196 182 }; 197 183 … … 716 702 717 703 /** 718 * Delivers an intent to a target service page in the frame.719 *720 * @param o frame object to deliver the intent to.721 * @param ewkIntent intent object to deliver.722 */723 EAPI void ewk_frame_intent_deliver(const Evas_Object *o, Ewk_Intent *ewk_intent);724 725 /**726 704 * Sets a relative scroll of the given frame. 727 705 * -
trunk/Source/WebKit/efl/ewk/ewk_frame_private.h
r134757 r141439 23 23 24 24 #include "ewk_frame.h" 25 #include "ewk_intent_request.h"26 25 #include <Evas.h> 27 26 #include <wtf/PassRefPtr.h> … … 75 74 void ewk_frame_force_layout(Evas_Object* ewkFrame); 76 75 void ewk_frame_icon_changed(Evas_Object* ewkFrame); 77 void ewk_frame_intent_new(Evas_Object* ewkFrame, Ewk_Intent_Request* request);78 void ewk_frame_intent_service_register(Evas_Object* ewkFrame, Ewk_Intent_Service_Info* info);79 76 80 77 WTF::PassRefPtr<WebCore::Widget> ewk_frame_plugin_create(Evas_Object* ewkFrame, const WebCore::IntSize& pluginSize, WebCore::HTMLPlugInElement* element, const WebCore::KURL& url, const WTF::Vector<WTF::String>& paramNames, const WTF::Vector<WTF::String>& paramValues, const WTF::String& mimeType, bool loadManually); -
trunk/Source/WebKit2/CMakeLists.txt
r141384 r141439 51 51 "${WEBCORE_DIR}" 52 52 "${WEBCORE_DIR}/Modules/battery" 53 "${WEBCORE_DIR}/Modules/intents"54 53 "${WEBCORE_DIR}/Modules/networkinfo" 55 54 "${WEBCORE_DIR}/Modules/notifications" … … 152 151 Shared/ImmutableArray.cpp 153 152 Shared/ImmutableDictionary.cpp 154 Shared/IntentData.cpp155 Shared/IntentServiceInfo.cpp156 153 Shared/MutableArray.cpp 157 154 Shared/MutableDictionary.cpp … … 180 177 Shared/WebHitTestResult.cpp 181 178 Shared/WebImage.cpp 182 Shared/WebIntentServiceInfo.cpp183 179 Shared/WebKeyboardEvent.cpp 184 180 Shared/WebKit2Initialize.cpp … … 282 278 UIProcess/WebIconDatabaseClient.cpp 283 279 UIProcess/WebInspectorProxy.cpp 284 UIProcess/WebIntentData.cpp285 280 UIProcess/WebKeyValueStorageManagerProxy.cpp 286 281 … … 327 322 UIProcess/API/C/WKIconDatabase.cpp 328 323 UIProcess/API/C/WKInspector.cpp 329 UIProcess/API/C/WKIntentData.cpp330 UIProcess/API/C/WKIntentServiceInfo.cpp331 324 UIProcess/API/C/WKKeyValueStorageManager.cpp 332 325 UIProcess/API/C/WKMediaCacheManager.cpp … … 406 399 WebProcess/InjectedBundle/InjectedBundleDOMWindowExtension.cpp 407 400 WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp 408 WebProcess/InjectedBundle/InjectedBundleIntent.cpp409 WebProcess/InjectedBundle/InjectedBundleIntentRequest.cpp410 401 WebProcess/InjectedBundle/InjectedBundleNavigationAction.cpp 411 402 WebProcess/InjectedBundle/InjectedBundlePageDiagnosticLoggingClient.cpp … … 427 418 WebProcess/InjectedBundle/API/c/WKBundleHitTestResult.cpp 428 419 WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp 429 WebProcess/InjectedBundle/API/c/WKBundleIntent.cpp430 WebProcess/InjectedBundle/API/c/WKBundleIntentRequest.cpp431 420 WebProcess/InjectedBundle/API/c/WKBundleNavigationAction.cpp 432 421 WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp -
trunk/Source/WebKit2/ChangeLog
r141433 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Remove code related to Web Intents from EFL 9 WebKit2. 10 11 * CMakeLists.txt: 12 * PlatformEfl.cmake: 13 * UIProcess/API/efl/EWebKit2.h: 14 * UIProcess/API/efl/EwkViewCallbacks.h: 15 * UIProcess/API/efl/ewk_intent.cpp: Removed. 16 * UIProcess/API/efl/ewk_intent.h: Removed. 17 * UIProcess/API/efl/ewk_intent_private.h: Removed. 18 * UIProcess/API/efl/ewk_intent_service.cpp: Removed. 19 * UIProcess/API/efl/ewk_intent_service.h: Removed. 20 * UIProcess/API/efl/ewk_intent_service_private.h: Removed. 21 * UIProcess/API/efl/ewk_view.cpp: 22 * UIProcess/API/efl/ewk_view.h: 23 * UIProcess/API/efl/tests/resources/intent-request.html: Removed. 24 * UIProcess/API/efl/tests/resources/intent-service.html: Removed. 25 * UIProcess/API/efl/tests/test_ewk2_intents.cpp: Removed. 26 * UIProcess/efl/PageLoadClientEfl.cpp: 27 (WebKit::PageLoadClientEfl::PageLoadClientEfl): 28 * UIProcess/efl/PageLoadClientEfl.h: 29 (PageLoadClientEfl): 30 1 31 2013-01-31 Alexey Proskuryakov <ap@apple.com> 2 32 -
trunk/Source/WebKit2/PlatformEfl.cmake
r141032 r141439 64 64 UIProcess/API/efl/ewk_file_chooser_request.cpp 65 65 UIProcess/API/efl/ewk_form_submission_request.cpp 66 UIProcess/API/efl/ewk_intent.cpp67 UIProcess/API/efl/ewk_intent_service.cpp68 66 UIProcess/API/efl/ewk_main.cpp 69 67 UIProcess/API/efl/ewk_navigation_data.cpp … … 281 279 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_file_chooser_request.h" 282 280 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_form_submission_request.h" 283 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent.h"284 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_intent_service.h"285 281 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_main.h" 286 282 "${CMAKE_CURRENT_SOURCE_DIR}/UIProcess/API/efl/ewk_navigation_data.h" … … 382 378 test_ewk2_favicon_database 383 379 test_ewk2_file_chooser_request 384 test_ewk2_intents385 380 test_ewk2_object 386 381 test_ewk2_popup_menu -
trunk/Source/WebKit2/UIProcess/API/efl/EWebKit2.h
r140309 r141439 43 43 #include "ewk_file_chooser_request.h" 44 44 #include "ewk_form_submission_request.h" 45 #include "ewk_intent.h"46 #include "ewk_intent_service.h"47 45 #include "ewk_main.h" 48 46 #include "ewk_navigation_data.h" -
trunk/Source/WebKit2/UIProcess/API/efl/EwkViewCallbacks.h
r140309 r141439 39 39 typedef struct EwkObject Ewk_Form_Submission_Request; 40 40 typedef struct EwkObject Ewk_Navigation_Policy_Decision; 41 #if ENABLE(WEB_INTENTS)42 typedef struct EwkObject Ewk_Intent;43 #endif44 #if ENABLE(WEB_INTENTS_TAG)45 typedef struct EwkObject Ewk_Intent_Service;46 #endif47 41 typedef struct EwkError Ewk_Error; 48 42 … … 82 76 Vibrate, 83 77 WebProcessCrashed, 84 WindowResizable, 85 #if ENABLE(WEB_INTENTS) 86 IntentRequest, 87 #endif 88 #if ENABLE(WEB_INTENTS_TAG) 89 IntentServiceRegistration, 90 #endif 78 WindowResizable 91 79 }; 92 80 … … 199 187 DECLARE_EWK_VIEW_CALLBACK(WebProcessCrashed, "webprocess,crashed", bool*); 200 188 DECLARE_EWK_VIEW_CALLBACK(WindowResizable, "window,resizable", bool*); 201 #if ENABLE(WEB_INTENTS)202 DECLARE_EWK_VIEW_CALLBACK(IntentRequest, "intent,request,new", Ewk_Intent*);203 #endif204 #if ENABLE(WEB_INTENTS_TAG)205 DECLARE_EWK_VIEW_CALLBACK(IntentServiceRegistration, "intent,service,register", Ewk_Intent_Service*);206 #endif207 189 208 190 } -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
r140686 r141439 49 49 #include "ewk_context_private.h" 50 50 #include "ewk_favicon_database_private.h" 51 #include "ewk_intent_private.h"52 51 #include "ewk_private.h" 53 52 #include "ewk_settings_private.h" … … 707 706 } 708 707 709 Eina_Bool ewk_view_intent_deliver(Evas_Object* ewkView, Ewk_Intent* intent)710 {711 #if ENABLE(WEB_INTENTS)712 EWK_VIEW_IMPL_GET_OR_RETURN(ewkView, impl, false);713 EwkIntent* intentImpl = ewk_object_cast<EwkIntent*>(intent);714 EINA_SAFETY_ON_NULL_RETURN_VAL(intentImpl, false);715 716 WebPageProxy* page = impl->page();717 page->deliverIntentToFrame(page->mainFrame(), intentImpl->webIntentData());718 719 return true;720 #else721 UNUSED_PARAM(ewkView);722 UNUSED_PARAM(intent);723 return false;724 #endif725 }726 727 708 Eina_Bool ewk_view_back_possible(Evas_Object* ewkView) 728 709 { -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.h
r140686 r141439 50 50 * ewk_form_submission_request_submit() will be called automatically. 51 51 * - "icon,changed", void: reports that the view's favicon has changed. 52 * - "intent,request,new", Ewk_Intent*: reports new Web intent request.53 * - "intent,service,register", Ewk_Intent_Service*: reports new Web intent service registration.54 52 * - "load,error", const Ewk_Error*: reports main frame load failed. 55 53 * - "load,finished", void: reports load finished. … … 82 80 #include "ewk_download_job.h" 83 81 #include "ewk_error.h" 84 #include "ewk_intent.h"85 82 #include "ewk_popup_menu.h" 86 83 #include "ewk_security_origin.h" … … 426 423 427 424 /** 428 * Delivers a Web intent to the view's main frame.429 *430 * @param o view object to deliver the intent to431 *432 * @return @c EINA_TRUE on success or @c EINA_FALSE otherwise.433 */434 EAPI Eina_Bool ewk_view_intent_deliver(Evas_Object *o, Ewk_Intent *intent);435 436 /**437 425 * Asks the main frame to navigate back in the history. 438 426 * -
trunk/Source/WebKit2/UIProcess/efl/PageLoadClientEfl.cpp
r140686 r141439 35 35 #include "ewk_back_forward_list_private.h" 36 36 #include "ewk_error_private.h" 37 #include "ewk_intent_private.h"38 #include "ewk_intent_service_private.h"39 37 #include "ewk_view.h" 40 38 … … 56 54 view->smartCallback<TitleChange>().call(toImpl(title)->string()); 57 55 } 58 59 #if ENABLE(WEB_INTENTS)60 void PageLoadClientEfl::didReceiveIntentForFrame(WKPageRef, WKFrameRef, WKIntentDataRef intent, WKTypeRef, const void* clientInfo)61 {62 EwkView* view = toPageLoadClientEfl(clientInfo)->view();63 RefPtr<EwkIntent> ewkIntent = EwkIntent::create(intent);64 view->smartCallback<IntentRequest>().call(ewkIntent.get());65 }66 #endif67 68 #if ENABLE(WEB_INTENTS_TAG)69 void PageLoadClientEfl::registerIntentServiceForFrame(WKPageRef, WKFrameRef, WKIntentServiceInfoRef serviceInfo, WKTypeRef, const void* clientInfo)70 {71 EwkView* view = toPageLoadClientEfl(clientInfo)->view();72 RefPtr<EwkIntentService> ewkIntentService = EwkIntentService::create(serviceInfo);73 view->smartCallback<IntentServiceRegistration>().call(ewkIntentService.get());74 }75 #endif76 56 77 57 void PageLoadClientEfl::didChangeProgress(WKPageRef page, const void* clientInfo) … … 183 163 loadClient.clientInfo = this; 184 164 loadClient.didReceiveTitleForFrame = didReceiveTitleForFrame; 185 #if ENABLE(WEB_INTENTS)186 loadClient.didReceiveIntentForFrame = didReceiveIntentForFrame;187 #endif188 #if ENABLE(WEB_INTENTS_TAG)189 loadClient.registerIntentServiceForFrame = registerIntentServiceForFrame;190 #endif191 165 loadClient.didStartProgress = didChangeProgress; 192 166 loadClient.didChangeProgress = didChangeProgress; -
trunk/Source/WebKit2/UIProcess/efl/PageLoadClientEfl.h
r140686 r141439 48 48 49 49 static void didReceiveTitleForFrame(WKPageRef, WKStringRef title, WKFrameRef, WKTypeRef, const void* clientInfo); 50 #if ENABLE(WEB_INTENTS)51 static void didReceiveIntentForFrame(WKPageRef, WKFrameRef, WKIntentDataRef, WKTypeRef, const void* clientInfo);52 #endif53 #if ENABLE(WEB_INTENTS_TAG)54 static void registerIntentServiceForFrame(WKPageRef, WKFrameRef, WKIntentServiceInfoRef, WKTypeRef, const void* clientInfo);55 #endif56 50 static void didChangeProgress(WKPageRef, const void* clientInfo); 57 51 static void didFinishLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef userData, const void* clientInfo); -
trunk/Source/cmake/OptionsEfl.cmake
r141241 r141439 92 92 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VIDEO_TRACK ON) 93 93 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_AUDIO ON) 94 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_INTENTS ON)95 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_INTENTS_TAG ON)96 94 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_TIMING ON) 97 95 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL ON) -
trunk/Tools/ChangeLog
r141435 r141439 1 2013-01-31 Christophe Dumez <dchris@gmail.com> 2 3 [EFL] Disable Web Intents 4 https://bugs.webkit.org/show_bug.cgi?id=108457 5 6 Reviewed by Alexey Proskuryakov. 7 8 Remove EFL DRT code related to Web intents. 9 10 * DumpRenderTree/efl/DumpRenderTreeChrome.cpp: 11 (DumpRenderTreeChrome::createView): 12 (DumpRenderTreeChrome::resetDefaultsToConsistentValues): 13 (DumpRenderTreeChrome::onFrameCreated): 14 * DumpRenderTree/efl/DumpRenderTreeChrome.h: 15 (DumpRenderTreeChrome): 16 * DumpRenderTree/efl/TestRunnerEfl.cpp: 17 (TestRunner::sendWebIntentResponse): 18 (TestRunner::deliverWebIntent): 19 * Scripts/webkitperl/FeatureList.pm: Turn off WEB_INTENTS flag 20 for EFL port. 21 1 22 2013-01-31 Simon Hausmann <simon.hausmann@digia.com> 2 23 -
trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp
r138983 r141439 55 55 HashMap<unsigned long, CString> DumpRenderTreeChrome::m_dumpAssignedUrls; 56 56 Evas_Object* DumpRenderTreeChrome::m_provisionalLoadFailedFrame = 0; 57 Ewk_Intent_Request* DumpRenderTreeChrome::m_currentIntentRequest = 0;58 57 59 58 PassOwnPtr<DumpRenderTreeChrome> DumpRenderTreeChrome::create(Evas* evas) … … 124 123 Evas_Object* mainFrame = ewk_view_frame_main_get(view); 125 124 evas_object_smart_callback_add(mainFrame, "icon,changed", onFrameIconChanged, 0); 126 evas_object_smart_callback_add(mainFrame, "intent,new", onFrameIntentNew, 0);127 evas_object_smart_callback_add(mainFrame, "intent,service,register", onFrameIntentServiceRegistration, 0);128 125 evas_object_smart_callback_add(mainFrame, "load,provisional", onFrameProvisionalLoad, 0); 129 126 evas_object_smart_callback_add(mainFrame, "load,provisional,failed", onFrameProvisionalLoadFailed, 0); … … 240 237 { 241 238 return m_mainView; 242 }243 244 Ewk_Intent_Request* DumpRenderTreeChrome::currentIntentRequest() const245 {246 return m_currentIntentRequest;247 239 } 248 240 … … 333 325 ewk_settings_page_cache_capacity_set(3); 334 326 335 if (m_currentIntentRequest) {336 ewk_intent_request_unref(m_currentIntentRequest);337 m_currentIntentRequest = 0;338 }339 340 327 policyDelegateEnabled = false; 341 328 policyDelegatePermissive = false; … … 617 604 618 605 evas_object_smart_callback_add(frame, "icon,changed", onFrameIconChanged, 0); 619 evas_object_smart_callback_add(frame, "intent,new", onFrameIntentNew, 0);620 evas_object_smart_callback_add(frame, "intent,service,register", onFrameIntentServiceRegistration, 0);621 606 evas_object_smart_callback_add(frame, "load,provisional", onFrameProvisionalLoad, 0); 622 607 evas_object_smart_callback_add(frame, "load,provisional,failed", onFrameProvisionalLoadFailed, 0); … … 852 837 } 853 838 854 void DumpRenderTreeChrome::onFrameIntentNew(void*, Evas_Object*, void* eventInfo)855 {856 Ewk_Intent_Request* request = static_cast<Ewk_Intent_Request*>(eventInfo);857 Ewk_Intent* intent = ewk_intent_request_intent_get(request);858 if (!intent)859 return;860 861 ewk_intent_request_ref(request);862 if (m_currentIntentRequest)863 ewk_intent_request_unref(m_currentIntentRequest);864 m_currentIntentRequest = request;865 866 printf("Received Web Intent: action=%s type=%s\n",867 ewk_intent_action_get(intent),868 ewk_intent_type_get(intent));869 870 const MessagePortChannelArray* messagePorts = DumpRenderTreeSupportEfl::intentMessagePorts(intent);871 if (messagePorts)872 printf("Have %d ports\n", static_cast<int>(messagePorts->size()));873 874 const char* service = ewk_intent_service_get(intent);875 if (service && strcmp(service, ""))876 printf("Explicit intent service: %s\n", service);877 878 void* data = 0;879 Eina_List* extraNames = ewk_intent_extra_names_get(intent);880 EINA_LIST_FREE(extraNames, data) {881 const char* name = static_cast<char*>(data);882 const char* value = ewk_intent_extra_get(intent, name);883 if (value) {884 printf("Extras[%s] = %s\n", name, value);885 eina_stringshare_del(value);886 }887 eina_stringshare_del(name);888 }889 890 Eina_List* suggestions = ewk_intent_suggestions_get(intent);891 EINA_LIST_FREE(suggestions, data) {892 const char* suggestion = static_cast<char*>(data);893 printf("Have suggestion %s\n", suggestion);894 eina_stringshare_del(suggestion);895 }896 }897 898 void DumpRenderTreeChrome::onFrameIntentServiceRegistration(void*, Evas_Object*, void* eventInfo)899 {900 Ewk_Intent_Service_Info* serviceInfo = static_cast<Ewk_Intent_Service_Info*>(eventInfo);901 printf("Registered Web Intent Service: action=%s type=%s title=%s url=%s disposition=%s\n",902 serviceInfo->action,903 serviceInfo->type,904 serviceInfo->title,905 serviceInfo->href,906 serviceInfo->disposition);907 }908 909 839 void DumpRenderTreeChrome::onDownloadRequest(void*, Evas_Object*, void* eventInfo) 910 840 { -
trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.h
r131119 r141439 33 33 #include <Eina.h> 34 34 #include <Evas.h> 35 #include <ewk_intent_request.h>36 35 #include <wtf/HashMap.h> 37 36 #include <wtf/OwnPtr.h> … … 59 58 Evas_Object* mainView() const; 60 59 61 Ewk_Intent_Request* currentIntentRequest() const;62 63 60 void resetDefaultsToConsistentValues(); 64 61 … … 76 73 static HashMap<unsigned long, CString> m_dumpAssignedUrls; 77 74 static Evas_Object* m_provisionalLoadFailedFrame; 78 static Ewk_Intent_Request* m_currentIntentRequest;79 75 80 76 // Smart callbacks … … 140 136 static void onNewResourceRequest(void*, Evas_Object*, void*); 141 137 142 static void onFrameIntentNew(void*, Evas_Object*, void*);143 static void onFrameIntentServiceRegistration(void*, Evas_Object*, void*);144 145 138 static void onDownloadRequest(void*, Evas_Object*, void*); 146 139 }; -
trunk/Tools/DumpRenderTree/efl/TestRunnerEfl.cpp
r137080 r141439 902 902 } 903 903 904 void TestRunner::sendWebIntentResponse(JSStringRef response)905 { 906 Ewk_Intent_Request* request = browser->currentIntentRequest();907 if (!request)908 return;909 910 DumpRenderTreeSupportEfl::sendWebIntentResponse(request, response); 911 } 912 913 void TestRunner::deliverWebIntent(JSStringRef action, JSStringRef type, JSStringRef data) 914 { 915 DumpRenderTreeSupportEfl::deliverWebIntent(browser->mainFrame(), action, type, data);904 void TestRunner::sendWebIntentResponse(JSStringRef) 905 { 906 // No plan to support Web Intents. The feature will likely 907 // be removed from WebKit. 908 notImplemented(); 909 } 910 911 void TestRunner::deliverWebIntent(JSStringRef, JSStringRef, JSStringRef) 912 { 913 // No plan to support Web Intents. The feature will likely 914 // be removed from WebKit. 915 notImplemented(); 916 916 } 917 917 -
trunk/Tools/Scripts/webkitperl/FeatureList.pm
r140957 r141439 459 459 460 460 { option => "web-intents", desc => "Toggle Web Intents support", 461 define => "ENABLE_WEB_INTENTS", default => isEfl(), value => \$webIntentsSupport },461 define => "ENABLE_WEB_INTENTS", default => 0, value => \$webIntentsSupport }, 462 462 463 463 { option => "web-intents-tag", desc => "Toggle Web Intents Tag support", 464 define => "ENABLE_WEB_INTENTS_TAG", default => isEfl(), value => \$webIntentsTagSupport },464 define => "ENABLE_WEB_INTENTS_TAG", default => 0, value => \$webIntentsTagSupport }, 465 465 466 466 { option => "web-sockets", desc => "Toggle Web Sockets support",
Note: See TracChangeset
for help on using the changeset viewer.