Commit f63219e0 authored by Yi Su's avatar Yi Su Committed by Commit Bot

feature flag for copying image

Add feature flag for copying image to system clipboard.

Bug: 163201
Cq-Include-Trybots: luci.chromium.try:ios-simulator-full-configs;master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: I8110f65f739891b01b82b866215b122dd93ac0aa
Reviewed-on: https://chromium-review.googlesource.com/1112661
Commit-Queue: Yi Su <mrsuyi@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570085}
parent ffff67f6
......@@ -372,6 +372,9 @@ const flags_ui::FeatureEntry kFeatureEntries[] = {
{"web-frame-messaging", flag_descriptions::kWebFrameMessagingName,
flag_descriptions::kWebFrameMessagingDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(web::features::kWebFrameMessaging)},
{"copy-image", flag_descriptions::kCopyImageName,
flag_descriptions::kCopyImageDescription, flags_ui::kOsIos,
FEATURE_VALUE_TYPE(kCopyImage)},
};
// Add all switches from experimental flags to |command_line|.
......
......@@ -126,6 +126,10 @@ const char kContextMenuElementPostMessageDescription[] =
"webkit postMessage call instead of directly returned from the JavaScript "
"function.";
const char kCopyImageName[] = "Copy Image";
const char kCopyImageDescription[] =
"Enable copying image to system pasteboard via context menu.";
const char kDragAndDropName[] = "Drag and Drop";
const char kDragAndDropDescription[] = "Enable support for drag and drop.";
......
......@@ -101,6 +101,10 @@ extern const char kContextualSearchDescription[];
extern const char kContextMenuElementPostMessageName[];
extern const char kContextMenuElementPostMessageDescription[];
// Title and description for the flag to enable copying image.
extern const char kCopyImageName[];
extern const char kCopyImageDescription[];
// Title and description for the flag to enable drag and drop.
extern const char kDragAndDropName[];
extern const char kDragAndDropDescription[];
......
......@@ -21,3 +21,5 @@ const base::Feature kInfobarsUIReboot{"InfobarsUIReboot",
const base::Feature kFirstResponderKeyWindow{"FirstResponderKeyWindow",
base::FEATURE_ENABLED_BY_DEFAULT};
const base::Feature kCopyImage{"CopyImage", base::FEATURE_DISABLED_BY_DEFAULT};
......@@ -36,4 +36,7 @@ extern const base::Feature kInfobarsUIReboot;
// responder.
extern const base::Feature kFirstResponderKeyWindow;
// Feature to copy image to system pasteboard via context menu.
extern const base::Feature kCopyImage;
#endif // IOS_CHROME_BROWSER_UI_UI_FEATURE_FLAGS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment