[iOS] Improve UI command names

This change updates UI command names across the codebase to conform to
Chrome iOS best practices, enhancing code clarity and consistency.
Command names now use clear imperative verbs that accurately describe
their intended UI actions (e.g., -showShareSheet and -addBookmarks:).
Additionally, for some commands, the redundant -maybe prefix has been
removed, as UI commands are inherently conditional.

ActivityServiceCommands (activity_service_commands.h)

    Old: -sharePage
    New: -showShareSheet

    Old: -shareChromeApp
    New: -showShareSheetForChromeApp

    Old: -shareHighlight:
    New: -showShareSheetForHighlight:

    Old: -shareURLFromContextMenu:
    New: -showShareSheetForURL:

BookmarksCommands (bookmarks_commands.h)

    Old: -bookmarkWithFolderChooser:
    New: -addBookmarksAndShowFolderChooser:

    Old: -bookmarkWithWebState:
    New: -addBookmarkForWebState:

    Old: -bulkCreateBookmarksWithURLs:
    New: -addBookmarks:

    Old: -createOrEditBookmarkWithURL:
    New: -addOrEditBookmark:

    Old: -openToExternalBookmark:
    New: -showBookmarkInBookmarksUI:

ContextualPanelEntrypointCommands
(contextual_panel_entrypoint_commands.h)

    Old: -contextualPanelEntrypointIPHWasDismissed
    New: -notifyContextualPanelEntrypointIPHDismissed

ContextualPanelEntrypointIPHCommands
(contextual_panel_entrypoint_iph_commands.h)

    Old: -maybeShowContextualPanelEntrypointIPHWithConfig:
    New: -showContextualPanelEntrypointIPHWithConfig:

    Old: -dismissContextualPanelEntrypointIPHAnimated:(BOOL)animated
    New: -dismissContextualPanelEntrypointIPH:(BOOL)animated

PromosManagerCommands (promos_manager_commands.h)

    Old: -maybeDisplayPromo
    New: -displayPromo

    Old: -requestAppStoreReview
    New: -showAppStoreReviewPrompt

    Old: -maybeDisplayDefaultBrowserPromo
    New: -displayDefaultBrowserPromo

QRGenerationCommands (qr_generation_commands.h)

    Old: -generateQRCode:
    New: -showQRCode:

Fixed: 394284386
Change-Id: I8b7513b7592dd28594a44a3452425612bd86f693
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6229349
Reviewed-by: Robbie Gibson <rkgibson@google.com>
Reviewed-by: Nicolas MacBeth <nicolasmacbeth@google.com>
Reviewed-by: Mark Cogan <marq@chromium.org>
Commit-Queue: Benjamin Williams <bwwilliams@google.com>
Cr-Commit-Position: refs/heads/main@{#1416360}
NOKEYCHECK=True
GitOrigin-RevId: 94a5598aaa8ca10ef442128c26721fc2078889ac
36 files changed
tree: ca6beb70db2e76964059919f517083fd1f71ed46
  1. build/
  2. chrome/
  3. components/
  4. google_internal/
  5. intents/
  6. net/
  7. public/
  8. testing/
  9. third_party/
  10. tools/
  11. web/
  12. web_view/
  13. .swift-format
  14. BUILD.gn
  15. COMMON_METADATA
  16. DEPS
  17. DIR_METADATA
  18. features.gni
  19. OWNERS
  20. PRESUBMIT.py
  21. PRESUBMIT_test.py
  22. README.md
README.md

This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.