[iOS] Introduce ShellColorChooserIOS
This CL enables WebContentsDelegate::OpenColorChooser
on iOS to create a color chooser with UI components supported
on iOS framework and introduces ShellColorChooserIOS that
would have UI controller and coordinator.
Chromium uses mainly ColorChooserPopupUIController for all
platforms except Android.
With this CL, if PagePopupEnabled() is false, ContentShell on
iOS calls the delegate method to create a color chooser, not
using ColorChooserPopupUIController.
Bug: 1467802
Change-Id: I0acd680a78167babff3b2ac1d32bf866149ae8e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4721125
Reviewed-by: Avi Drissman <[email protected]>
Commit-Queue: Julie Jeongeun Kim <[email protected]>
Reviewed-by: Dave Tapuska <[email protected]>
Reviewed-by: Mason Freed <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1176406}
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 31a81680..f80a1a8 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -1087,13 +1087,13 @@
// Returns false if the request is no longer valid, otherwise true.
virtual bool GotResponseToKeyboardLockRequest(bool allowed) = 0;
-#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_MAC)
+#if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_APPLE)
// Called when the user has selected a color in the color chooser.
virtual void DidChooseColorInColorChooser(SkColor color) = 0;
// Called when the color chooser has ended.
virtual void DidEndColorChooser() = 0;
-#endif // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_MAC)
+#endif
// Returns true if the location bar should be focused by default rather than
// the page contents. The view calls this function when the tab is focused