Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.contextmenu; | 5 package org.chromium.chrome.browser.contextmenu; |
| 6 | 6 |
| 7 import org.chromium.chrome.browser.tab.Tab; | 7 import org.chromium.chrome.browser.tab.Tab; |
| 8 import org.chromium.content.browser.ContentViewCore; | 8 import org.chromium.content.browser.ContentViewCore; |
| 9 import org.chromium.content_public.common.Referrer; | 9 import org.chromium.content_public.common.Referrer; |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 void onLoadOriginalImage(); | 91 void onLoadOriginalImage(); |
| 92 | 92 |
| 93 /** | 93 /** |
| 94 * Called when the {@code text} should be saved to the clipboard. | 94 * Called when the {@code text} should be saved to the clipboard. |
| 95 * @param text The text to save to the clipboard. | 95 * @param text The text to save to the clipboard. |
| 96 * @param clipboardType The type of data in {@code text}. | 96 * @param clipboardType The type of data in {@code text}. |
| 97 */ | 97 */ |
| 98 void onSaveToClipboard(String text, int clipboardType); | 98 void onSaveToClipboard(String text, int clipboardType); |
| 99 | 99 |
| 100 /** | 100 /** |
| 101 * Returns whether or not an activity is available to handle intent to call a phone number. | |
| 102 * @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.
| |
| 103 */ | |
| 104 public boolean supportsCall(); | |
| 105 | |
| 106 /** | |
| 107 * Called when the {@code url} should be parsed to call a phone number. | |
| 108 * @param url The URL to be parsed to call a phone number. | |
| 109 */ | |
| 110 void onCall(String url); | |
| 111 | |
| 112 /** | |
| 101 * Returns whether or not an activity is available to handle intent to send an email. | 113 * Returns whether or not an activity is available to handle intent to send an email. |
| 102 * @return true if an activity is available to handle intent to send an emai l. | 114 * @return true if an activity is available to handle intent to send an emai l. |
| 103 */ | 115 */ |
| 104 public boolean supportsSendEmailMessage(); | 116 public boolean supportsSendEmailMessage(); |
| 105 | 117 |
| 106 /** | 118 /** |
| 107 * Called when the {@code url} should be parsed to send an email. | 119 * Called when the {@code url} should be parsed to send an email. |
| 108 * @param url The URL to be parsed to send an email. | 120 * @param url The URL to be parsed to send an email. |
| 109 */ | 121 */ |
| 110 void onSendEmailMessage(String url); | 122 void onSendEmailMessage(String url); |
| 111 | 123 |
| 112 /** | 124 /** |
| 125 * Returns whether or not an activity is available to handle intent to send a text message. | |
| 126 * @return true if an activity is available to handle intent to send a text message. | |
| 127 */ | |
| 128 public boolean supportsSendTextMessage(); | |
| 129 | |
| 130 /** | |
| 131 * Called when the {@code url} should be parsed to send a text message. | |
| 132 * @param url The URL to be parsed to send a text message. | |
| 133 */ | |
| 134 void onSendTextMessage(String url); | |
| 135 | |
| 136 /** | |
| 113 * Returns whether or not an activity is available to handle intent to add c ontacts. | 137 * Returns whether or not an activity is available to handle intent to add c ontacts. |
| 114 * @return true if an activity is available to handle intent to add contacts . | 138 * @return true if an activity is available to handle intent to add contacts . |
| 115 */ | 139 */ |
| 116 public boolean supportsAddToContacts(); | 140 public boolean supportsAddToContacts(); |
| 117 | 141 |
| 118 /** | 142 /** |
| 119 * Called when the {@code url} should be parsed to add to contacts. | 143 * Called when the {@code url} should be parsed to add to contacts. |
| 120 * @param url The URL to be parsed to add to contacts. | 144 * @param url The URL to be parsed to add to contacts. |
| 121 */ | 145 */ |
| 122 void onAddToContacts(String url); | 146 void onAddToContacts(String url); |
| 123 | 147 |
| 124 /** | 148 /** |
| 125 * @return page url. | 149 * @return page url. |
| 126 */ | 150 */ |
| 127 String getPageUrl(); | 151 String getPageUrl(); |
| 128 | 152 |
| 129 /** | 153 /** |
| 130 * Called when a link should be opened in the main Chrome browser. | 154 * Called when a link should be opened in the main Chrome browser. |
| 131 * @param linkUrl URL that should be opened. | 155 * @param linkUrl URL that should be opened. |
| 132 * @param pageUrl URL of the current page. | 156 * @param pageUrl URL of the current page. |
| 133 */ | 157 */ |
| 134 void onOpenInChrome(String linkUrl, String pageUrl); | 158 void onOpenInChrome(String linkUrl, String pageUrl); |
| 135 | 159 |
| 136 /** | 160 /** |
| 137 * Called to queue a task to sometime later make an offline page for this ur l. | 161 * Called to queue a task to sometime later make an offline page for this ur l. |
| 138 */ | 162 */ |
| 139 void onSavePageLater(String linkUrl); | 163 void onSavePageLater(String linkUrl); |
| 140 } | 164 } |
| OLD | NEW |