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

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

Issue 397993002: [WIP]Incorrect context menu is shown for tel: links Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor cleanup Created 6 years, 5 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/ChromeContextMenuItemDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
index 267c7c537a48bc228993d10a3a328a38406304a2..03325fa56f1c68a0ff0db179127a1845625f443a 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ChromeContextMenuItemDelegate.java
@@ -79,4 +79,24 @@ public interface ChromeContextMenuItemDelegate {
* Called when a search by image should be performed in a new tab.
*/
void onSearchByImageInNewTab();
+
+ /**
+ * Called when {@code number} has a tel: scheme and hence should be used for making a call.
+ * @param number Phone number to make a call
+ */
+ void onCall(String number);
+
+ /**
+ * Called when {@code number} has a tel: scheme and hence should be used for sending
+ * text message.
+ * @param number Phone number to send text message
+ */
+ void onSendTextMessage(String number);
+
+ /**
+ * Called when {@code number} has a tel: scheme and hence should be used for adding
+ * phone number to contacts.
+ * @param number Phone number to add to contacts
+ */
+ void onAddToContacts(String number);
}

Powered by Google App Engine
This is Rietveld 408576698