Changeset 195308 in webkit
- Timestamp:
- Jan 19, 2016 12:56:21 PM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 1 deleted
- 23 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r195307 r195308 1 2016-01-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195300. 4 https://bugs.webkit.org/show_bug.cgi?id=153244 5 6 enrica wants more time to fix Windows (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Add support for DataDetectors in WK (iOS)." 12 https://bugs.webkit.org/show_bug.cgi?id=152989 13 http://trac.webkit.org/changeset/195300 14 1 15 2016-01-19 Filip Pizlo <fpizlo@apple.com> 2 16 -
trunk/Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig
r195300 r195308 112 112 113 113 ENABLE_IOS_TEXT_AUTOSIZING[sdk=iphone*] = ENABLE_IOS_TEXT_AUTOSIZING; 114 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;115 114 116 115 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK)); -
trunk/Source/WTF/ChangeLog
r195304 r195308 1 2016-01-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195300. 4 https://bugs.webkit.org/show_bug.cgi?id=153244 5 6 enrica wants more time to fix Windows (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Add support for DataDetectors in WK (iOS)." 12 https://bugs.webkit.org/show_bug.cgi?id=152989 13 http://trac.webkit.org/changeset/195300 14 1 15 2016-01-19 Chris Dumez <cdumez@apple.com> 2 16 -
trunk/Source/WTF/wtf/FeatureDefines.h
r195300 r195308 273 273 #endif /* PLATFORM(MAC) */ 274 274 275 #if PLATFORM(COCOA)276 277 #if !defined(ENABLE_DATA_DETECTION)278 #define ENABLE_DATA_DETECTION 1279 #endif280 281 #endif /* PLATFORM(COCOA) */282 283 275 /* --------- Apple Windows port --------- */ 284 276 #if PLATFORM(WIN) && !PLATFORM(WIN_CAIRO) -
trunk/Source/WebCore/ChangeLog
r195306 r195308 1 2016-01-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195300. 4 https://bugs.webkit.org/show_bug.cgi?id=153244 5 6 enrica wants more time to fix Windows (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Add support for DataDetectors in WK (iOS)." 12 https://bugs.webkit.org/show_bug.cgi?id=152989 13 http://trac.webkit.org/changeset/195300 14 1 15 2016-01-19 Zalan Bujtas <zalan@apple.com> 2 16 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r195300 r195308 112 112 113 113 ENABLE_IOS_TEXT_AUTOSIZING[sdk=iphone*] = ENABLE_IOS_TEXT_AUTOSIZING; 114 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;115 114 116 115 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK)); -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r195300 r195308 51 51 OTHER_LDFLAGS = $(inherited) $(OTHER_LDFLAGS_PLATFORM); 52 52 OTHER_LDFLAGS_BASE = -lsqlite3 -lobjc -lANGLE; 53 OTHER_LDFLAGS_BASE_ios = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -lMobileGestalt -framework DataDetectorsCore;53 OTHER_LDFLAGS_BASE_ios = $(OTHER_LDFLAGS_BASE) -framework CFNetwork -framework CoreGraphics -framework CoreText -framework Foundation -framework GraphicsServices -framework ImageIO -framework OpenGLES -lMobileGestalt; 54 54 OTHER_LDFLAGS_PLATFORM[sdk=iphoneos*] = $(OTHER_LDFLAGS_BASE_ios) -framework IOSurface; 55 55 OTHER_LDFLAGS_PLATFORM[sdk=iphonesimulator*] = $(OTHER_LDFLAGS_BASE_ios); -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r195302 r195308 1138 1138 2D5036681BCDDDC400E20BB3 /* GestureEvents.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2D5036671BCDDDC400E20BB3 /* GestureEvents.cpp */; }; 1139 1139 2D5646B01B8F8493003C4994 /* DictionaryPopupInfo.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D5646AF1B8F8493003C4994 /* DictionaryPopupInfo.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1140 2D58D8551A15F65F00A5F726 /* DataDetection.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D58D8531A15F65F00A5F726 /* DataDetection.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1141 2D58D8561A15F65F00A5F726 /* DataDetection.mm in Sources */ = {isa = PBXBuildFile; fileRef = 2D58D8541A15F65F00A5F726 /* DataDetection.mm */; }; 1140 1142 2D59F1BF1A0044C6001F3D29 /* DataDetectorsSPI.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D59F1BE1A0044C6001F3D29 /* DataDetectorsSPI.h */; settings = {ATTRIBUTES = (Private, ); }; }; 1141 1143 2D5A592F152525230036EE51 /* ImageOrientation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A8748D7412CC3F89001FBA41 /* ImageOrientation.cpp */; }; … … 5881 5883 C5137CF211A58378004ADB99 /* JSDOMStringList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C5137CF011A58378004ADB99 /* JSDOMStringList.cpp */; }; 5882 5884 C5137CF311A58378004ADB99 /* JSDOMStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = C5137CF111A58378004ADB99 /* JSDOMStringList.h */; }; 5883 C5227DF11C3C6DF100F5ED54 /* DataDetection.h in Headers */ = {isa = PBXBuildFile; fileRef = C5227DEF1C3C6DD700F5ED54 /* DataDetection.h */; settings = {ATTRIBUTES = (Private, ); }; };5884 C5227DF21C3C6DF900F5ED54 /* DataDetection.mm in Sources */ = {isa = PBXBuildFile; fileRef = C5227DF01C3C6DD700F5ED54 /* DataDetection.mm */; };5885 5885 C5278B0C17F212EA003A2998 /* PlatformPasteboardIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = C5278B0B17F212EA003A2998 /* PlatformPasteboardIOS.mm */; }; 5886 5886 C544274B11A57E7A0063A749 /* DOMStringList.h in Headers */ = {isa = PBXBuildFile; fileRef = C544274911A57E7A0063A749 /* DOMStringList.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 8515 8515 2D5036671BCDDDC400E20BB3 /* GestureEvents.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = GestureEvents.cpp; sourceTree = "<group>"; }; 8516 8516 2D5646AF1B8F8493003C4994 /* DictionaryPopupInfo.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DictionaryPopupInfo.h; sourceTree = "<group>"; }; 8517 2D58D8531A15F65F00A5F726 /* DataDetection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataDetection.h; sourceTree = "<group>"; }; 8518 2D58D8541A15F65F00A5F726 /* DataDetection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DataDetection.mm; sourceTree = "<group>"; }; 8517 8519 2D59F1BE1A0044C6001F3D29 /* DataDetectorsSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataDetectorsSPI.h; sourceTree = "<group>"; }; 8518 8520 2D5BC42516F882BE007048D0 /* SecurityPolicyViolationEvent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SecurityPolicyViolationEvent.h; sourceTree = "<group>"; }; … … 13712 13714 C5137CF011A58378004ADB99 /* JSDOMStringList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSDOMStringList.cpp; sourceTree = "<group>"; }; 13713 13715 C5137CF111A58378004ADB99 /* JSDOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSDOMStringList.h; sourceTree = "<group>"; }; 13714 C5227DEF1C3C6DD700F5ED54 /* DataDetection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DataDetection.h; sourceTree = "<group>"; };13715 C5227DF01C3C6DD700F5ED54 /* DataDetection.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = DataDetection.mm; sourceTree = "<group>"; };13716 13716 C5278B0B17F212EA003A2998 /* PlatformPasteboardIOS.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = PlatformPasteboardIOS.mm; sourceTree = "<group>"; }; 13717 13717 C544274911A57E7A0063A749 /* DOMStringList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMStringList.h; sourceTree = "<group>"; }; … … 17886 17886 isa = PBXGroup; 17887 17887 children = ( 17888 C5227DEF1C3C6DD700F5ED54 /* DataDetection.h */,17889 C5227DF01C3C6DD700F5ED54 /* DataDetection.mm */,17890 17888 9B55EEEA1B3F3FEF005342BC /* EditorCocoa.h */, 17891 17889 9B55EEE81B3E8898005342BC /* EditorCocoa.mm */, … … 23194 23192 CE7B2DAF1586ABAD0098B3FA /* AlternativeTextUIController.h */, 23195 23193 CE7B2DB01586ABAD0098B3FA /* AlternativeTextUIController.mm */, 23194 2D58D8531A15F65F00A5F726 /* DataDetection.h */, 23195 2D58D8541A15F65F00A5F726 /* DataDetection.mm */, 23196 23196 937FF3D41A1012D6008EBA31 /* DictionaryLookup.h */, 23197 23197 937FF3D61A10131B008EBA31 /* DictionaryLookup.mm */, … … 25069 25069 97BC6A321505F081001B74AC /* DatabaseTracker.h in Headers */, 25070 25070 BE23480D18A9871400E4B6E8 /* DataCue.h in Headers */, 25071 2D58D8551A15F65F00A5F726 /* DataDetection.h in Headers */, 25071 25072 935E2B4E1AFF06CA00976F9F /* DataDetectorsCoreSPI.h in Headers */, 25072 25073 2D59F1BF1A0044C6001F3D29 /* DataDetectorsSPI.h in Headers */, … … 26040 26041 B27535760B053814002CE64F /* IntSizeHash.h in Headers */, 26041 26042 CE12524D1A1A77DE00864480 /* IOPMLibSPI.h in Headers */, 26042 C5227DF11C3C6DF100F5ED54 /* DataDetection.h in Headers */,26043 26043 44DEF6431A6FF92700D45EEC /* IOReturnSPI.h in Headers */, 26044 26044 2D0B4AAB18DA1CCD00434DE1 /* IOSurface.h in Headers */, … … 28748 28748 580371611A66F00A00BAF519 /* ClipRect.cpp in Sources */, 28749 28749 CDEA76351460B71A008B31F1 /* Clock.cpp in Sources */, 28750 C5227DF21C3C6DF900F5ED54 /* DataDetection.mm in Sources */,28751 28750 CDEA76341460B56F008B31F1 /* ClockGeneric.cpp in Sources */, 28752 28751 9BD8A95A18BEFC7600987E9A /* CollectionIndexCache.cpp in Sources */, … … 28928 28927 97BC6A311505F081001B74AC /* DatabaseTracker.cpp in Sources */, 28929 28928 BE23480C18A9870B00E4B6E8 /* DataCue.cpp in Sources */, 28929 2D58D8561A15F65F00A5F726 /* DataDetection.mm in Sources */, 28930 28930 BC64641D11D7F416006455B0 /* DatasetDOMStringMap.cpp in Sources */, 28931 28931 A784941B0B5FE507001E237A /* DataTransfer.cpp in Sources */, -
trunk/Source/WebCore/editing/mac/DataDetection.h
r195307 r195308 27 27 #define DataDetection_h 28 28 29 #if PLATFORM(MAC) 30 29 31 #import <wtf/RefPtr.h> 30 32 #import <wtf/RetainPtr.h> … … 38 40 class Range; 39 41 40 enum DataDetectorTypes {41 DataDetectorTypeNone = 0,42 DataDetectorTypePhoneNumber = 1 << 0,43 DataDetectorTypeLink = 1 << 1,44 DataDetectorTypeAddress = 1 << 2,45 DataDetectorTypeCalendarEvent = 1 << 3,46 DataDetectorTypeAll = ULONG_MAX47 };48 49 42 class DataDetection { 50 43 public: 51 #if PLATFORM(MAC)52 44 WEBCORE_EXPORT static RetainPtr<DDActionContext> detectItemAroundHitTestResult(const HitTestResult&, FloatRect& detectedDataBoundingBox, RefPtr<Range>& detectedDataRange); 53 #endif54 WEBCORE_EXPORT static void detectContentInRange(RefPtr<Range>& contextRange, DataDetectorTypes);55 45 }; 56 46 57 47 } // namespace WebCore 58 48 49 #endif // PLATFORM(MAC) 50 59 51 #endif // DataDetection_h -
trunk/Source/WebCore/editing/mac/DataDetection.mm
r195307 r195308 27 27 #import "DataDetection.h" 28 28 29 #i mport "Attr.h"30 #import "CSSStyleDeclaration.h" 29 #if PLATFORM(MAC) 30 31 31 #import "DataDetectorsSPI.h" 32 32 #import "FrameView.h" 33 #import "HTMLAnchorElement.h"34 33 #import "HTMLTextFormControlElement.h" 35 34 #import "HitTestResult.h" 36 35 #import "Node.h" 37 #import "NodeList.h"38 #import "NodeTraversal.h"39 36 #import "Range.h" 40 37 #import "RenderObject.h" 41 #import "Text.h"42 38 #import "TextIterator.h" 43 39 #import "VisiblePosition.h" … … 46 42 47 43 namespace WebCore { 48 49 #if PLATFORM(MAC)50 44 51 45 static RetainPtr<DDActionContext> detectItemAtPositionWithRange(VisiblePosition position, RefPtr<Range> contextRange, FloatRect& detectedDataBoundingBox, RefPtr<Range>& detectedDataRange) … … 138 132 return detectItemAtPositionWithRange(position, contextRange, detectedDataBoundingBox, detectedDataRange); 139 133 } 140 #endif // PLATFORM(MAC)141 142 void DataDetection::detectContentInRange(RefPtr<Range>&, DataDetectorTypes)143 {144 }145 134 146 135 } // namespace WebCore 136 137 #endif // PLATFORM(MAC) -
trunk/Source/WebCore/loader/FrameLoader.cpp
r195300 r195308 126 126 #endif 127 127 128 #if ENABLE(DATA_DETECTION)129 #include "DataDetection.h"130 #endif131 132 128 #if PLATFORM(IOS) 133 129 #include "DocumentType.h" … … 2282 2278 m_client.dispatchDidFinishLoad(); 2283 2279 loadingEvent = AXObjectCache::AXLoadingFinished; 2284 #if ENABLE(DATA_DETECTION)2285 if (m_frame.settings().dataDetectorTypes() != DataDetectorTypeNone) {2286 RefPtr<Range> documentRange = makeRange(firstPositionInNode(m_frame.document()->documentElement()), lastPositionInNode(m_frame.document()->documentElement()));2287 DataDetection::detectContentInRange(documentRange, m_frame.settings().dataDetectorTypes());2288 }2289 #endif2290 2280 } 2291 2281 -
trunk/Source/WebCore/page/Settings.h
r195300 r195308 43 43 #include <wtf/text/AtomicStringHash.h> 44 44 45 #if ENABLE(DATA_DETECTION)46 #include "DataDetection.h"47 #endif48 49 45 namespace WebCore { 50 46 -
trunk/Source/WebCore/page/Settings.in
r195300 r195308 229 229 230 230 useImageDocumentForSubframePDF initial=false 231 dataDetectorTypes type=DataDetectorTypes, initial=DataDetectorTypeNone, conditional=DATA_DETECTION232 231 233 232 # Allow SourceBuffers to store up to 304MB each, enough for approximately five minutes -
trunk/Source/WebCore/platform/spi/mac/DataDetectorsSPI.h
r195300 r195308 26 26 #import <wtf/Platform.h> 27 27 28 #if PLATFORM(MAC) 28 29 29 30 #import <WebCore/DataDetectorsCoreSPI.h> 30 31 #import <WebCore/SoftLinking.h> 31 32 #if PLATFORM(MAC)33 32 34 33 #if USE(APPLE_INTERNAL_SDK) -
trunk/Source/WebKit/mac/ChangeLog
r195300 r195308 1 2016-01-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195300. 4 https://bugs.webkit.org/show_bug.cgi?id=153244 5 6 enrica wants more time to fix Windows (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Add support for DataDetectors in WK (iOS)." 12 https://bugs.webkit.org/show_bug.cgi?id=152989 13 http://trac.webkit.org/changeset/195300 14 1 15 2016-01-19 Enrica Casucci <enrica@apple.com> 2 16 -
trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig
r195300 r195308 112 112 113 113 ENABLE_IOS_TEXT_AUTOSIZING[sdk=iphone*] = ENABLE_IOS_TEXT_AUTOSIZING; 114 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;115 114 116 115 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK)); -
trunk/Source/WebKit2/ChangeLog
r195300 r195308 1 2016-01-19 Commit Queue <commit-queue@webkit.org> 2 3 Unreviewed, rolling out r195300. 4 https://bugs.webkit.org/show_bug.cgi?id=153244 5 6 enrica wants more time to fix Windows (Requested by thorton on 7 #webkit). 8 9 Reverted changeset: 10 11 "Add support for DataDetectors in WK (iOS)." 12 https://bugs.webkit.org/show_bug.cgi?id=152989 13 http://trac.webkit.org/changeset/195300 14 1 15 2016-01-19 Enrica Casucci <enrica@apple.com> 2 16 -
trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig
r195300 r195308 112 112 113 113 ENABLE_IOS_TEXT_AUTOSIZING[sdk=iphone*] = ENABLE_IOS_TEXT_AUTOSIZING; 114 ENABLE_DATA_DETECTION = ENABLE_DATA_DETECTION;115 114 116 115 ENABLE_IOS_TOUCH_EVENTS[sdk=iphone*] = $(ENABLE_IOS_TOUCH_EVENTS_ios_WITH_INTERNAL_SDK_$(USE_INTERNAL_SDK)); -
trunk/Source/WebKit2/Shared/WebPreferencesDefinitions.h
r195300 r195308 240 240 macro(StorageBlockingPolicy, storageBlockingPolicy, UInt32, uint32_t, WebCore::SecurityOrigin::BlockThirdPartyStorage) \ 241 241 macro(JavaScriptRuntimeFlags, javaScriptRuntimeFlags, UInt32, uint32_t, 0) \ 242 macro(DataDetectorTypes, dataDetectorTypes, UInt32, uint32_t, 0) \243 242 \ 244 243 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r195300 r195308 383 383 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::invisibleAutoplayNotPermittedKey(), WebKit::WebPreferencesStore::Value(!![_configuration _invisibleAutoplayNotPermitted])); 384 384 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::mediaDataLoadsAutomaticallyKey(), WebKit::WebPreferencesStore::Value(!![_configuration _mediaDataLoadsAutomatically])); 385 #endif386 #if ENABLE(DATA_DETECTION)387 pageConfiguration->preferenceValues().set(WebKit::WebPreferencesKey::dataDetectorTypesKey(), WebKit::WebPreferencesStore::Value(static_cast<uint32_t>([_configuration dataDetectorTypes])));388 385 #endif 389 386 #if ENABLE(WIRELESS_PLAYBACK_TARGET) -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.h
r195300 r195308 52 52 #endif 53 53 54 /*! @enum WKDataDetectorTypes55 @abstract The type of detection desired.56 @constant WKDataDetectorTypeNone No detection is performed.57 @constant WKDataDetectorTypePhoneNumber Phone numbers are detected and turned into links.58 @constant WKDataDetectorTypeLink URLs in text are detected and turned into links.59 @constant WKDataDetectorTypeAddress Addresses are detected and turned into links.60 @constant WKDataDetectorTypeCalendarEvent Dates and times that are in the future are detected and turned into links.61 @constant WKDataDetectorTypeAll All of the above data types are turned into links when detected. Choosing this value will62 automatically include any new detection type that is added.63 */64 typedef NS_OPTIONS(NSUInteger, WKDataDetectorTypes) {65 WKDataDetectorTypeNone = 0,66 WKDataDetectorTypePhoneNumber = 1 << 0,67 WKDataDetectorTypeLink = 1 << 1,68 WKDataDetectorTypeAddress = 1 << 2,69 WKDataDetectorTypeCalendarEvent = 1 << 3,70 WKDataDetectorTypeAll = NSUIntegerMax71 } WK_ENUM_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);72 73 54 /*! A WKWebViewConfiguration object is a collection of properties with 74 55 which to initialize a web view. … … 112 93 */ 113 94 @property (nonatomic) BOOL allowsAirPlayForMediaPlayback WK_AVAILABLE(10_11, 9_0); 114 115 /*! @abstract An enum value indicating the type of data detection desired.116 @discussion The default value is WKDataDetectorTypeNone.117 An example of how this property may affect the content loaded in the WKWebView is that content like118 'Visit apple.com on July 4th or call 1 800 555-5545' will be transformed to add links around 'apple.com', 'July 4th' and '1 800 555-5545'119 if the dataDetectorTypes property is set to WKDataDetectorTypePhoneNumber | WKDataDetectorTypeLink | WKDataDetectorTypeCalendarEvent.120 121 */122 @property (nonatomic) WKDataDetectorTypes dataDetectorTypes WK_AVAILABLE(WK_MAC_TBA, WK_IOS_TBA);123 95 124 96 #if TARGET_OS_IPHONE -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r195300 r195308 199 199 configuration->_imageControlsEnabled = self->_imageControlsEnabled; 200 200 #endif 201 #if ENABLE(DATA_DETECTION)202 configuration->_dataDetectorTypes = self->_dataDetectorTypes;203 #endif204 201 #if ENABLE(WIRELESS_TARGET_PLAYBACK) 205 202 configuration->_allowsAirPlayForMediaPlayback = self->_allowsAirPlayForMediaPlayback; -
trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj
r195300 r195308 1690 1690 C54256B918BEC18C00DE4179 /* WKFormPopover.mm in Sources */ = {isa = PBXBuildFile; fileRef = C54256B318BEC18B00DE4179 /* WKFormPopover.mm */; }; 1691 1691 C54256BA18BEC18C00DE4179 /* WKFormSelectControl.h in Headers */ = {isa = PBXBuildFile; fileRef = C54256B418BEC18C00DE4179 /* WKFormSelectControl.h */; }; 1692 C554A3131C49C36400A388FE /* WebPageCocoa.mm in Sources */ = {isa = PBXBuildFile; fileRef = C554A3111C49BCCB00A388FE /* WebPageCocoa.mm */; };1693 1692 C55CB5B718C269CF00CA81E1 /* WKFormSelectPopover.mm in Sources */ = {isa = PBXBuildFile; fileRef = C57193BA18C149D0002D0F12 /* WKFormSelectPopover.mm */; }; 1694 1693 C55CB5B818C2A5D600CA81E1 /* WKFormSelectPicker.mm in Sources */ = {isa = PBXBuildFile; fileRef = C57193B918C149D0002D0F12 /* WKFormSelectPicker.mm */; }; … … 3934 3933 C54256B318BEC18B00DE4179 /* WKFormPopover.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKFormPopover.mm; path = ios/forms/WKFormPopover.mm; sourceTree = "<group>"; }; 3935 3934 C54256B418BEC18C00DE4179 /* WKFormSelectControl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WKFormSelectControl.h; path = ios/forms/WKFormSelectControl.h; sourceTree = "<group>"; }; 3936 C554A3111C49BCCB00A388FE /* WebPageCocoa.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebPageCocoa.mm; sourceTree = "<group>"; };3937 3935 C554FFA212E4E8EA002F22C0 /* WebDragClientMac.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebDragClientMac.mm; sourceTree = "<group>"; }; 3938 3936 C57193B918C149D0002D0F12 /* WKFormSelectPicker.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WKFormSelectPicker.mm; path = ios/forms/WKFormSelectPicker.mm; sourceTree = "<group>"; }; … … 5091 5089 2D29ECCE192F2C2E00984B78 /* RemoteLayerTreeDisplayRefreshMonitor.h */, 5092 5090 2D29ECCF192F2C2E00984B78 /* RemoteLayerTreeDisplayRefreshMonitor.mm */, 5093 C554A3111C49BCCB00A388FE /* WebPageCocoa.mm */,5094 5091 ); 5095 5092 path = Cocoa; … … 9396 9393 C5E1AFEC16B21012006CC1F2 /* APIWebArchive.mm in Sources */, 9397 9394 C5E1AFEE16B21025006CC1F2 /* APIWebArchiveResource.mm in Sources */, 9398 C554A3131C49C36400A388FE /* WebPageCocoa.mm in Sources */,9399 9395 1A4832C71A9BC13C008B4DFE /* APIWebsiteDataRecord.cpp in Sources */, 9400 9396 1A3635A91A3144A300ED6197 /* APIWebsiteDataStore.cpp in Sources */, -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r195300 r195308 220 220 #endif 221 221 222 #if ENABLE(DATA_DETECTION)223 #include <WebCore/DataDetection.h>224 #endif225 226 222 #if ENABLE(VIDEO) && USE(GSTREAMER) 227 223 #include <WebCore/MediaPlayerRequestInstallMissingPluginsCallback.h> … … 2940 2936 #endif 2941 2937 2942 #if ENABLE(DATA_DETECTION)2943 settings.setDataDetectorTypes(fromWKDataDetectorTypes(store.getUInt32ValueForKey(WebPreferencesKey::dataDetectorTypesKey())));2944 #endif2945 2938 #if ENABLE(GAMEPAD) 2946 2939 RuntimeEnabledFeatures::sharedFeatures().setGamepadsEnabled(store.getBoolValueForKey(WebPreferencesKey::gamepadsEnabledKey())); -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h
r195300 r195308 92 92 #endif 93 93 94 #if ENABLE(DATA_DETECTION)95 #include <WebCore/DataDetection.h>96 #endif97 98 94 #if ENABLE(IOS_TOUCH_EVENTS) 99 95 #include <WebKitAdditions/PlatformTouchEventIOS.h> … … 1067 1063 void drawPagesToPDFFromPDFDocument(CGContextRef, PDFDocument *, const PrintInfo&, uint32_t first, uint32_t count); 1068 1064 #endif 1069 #if ENABLE(DATA_DETECTION)1070 WebCore::DataDetectorTypes fromWKDataDetectorTypes(uint32_t types);1071 #endif1072 1065 1073 1066 void setMainFrameIsScrollable(bool);
Note: See TracChangeset
for help on using the changeset viewer.