Commit 72fb42bb authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

capture mode: Remove "Share" and "Float on Top" from notification.

We'll not have them in M88.

Bug: 1115153
Change-Id: Ia7d9e59343a1e7eb0131c3e18cda76ddeeb95f8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380581Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802474}
parent 2ebcfbed
...@@ -2695,15 +2695,9 @@ Here are some things you can try to get started. ...@@ -2695,15 +2695,9 @@ Here are some things you can try to get started.
<message name="IDS_ASH_SCREEN_CAPTURE_MESSAGE" desc="The message shows in the screenshot or screen recording notification."> <message name="IDS_ASH_SCREEN_CAPTURE_MESSAGE" desc="The message shows in the screenshot or screen recording notification.">
Show in folder Show in folder
</message> </message>
<message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_SHARE" desc="The share button label for the screen capture notifiction.">
Share
</message>
<message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_EDIT" desc="The edit button label for the screen catpure notification."> <message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_EDIT" desc="The edit button label for the screen catpure notification.">
Edit Edit
</message> </message>
<message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_FLOAT_ON_TOP" desc="The float-on-top button label for the screen capture notification.">
Float on top
</message>
<message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_DELETE" desc="The delete button label for the screen capture notificaiton."> <message name="IDS_ASH_SCREEN_CAPTURE_BUTTON_DELETE" desc="The delete button label for the screen capture notificaiton.">
Delete Delete
</message> </message>
......
ac998dc1c50f46552c283f30c1d784b214f3f799
\ No newline at end of file
ac998dc1c50f46552c283f30c1d784b214f3f799
\ No newline at end of file
...@@ -33,9 +33,7 @@ const char kScreenCaptureNotifierId[] = "ash.capture_mode_controller"; ...@@ -33,9 +33,7 @@ const char kScreenCaptureNotifierId[] = "ash.capture_mode_controller";
// The notification button index. // The notification button index.
enum NotificationButtonIndex { enum NotificationButtonIndex {
BUTTON_SHARE = 0, BUTTON_EDIT = 0,
BUTTON_EDIT,
BUTTON_FLOAT_ON_TOP,
BUTTON_DELETE, BUTTON_DELETE,
}; };
...@@ -111,15 +109,9 @@ void CaptureModeController::ShowNotification( ...@@ -111,15 +109,9 @@ void CaptureModeController::ShowNotification(
l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_MESSAGE); l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_MESSAGE);
message_center::RichNotificationData optional_field; message_center::RichNotificationData optional_field;
message_center::ButtonInfo share_button(
l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_SHARE));
optional_field.buttons.push_back(share_button);
message_center::ButtonInfo edit_button( message_center::ButtonInfo edit_button(
l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_EDIT)); l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_EDIT));
optional_field.buttons.push_back(edit_button); optional_field.buttons.push_back(edit_button);
message_center::ButtonInfo float_on_top_button(
l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_FLOAT_ON_TOP));
optional_field.buttons.push_back(float_on_top_button);
message_center::ButtonInfo delete_button( message_center::ButtonInfo delete_button(
l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_DELETE)); l10n_util::GetStringUTF16(IDS_ASH_SCREEN_CAPTURE_BUTTON_DELETE));
optional_field.buttons.push_back(delete_button); optional_field.buttons.push_back(delete_button);
...@@ -166,12 +158,8 @@ void CaptureModeController::HandleNotificationClicked( ...@@ -166,12 +158,8 @@ void CaptureModeController::HandleNotificationClicked(
// TODO: fill in here. // TODO: fill in here.
switch (button_index.value()) { switch (button_index.value()) {
case NotificationButtonIndex::BUTTON_SHARE:
break;
case NotificationButtonIndex::BUTTON_EDIT: case NotificationButtonIndex::BUTTON_EDIT:
break; break;
case NotificationButtonIndex::BUTTON_FLOAT_ON_TOP:
break;
case NotificationButtonIndex::BUTTON_DELETE: case NotificationButtonIndex::BUTTON_DELETE:
break; break;
} }
......
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