Title: [292448] trunk/Source/WebKit
Revision
292448
Author
[email protected]
Date
2022-04-05 21:07:25 -0700 (Tue, 05 Apr 2022)

Log Message

[iOS] Update the context menu item glyph for visual look up
https://bugs.webkit.org/show_bug.cgi?id=238853

Reviewed by Devin Rousso.

Switch from `info.circle` to the (private) symbol `info.circle.and.sparkles`, for the icon next to the Look Up
item when long pressing images that have visual look up results.

* Platform/spi/ios/UIKitSPI.h:
* UIProcess/API/Cocoa/_WKElementAction.mm:
(+[_WKElementAction imageForElementActionType:]):

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (292447 => 292448)


--- trunk/Source/WebKit/ChangeLog	2022-04-06 03:41:00 UTC (rev 292447)
+++ trunk/Source/WebKit/ChangeLog	2022-04-06 04:07:25 UTC (rev 292448)
@@ -1,3 +1,17 @@
+2022-04-05  Wenson Hsieh  <[email protected]>
+
+        [iOS] Update the context menu item glyph for visual look up
+        https://bugs.webkit.org/show_bug.cgi?id=238853
+
+        Reviewed by Devin Rousso.
+
+        Switch from `info.circle` to the (private) symbol `info.circle.and.sparkles`, for the icon next to the Look Up
+        item when long pressing images that have visual look up results.
+
+        * Platform/spi/ios/UIKitSPI.h:
+        * UIProcess/API/Cocoa/_WKElementAction.mm:
+        (+[_WKElementAction imageForElementActionType:]):
+
 2022-04-05  Stephan Szabo  <[email protected]>
 
         [PlayStation[ Fix build break after r292408

Modified: trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h (292447 => 292448)


--- trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2022-04-06 03:41:00 UTC (rev 292447)
+++ trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h	2022-04-06 04:07:25 UTC (rev 292448)
@@ -378,6 +378,7 @@
 @interface UIImage ()
 - (id)initWithCGImage:(CGImageRef)CGImage imageOrientation:(UIImageOrientation)imageOrientation;
 - (UIImage *)_flatImageWithColor:(UIColor *)color;
++ (UIImage *)_systemImageNamed:(NSString *)name;
 @end
 
 @interface UIKeyCommand ()

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm (292447 => 292448)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm	2022-04-06 03:41:00 UTC (rev 292447)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/_WKElementAction.mm	2022-04-06 04:07:25 UTC (rev 292448)
@@ -263,7 +263,7 @@
 #endif
     case _WKElementActionTypeRevealImage:
 #if ENABLE(IMAGE_ANALYSIS)
-        return [UIImage systemImageNamed:@"info.circle"];
+        return [UIImage _systemImageNamed:@"info.circle.and.sparkles"];
 #else
         return nil;
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to