Chromium Code Reviews| 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 802aa75771fcf195b9c054b3cd6dacc693816535..34df129290ea65c9d8922250f93d35ed4560214c 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 |
| @@ -97,6 +97,30 @@ public interface ContextMenuItemDelegate { |
| */ |
| void onSaveToClipboard(String text, int clipboardType); |
| + /** |
| + * Returns whether or not an activity is available to handle intent to send email. |
| + * @return true if an activity is available to handle intent to send email. |
| + */ |
| + public boolean supportsSendEmailMessage(); |
| + |
| + /** |
| + * Called when the {@code url} should be parsed to send an email. |
| + * @param url The URL to be parsed to send an email. |
| + */ |
| + void onSendMessage(String url); |
|
Ted C
2017/01/04 18:40:08
let's rename this to onSendEmailMessage to make it
ltian
2017/01/04 20:46:58
Done.
|
| + |
| + /** |
| + * 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. |
| + */ |
| + public boolean supportsAddToContacts(); |
| + |
| + /** |
| + * Called when the {@code url} should be parsed to add to contacts. |
| + * @param url The URL to be parsed to add to contacts. |
| + */ |
| + void onAddToContacts(String url); |
| + |
| /** |
| * @return page url. |
| */ |