| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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.content_public.browser; | 5 package org.chromium.content_public.browser; |
| 6 | 6 |
| 7 import android.os.Handler; | 7 import android.os.Handler; |
| 8 import android.os.Parcelable; | 8 import android.os.Parcelable; |
| 9 | 9 |
| 10 import org.chromium.base.VisibleForTesting; | 10 import org.chromium.base.VisibleForTesting; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 * @return Whether this WebContents is loading and and the load is to a diff
erent top-level | 81 * @return Whether this WebContents is loading and and the load is to a diff
erent top-level |
| 82 * document (rather than being a navigation within the same document
). | 82 * document (rather than being a navigation within the same document
). |
| 83 */ | 83 */ |
| 84 boolean isLoadingToDifferentDocument(); | 84 boolean isLoadingToDifferentDocument(); |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * Stop any pending navigation. | 87 * Stop any pending navigation. |
| 88 */ | 88 */ |
| 89 void stop(); | 89 void stop(); |
| 90 | 90 |
| 91 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 91 /** | 92 /** |
| 92 * Cut the selected content. | 93 * Cut the selected content. |
| 93 */ | 94 */ |
| 94 void cut(); | 95 void cut(); |
| 95 | 96 |
| 97 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 96 /** | 98 /** |
| 97 * Copy the selected content. | 99 * Copy the selected content. |
| 98 */ | 100 */ |
| 99 void copy(); | 101 void copy(); |
| 100 | 102 |
| 103 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 101 /** | 104 /** |
| 102 * Paste content from the clipboard. | 105 * Paste content from the clipboard. |
| 103 */ | 106 */ |
| 104 void paste(); | 107 void paste(); |
| 105 | 108 |
| 109 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 106 /** | 110 /** |
| 107 * Replace the selected text with the {@code word}. | 111 * Replace the selected text with the {@code word}. |
| 108 */ | 112 */ |
| 109 void replace(String word); | 113 void replace(String word); |
| 110 | 114 |
| 115 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 111 /** | 116 /** |
| 112 * Select all content. | 117 * Select all content. |
| 113 */ | 118 */ |
| 114 void selectAll(); | 119 void selectAll(); |
| 115 | 120 |
| 121 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 116 /** | 122 /** |
| 117 * Collapse the selection to the end of selection range. | 123 * Collapse the selection to the end of selection range. |
| 118 */ | 124 */ |
| 119 void collapseSelection(); | 125 void collapseSelection(); |
| 120 | 126 |
| 121 /** | 127 /** |
| 122 * To be called when the ContentView is hidden. | 128 * To be called when the ContentView is hidden. |
| 123 */ | 129 */ |
| 124 void onHide(); | 130 void onHide(); |
| 125 | 131 |
| 126 /** | 132 /** |
| 127 * To be called when the ContentView is shown. | 133 * To be called when the ContentView is shown. |
| 128 */ | 134 */ |
| 129 void onShow(); | 135 void onShow(); |
| 130 | 136 |
| 137 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 131 /** | 138 /** |
| 132 * Removes handles used in text selection. | 139 * Removes handles used in text selection. |
| 133 */ | 140 */ |
| 134 void dismissTextHandles(); | 141 void dismissTextHandles(); |
| 135 | 142 |
| 143 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. |
| 144 /** |
| 145 * Shows paste popup menu at point |
| 146 */ |
| 147 void showContextMenuAtPoint(int x, int y); |
| 148 |
| 136 /** | 149 /** |
| 137 * Suspends all media players for this WebContents. Note: There may still | 150 * Suspends all media players for this WebContents. Note: There may still |
| 138 * be activities generating audio, so setAudioMuted() should also be called | 151 * be activities generating audio, so setAudioMuted() should also be called |
| 139 * to ensure all audible activity is silenced. | 152 * to ensure all audible activity is silenced. |
| 140 */ | 153 */ |
| 141 void suspendAllMediaPlayers(); | 154 void suspendAllMediaPlayers(); |
| 142 | 155 |
| 143 /** | 156 /** |
| 144 * Sets whether all audio output from this WebContents is muted. | 157 * Sets whether all audio output from this WebContents is muted. |
| 145 * | 158 * |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 public void simulateRendererKilledForTesting(boolean wasOomProtected); | 416 public void simulateRendererKilledForTesting(boolean wasOomProtected); |
| 404 | 417 |
| 405 /** | 418 /** |
| 406 * Notifies the WebContents about the new persistent video status. It should
be called whenever | 419 * Notifies the WebContents about the new persistent video status. It should
be called whenever |
| 407 * the value changes. | 420 * the value changes. |
| 408 * | 421 * |
| 409 * @param value Whether there is a persistent video associated with this Web
Contents. | 422 * @param value Whether there is a persistent video associated with this Web
Contents. |
| 410 */ | 423 */ |
| 411 public void setHasPersistentVideo(boolean value); | 424 public void setHasPersistentVideo(boolean value); |
| 412 } | 425 } |
| OLD | NEW |