Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java

Issue 255793003: Toast notifying the user that we copied to clipboard. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | content/public/android/java/strings/android_content_strings.grd » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java b/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java
index c140cb60094bfc16871aa2bc992c4da05bedfe02..5672025cecd60f738a1226d7a6fb39e0827230e5 100644
--- a/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java
+++ b/content/public/android/java/src/org/chromium/content/browser/SelectActionModeCallback.java
@@ -9,6 +9,7 @@ import android.content.Context;
import android.view.ActionMode;
import android.view.Menu;
import android.view.MenuItem;
+import android.widget.Toast;
import org.chromium.content.R;
@@ -136,8 +137,14 @@ public class SelectActionModeCallback implements ActionMode.Callback {
if (id == R.id.select_action_menu_select_all) {
mActionHandler.selectAll();
} else if (id == R.id.select_action_menu_cut) {
+ //toast message for cut/copy
+ Toast.makeText(mContext, R.string.copy_to_clipboard_success_message,
+ Toast.LENGTH_SHORT).show();
mActionHandler.cut();
} else if (id == R.id.select_action_menu_copy) {
+ //toast message for cut/copy
+ Toast.makeText(mContext, R.string.copy_to_clipboard_success_message,
+ Toast.LENGTH_SHORT).show();
mActionHandler.copy();
mode.finish();
} else if (id == R.id.select_action_menu_paste) {
« no previous file with comments | « AUTHORS ('k') | content/public/android/java/strings/android_content_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698