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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java

Issue 2619493006: [Android] Chagne items shown in context menu for tel link (Closed)
Patch Set: Created 3 years, 11 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
Index: chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
index 2c87307c54ca441065578d730ffcec75b7b18c02..ee9cd0d1e74b8988e5fe6049eed876b0f001c66c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItemDelegate.java
@@ -98,6 +98,18 @@ public interface ContextMenuItemDelegate {
void onSaveToClipboard(String text, int clipboardType);
/**
+ * Returns whether or not an activity is available to handle intent to call a phone number.
+ * @return true if an activity is available to handle intent to call a phone number.
Ted C 2017/01/09 21:45:34 For simple things like this, it is fine to drop ei
ltian 2017/01/10 04:45:06 Done.
+ */
+ public boolean supportsCall();
+
+ /**
+ * Called when the {@code url} should be parsed to call a phone number.
+ * @param url The URL to be parsed to call a phone number.
+ */
+ void onCall(String url);
+
+ /**
* Returns whether or not an activity is available to handle intent to send an email.
* @return true if an activity is available to handle intent to send an email.
*/
@@ -110,6 +122,18 @@ public interface ContextMenuItemDelegate {
void onSendEmailMessage(String url);
/**
+ * Returns whether or not an activity is available to handle intent to send a text message.
+ * @return true if an activity is available to handle intent to send a text message.
+ */
+ public boolean supportsSendTextMessage();
+
+ /**
+ * Called when the {@code url} should be parsed to send a text message.
+ * @param url The URL to be parsed to send a text message.
+ */
+ void onSendTextMessage(String url);
+
+ /**
* Returns whether or not an activity is available to handle intent to add contacts.
* @return true if an activity is available to handle intent to add contacts.
*/

Powered by Google App Engine
This is Rietveld 408576698