Changeset 277354 in webkit
- Timestamp:
- May 11, 2021, 8:55:46 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 21 edited
-
Source/WTF/ChangeLog (modified) (1 diff)
-
Source/WTF/wtf/PlatformHave.h (modified) (2 diffs)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Shared/WebProcessCreationParameters.cpp (modified) (2 diffs)
-
Source/WebKit/Shared/WebProcessCreationParameters.h (modified) (1 diff)
-
Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm (modified) (1 diff)
-
Source/WebKit/UIProcess/WebProcessProxy.cpp (modified) (1 diff)
-
Source/WebKit/UIProcess/WebProcessProxy.h (modified) (1 diff)
-
Source/WebKit/UIProcess/ios/WKMouseDeviceObserver.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/WKMouseDeviceObserver.mm (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/WKStylusDeviceObserver.h (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/WKStylusDeviceObserver.mm (modified) (2 diffs)
-
Source/WebKit/UIProcess/ios/WebProcessProxyIOS.mm (modified) (2 diffs)
-
Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm (modified) (2 diffs)
-
Source/WebKit/WebProcess/WebProcess.cpp (modified) (4 diffs)
-
Source/WebKit/WebProcess/WebProcess.h (modified) (2 diffs)
-
Source/WebKit/WebProcess/WebProcess.messages.in (modified) (1 diff)
-
Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm (modified) (5 diffs)
-
Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSStylusSupport.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r277344 r277354 1 2021-05-11 Devin Rousso <drousso@apple.com> 2 3 [macCatalyst] should have CSS `hover: hover` and `pointer: fine` 4 https://bugs.webkit.org/show_bug.cgi?id=225672 5 6 Reviewed by Tim Horton. 7 8 * wtf/PlatformHave.h: 9 Add `HAVE_MOUSE_DEVICE_OBSERVATION` and `HAVE_STYLUS_DEVICE_OBSERVATION` to make callsites 10 clearer instead of having a somewhat unrelated connection to `HAVE_UIKIT_WITH_MOUSE_SUPPORT` 11 and `HAVE_PENCILKIT_TEXT_INPUT` (not to mention both of them are `PLATFORM(MACCATALYST)` 12 which isn't desirable since macCatalyst should consider the mouse as the primary pointing 13 device, just like macOS). 14 1 15 2021-05-11 Alex Christensen <achristensen@webkit.org> 2 16 -
trunk/Source/WTF/wtf/PlatformHave.h
r277344 r277354 484 484 #endif 485 485 486 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130400 487 #define HAVE_MOUSE_DEVICE_OBSERVATION 1 488 #endif 489 486 490 #if (PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 487 491 #define HAVE_UI_HOVER_EVENT_RESPONDABLE 1 … … 791 795 #endif 792 796 797 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 798 #define HAVE_STYLUS_DEVICE_OBSERVATION 1 799 #endif 800 793 801 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000 || PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) 794 802 #if !defined(HAVE_APPLE_ATTESTATION) -
trunk/Source/WebKit/ChangeLog
r277353 r277354 1 2021-05-11 Devin Rousso <drousso@apple.com> 2 3 [macCatalyst] should have CSS `hover: hover` and `pointer: fine` 4 https://bugs.webkit.org/show_bug.cgi?id=225672 5 6 Reviewed by Tim Horton. 7 8 Test: iOSMouseSupport.MouseAlwaysConnected 9 10 * WebProcess/WebPage/ios/WebPageIOS.mm: 11 (WebKit::isMousePrimaryPointingDevice): Added. 12 (WebKit::hasAccessoryMousePointingDevice): Added. 13 (WebKit::hasAccessoryStylusPointingDevice): Added. 14 (WebKit::WebPage::hoverSupportedByPrimaryPointingDevice const): 15 (WebKit::WebPage::hoverSupportedByAnyAvailablePointingDevice const): 16 (WebKit::WebPage::pointerCharacteristicsOfPrimaryPointingDevice const): 17 (WebKit::WebPage::pointerCharacteristicsOfAllAvailablePointingDevices const): 18 (WebKit::hasMouseDevice): Deleted. 19 macCatalyst should consider the mouse as the primary pointing device, just like macOS: 20 - `hover` and `any-hover` should always be `hover` 21 - `pointer` and `any-pointer` should always be `fine` (instead of only if an accessory mouse/stylus is connected) 22 23 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 24 (WebKit::WebProcessPool::platformInitializeWebProcess): 25 * UIProcess/WebProcessProxy.h: 26 * UIProcess/WebProcessProxy.cpp: 27 (WebKit::WebProcessProxy::notifyHasMouseDeviceChanged): Added. 28 (WebKit::WebProcessProxy::notifyHasStylusDeviceChanged): 29 * UIProcess/ios/WebProcessProxyIOS.mm: 30 (WebKit::WebProcessProxy::platformInitialize): 31 (WebKit::WebProcessProxy::platformDestroy): 32 (WebKit::WebProcessProxy::notifyHasMouseDeviceChanged): Deleted. 33 * UIProcess/ios/WKMouseDeviceObserver.h: 34 * UIProcess/ios/WKMouseDeviceObserver.mm: 35 * Shared/WebProcessCreationParameters.h: 36 * Shared/WebProcessCreationParameters.cpp: 37 (WebKit::WebProcessCreationParameters::encode const): 38 (WebKit::WebProcessCreationParameters::decode): 39 * WebProcess/WebProcess.messages.in: 40 * WebProcess/WebProcess.h: 41 * WebProcess/WebProcess.cpp: 42 (WebKit::WebProcess::initializeWebProcess): 43 * WebProcess/cocoa/WebProcessCocoa.mm: 44 (WebKit::WebProcess::platformInitializeWebProcess): 45 Clean up macro usage to avoid unnecessary work on macCatalyst. 46 Drive-by: Move non-platform code to non-platform files. 47 1 48 2021-05-11 Commit Queue <commit-queue@webkit.org> 2 49 -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.cpp
r276428 r277354 89 89 encoder << textCheckerState; 90 90 encoder << fullKeyboardAccessEnabled; 91 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)91 #if HAVE(MOUSE_DEVICE_OBSERVATION) 92 92 encoder << hasMouseDevice; 93 93 #endif 94 #if HAVE(STYLUS_DEVICE_OBSERVATION) 94 95 encoder << hasStylusDevice; 96 #endif 95 97 encoder << defaultRequestTimeoutInterval; 96 98 encoder << backForwardCacheCapacity; … … 310 312 if (!decoder.decode(parameters.fullKeyboardAccessEnabled)) 311 313 return false; 312 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)314 #if HAVE(MOUSE_DEVICE_OBSERVATION) 313 315 if (!decoder.decode(parameters.hasMouseDevice)) 314 316 return false; 315 317 #endif 318 #if HAVE(STYLUS_DEVICE_OBSERVATION) 316 319 if (!decoder.decode(parameters.hasStylusDevice)) 317 320 return false; 321 #endif 318 322 if (!decoder.decode(parameters.defaultRequestTimeoutInterval)) 319 323 return false; -
trunk/Source/WebKit/Shared/WebProcessCreationParameters.h
r276428 r277354 121 121 bool shouldUseFontSmoothing { true }; 122 122 bool fullKeyboardAccessEnabled { false }; 123 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)123 #if HAVE(MOUSE_DEVICE_OBSERVATION) 124 124 bool hasMouseDevice { false }; 125 125 #endif 126 #if HAVE(STYLUS_DEVICE_OBSERVATION) 126 127 bool hasStylusDevice { false }; 128 #endif 127 129 bool memoryCacheDisabled { false }; 128 130 bool attrStyleEnabled { false }; -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r276644 r277354 437 437 #endif 438 438 439 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)439 #if HAVE(MOUSE_DEVICE_OBSERVATION) 440 440 parameters.hasMouseDevice = [[WKMouseDeviceObserver sharedInstance] hasMouseDevice]; 441 441 #endif 442 442 443 #if HAVE( PENCILKIT_TEXT_INPUT)443 #if HAVE(STYLUS_DEVICE_OBSERVATION) 444 444 parameters.hasStylusDevice = [[WKStylusDeviceObserver sharedInstance] hasStylusDevice]; 445 445 #endif -
trunk/Source/WebKit/UIProcess/WebProcessProxy.cpp
r277294 r277354 1199 1199 } 1200 1200 1201 #if HAVE(MOUSE_DEVICE_OBSERVATION) 1202 1203 void WebProcessProxy::notifyHasMouseDeviceChanged(bool hasMouseDevice) 1204 { 1205 ASSERT(isMainRunLoop()); 1206 for (auto* webProcessProxy : WebProcessProxy::allProcesses().values()) 1207 webProcessProxy->send(Messages::WebProcess::SetHasMouseDevice(hasMouseDevice), 0); 1208 } 1209 1210 #endif // HAVE(MOUSE_DEVICE_OBSERVATION) 1211 1212 #if HAVE(STYLUS_DEVICE_OBSERVATION) 1213 1201 1214 void WebProcessProxy::notifyHasStylusDeviceChanged(bool hasStylusDevice) 1202 1215 { 1216 ASSERT(isMainRunLoop()); 1203 1217 for (auto* webProcessProxy : WebProcessProxy::allProcesses().values()) 1204 1218 webProcessProxy->send(Messages::WebProcess::SetHasStylusDevice(hasStylusDevice), 0); 1205 1219 } 1220 1221 #endif // HAVE(STYLUS_DEVICE_OBSERVATION) 1206 1222 1207 1223 void WebProcessProxy::fetchWebsiteData(PAL::SessionID sessionID, OptionSet<WebsiteDataType> dataTypes, CompletionHandler<void(WebsiteData)>&& completionHandler) -
trunk/Source/WebKit/UIProcess/WebProcessProxy.h
r276733 r277354 217 217 static bool fullKeyboardAccessEnabled(); 218 218 219 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)219 #if HAVE(MOUSE_DEVICE_OBSERVATION) 220 220 static void notifyHasMouseDeviceChanged(bool hasMouseDevice); 221 221 #endif 222 222 223 #if HAVE(STYLUS_DEVICE_OBSERVATION) 223 224 static void notifyHasStylusDeviceChanged(bool hasStylusDevice); 225 #endif 224 226 225 227 void fetchWebsiteData(PAL::SessionID, OptionSet<WebsiteDataType>, CompletionHandler<void(WebsiteData)>&&); -
trunk/Source/WebKit/UIProcess/ios/WKMouseDeviceObserver.h
r272326 r277354 24 24 */ 25 25 26 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)26 #if HAVE(MOUSE_DEVICE_OBSERVATION) 27 27 28 28 #import "BackBoardServicesSPI.h" … … 49 49 @end 50 50 51 #endif // HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)51 #endif // HAVE(MOUSE_DEVICE_OBSERVATION) -
trunk/Source/WebKit/UIProcess/ios/WKMouseDeviceObserver.mm
r275937 r277354 27 27 #import "WKMouseDeviceObserver.h" 28 28 29 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)29 #if HAVE(MOUSE_DEVICE_OBSERVATION) 30 30 31 31 #import "WebProcessProxy.h" … … 126 126 @end 127 127 128 #endif // HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)128 #endif // HAVE(MOUSE_DEVICE_OBSERVATION) -
trunk/Source/WebKit/UIProcess/ios/WKStylusDeviceObserver.h
r268384 r277354 24 24 */ 25 25 26 #if HAVE( PENCILKIT_TEXT_INPUT)26 #if HAVE(STYLUS_DEVICE_OBSERVATION) 27 27 28 28 @interface WKStylusDeviceObserver : NSObject … … 39 39 @end 40 40 41 #endif // HAVE( PENCILKIT_TEXT_INPUT)41 #endif // HAVE(STYLUS_DEVICE_OBSERVATION) -
trunk/Source/WebKit/UIProcess/ios/WKStylusDeviceObserver.mm
r273276 r277354 27 27 #import "WKStylusDeviceObserver.h" 28 28 29 #if HAVE( PENCILKIT_TEXT_INPUT)29 #if HAVE(STYLUS_DEVICE_OBSERVATION) 30 30 31 31 #import "WebProcessProxy.h" … … 125 125 @end 126 126 127 #endif // HAVE( PENCILKIT_TEXT_INPUT)127 #endif // HAVE(STYLUS_DEVICE_OBSERVATION) -
trunk/Source/WebKit/UIProcess/ios/WebProcessProxyIOS.mm
r275937 r277354 39 39 void WebProcessProxy::platformInitialize() 40 40 { 41 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)41 #if HAVE(MOUSE_DEVICE_OBSERVATION) 42 42 [[WKMouseDeviceObserver sharedInstance] start]; 43 43 #endif 44 #if HAVE( PENCILKIT_TEXT_INPUT)44 #if HAVE(STYLUS_DEVICE_OBSERVATION) 45 45 [[WKStylusDeviceObserver sharedInstance] start]; 46 46 #endif … … 49 49 void WebProcessProxy::platformDestroy() 50 50 { 51 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)51 #if HAVE(MOUSE_DEVICE_OBSERVATION) 52 52 [[WKMouseDeviceObserver sharedInstance] stop]; 53 53 #endif 54 #if HAVE( PENCILKIT_TEXT_INPUT)54 #if HAVE(STYLUS_DEVICE_OBSERVATION) 55 55 [[WKStylusDeviceObserver sharedInstance] stop]; 56 56 #endif 57 57 } 58 59 #if HAVE(UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)60 61 void WebProcessProxy::notifyHasMouseDeviceChanged(bool hasMouseDevice)62 {63 ASSERT(isMainRunLoop());64 for (auto* webProcessProxy : WebProcessProxy::allProcesses().values())65 webProcessProxy->send(Messages::WebProcess::SetHasMouseDevice(hasMouseDevice), 0);66 }67 68 #endif // HAVE(UIKIT_WITH_MOUSE_SUPPORT)69 58 70 59 bool WebProcessProxy::fullKeyboardAccessEnabled() -
trunk/Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm
r277295 r277354 4180 4180 } 4181 4181 4182 static bool hasMouseDevice() 4183 { 4184 #if HAVE(UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS) 4185 return WebProcess::singleton().hasMouseDevice(); 4186 #elif HAVE(UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(MACCATALYST) 4182 static bool isMousePrimaryPointingDevice() 4183 { 4184 #if PLATFORM(MACCATALYST) 4187 4185 return true; 4188 4186 #else … … 4191 4189 } 4192 4190 4191 static bool hasAccessoryMousePointingDevice() 4192 { 4193 if (isMousePrimaryPointingDevice()) 4194 return true; 4195 4196 #if HAVE(MOUSE_DEVICE_OBSERVATION) 4197 if (WebProcess::singleton().hasMouseDevice()) 4198 return true; 4199 #endif 4200 4201 return false; 4202 } 4203 4204 static bool hasAccessoryStylusPointingDevice() 4205 { 4206 #if HAVE(STYLUS_DEVICE_OBSERVATION) 4207 if (WebProcess::singleton().hasStylusDevice()) 4208 return true; 4209 #endif 4210 4211 return false; 4212 } 4213 4193 4214 bool WebPage::hoverSupportedByPrimaryPointingDevice() const 4194 4215 { 4195 return false;4216 return isMousePrimaryPointingDevice(); 4196 4217 } 4197 4218 4198 4219 bool WebPage::hoverSupportedByAnyAvailablePointingDevice() const 4199 4220 { 4200 return has MouseDevice();4221 return hasAccessoryMousePointingDevice(); 4201 4222 } 4202 4223 4203 4224 Optional<PointerCharacteristics> WebPage::pointerCharacteristicsOfPrimaryPointingDevice() const 4204 4225 { 4205 return PointerCharacteristics::Coarse;4226 return isMousePrimaryPointingDevice() ? PointerCharacteristics::Fine : PointerCharacteristics::Coarse; 4206 4227 } 4207 4228 4208 4229 OptionSet<PointerCharacteristics> WebPage::pointerCharacteristicsOfAllAvailablePointingDevices() const 4209 4230 { 4210 OptionSet<PointerCharacteristics> result(PointerCharacteristics::Coarse); 4211 if (hasMouseDevice() || WebProcess::singleton().hasStylusDevice()) 4231 OptionSet<PointerCharacteristics> result; 4232 if (auto pointerCharacteristicsOfPrimaryPointingDevice = this->pointerCharacteristicsOfPrimaryPointingDevice()) 4233 result.add(*pointerCharacteristicsOfPrimaryPointingDevice); 4234 if (hasAccessoryMousePointingDevice() || hasAccessoryStylusPointingDevice()) 4212 4235 result.add(PointerCharacteristics::Fine); 4213 4236 return result; -
trunk/Source/WebKit/WebProcess/WebProcess.cpp
r276788 r277354 458 458 m_fullKeyboardAccessEnabled = parameters.fullKeyboardAccessEnabled; 459 459 460 #if HAVE(MOUSE_DEVICE_OBSERVATION) 461 m_hasMouseDevice = parameters.hasMouseDevice; 462 #endif 463 464 #if HAVE(STYLUS_DEVICE_OBSERVATION) 460 465 m_hasStylusDevice = parameters.hasStylusDevice; 466 #endif 461 467 462 468 for (auto& scheme : parameters.urlSchemesRegisteredAsEmptyDocument) … … 983 989 } 984 990 985 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)991 #if HAVE(MOUSE_DEVICE_OBSERVATION) 986 992 987 993 void WebProcess::setHasMouseDevice(bool hasMouseDevice) … … 995 1001 } 996 1002 997 #endif // HAVE(UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS) 1003 #endif // HAVE(MOUSE_DEVICE_OBSERVATION) 1004 1005 #if HAVE(STYLUS_DEVICE_OBSERVATION) 998 1006 999 1007 void WebProcess::setHasStylusDevice(bool hasStylusDevice) … … 1006 1014 Page::updateStyleForAllPagesAfterGlobalChangeInEnvironment(); 1007 1015 } 1016 1017 #endif // HAVE(STYLUS_DEVICE_OBSERVATION) 1008 1018 1009 1019 #if ENABLE(GAMEPAD) -
trunk/Source/WebKit/WebProcess/WebProcess.h
r276788 r277354 202 202 bool fullKeyboardAccessEnabled() const { return m_fullKeyboardAccessEnabled; } 203 203 204 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)204 #if HAVE(MOUSE_DEVICE_OBSERVATION) 205 205 bool hasMouseDevice() const { return m_hasMouseDevice; } 206 206 void setHasMouseDevice(bool); 207 207 #endif 208 208 209 #if HAVE(STYLUS_DEVICE_OBSERVATION) 209 210 bool hasStylusDevice() const { return m_hasStylusDevice; } 210 211 void setHasStylusDevice(bool); 212 #endif 211 213 212 214 WebFrame* webFrame(WebCore::FrameIdentifier) const; … … 615 617 bool m_fullKeyboardAccessEnabled { false }; 616 618 617 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)619 #if HAVE(MOUSE_DEVICE_OBSERVATION) 618 620 bool m_hasMouseDevice { false }; 619 621 #endif 620 622 623 #if HAVE(STYLUS_DEVICE_OBSERVATION) 621 624 bool m_hasStylusDevice { false }; 625 #endif 622 626 623 627 HashMap<WebCore::FrameIdentifier, WebFrame*> m_frameMap; -
trunk/Source/WebKit/WebProcess/WebProcess.messages.in
r275163 r277354 51 51 FullKeyboardAccessModeChanged(bool fullKeyboardAccessEnabled) 52 52 53 #if HAVE( UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)53 #if HAVE(MOUSE_DEVICE_OBSERVATION) 54 54 SetHasMouseDevice(bool hasMouseDevice) 55 55 #endif 56 56 57 #if HAVE(STYLUS_DEVICE_OBSERVATION) 57 58 SetHasStylusDevice(bool hasStylusDevice) 59 #endif 58 60 59 61 RefreshPlugins() -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r276852 r277354 393 393 } 394 394 395 #if HAVE(UIKIT_WITH_MOUSE_SUPPORT) && PLATFORM(IOS)396 m_hasMouseDevice = parameters.hasMouseDevice;397 #endif398 399 395 WebCore::setScreenProperties(parameters.screenProperties); 400 396 -
trunk/Tools/ChangeLog
r277353 r277354 1 2021-05-11 Devin Rousso <drousso@apple.com> 2 3 [macCatalyst] should have CSS `hover: hover` and `pointer: fine` 4 https://bugs.webkit.org/show_bug.cgi?id=225672 5 6 Reviewed by Tim Horton. 7 8 * TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm: 9 (TEST.iOSMouseSupport.MouseAlwaysConnected): 10 * TestWebKitAPI/Tests/WebKitCocoa/iOSStylusSupport.mm: 11 1 12 2021-05-11 Commit Queue <commit-queue@webkit.org> 2 13 -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSMouseSupport.mm
r276351 r277354 371 371 #endif // ENABLE(IOS_TOUCH_EVENTS) 372 372 373 #if HAVE(UIKIT_WITH_MOUSE_SUPPORT) 374 375 #if PLATFORM(IOS) 373 #if HAVE(MOUSE_DEVICE_OBSERVATION) 376 374 377 375 @interface WKMouseDeviceObserver … … 525 523 } 526 524 527 #endif // PLATFORM(IOS)525 #endif // HAVE(MOUSE_DEVICE_OBSERVATION) 528 526 529 527 #if PLATFORM(MACCATALYST) … … 535 533 [webView synchronouslyLoadHTMLString:@""]; 536 534 537 EXPECT_ FALSE([webView evaluateMediaQuery:@"hover"]);538 EXPECT_ TRUE([webView evaluateMediaQuery:@"hover: none"]);539 EXPECT_ FALSE([webView evaluateMediaQuery:@"hover: hover"]);535 EXPECT_TRUE([webView evaluateMediaQuery:@"hover"]); 536 EXPECT_FALSE([webView evaluateMediaQuery:@"hover: none"]); 537 EXPECT_TRUE([webView evaluateMediaQuery:@"hover: hover"]); 540 538 541 539 EXPECT_TRUE([webView evaluateMediaQuery:@"any-hover"]); … … 545 543 EXPECT_TRUE([webView evaluateMediaQuery:@"pointer"]); 546 544 EXPECT_FALSE([webView evaluateMediaQuery:@"pointer: none"]); 547 EXPECT_ TRUE([webView evaluateMediaQuery:@"pointer: coarse"]);548 EXPECT_ FALSE([webView evaluateMediaQuery:@"pointer: fine"]);545 EXPECT_FALSE([webView evaluateMediaQuery:@"pointer: coarse"]); 546 EXPECT_TRUE([webView evaluateMediaQuery:@"pointer: fine"]); 549 547 550 548 EXPECT_TRUE([webView evaluateMediaQuery:@"any-pointer"]); 551 549 EXPECT_FALSE([webView evaluateMediaQuery:@"any-pointer: none"]); 552 EXPECT_ TRUE([webView evaluateMediaQuery:@"any-pointer: coarse"]);550 EXPECT_FALSE([webView evaluateMediaQuery:@"any-pointer: coarse"]); 553 551 EXPECT_TRUE([webView evaluateMediaQuery:@"any-pointer: fine"]); 554 552 } … … 556 554 #endif // PLATFORM(MACCATALYST) 557 555 558 #endif // HAVE(UIKIT_WITH_MOUSE_SUPPORT)559 560 556 #endif // PLATFORM(IOS) || PLATFORM(MACCATALYST) -
trunk/Tools/TestWebKitAPI/Tests/WebKitCocoa/iOSStylusSupport.mm
r268384 r277354 35 35 #import <WebKit/WebKit.h> 36 36 37 #if HAVE( PENCILKIT_TEXT_INPUT)37 #if HAVE(STYLUS_DEVICE_OBSERVATION) 38 38 39 39 @interface WKStylusDeviceObserver … … 173 173 } 174 174 175 #endif // HAVE( PENCILKIT_TEXT_INPUT)175 #endif // HAVE(STYLUS_DEVICE_OBSERVATION) 176 176 177 177 #endif // PLATFORM(IOS)
Note:
See TracChangeset
for help on using the changeset viewer.