| 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.graphics.Bitmap; | 7 import android.graphics.Bitmap; |
| 8 import android.graphics.Rect; | 8 import android.graphics.Rect; |
| 9 import android.os.Handler; | 9 import android.os.Handler; |
| 10 import android.os.Parcelable; | 10 import android.os.Parcelable; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 * @return Whether this WebContents is loading and and the load is to a diff
erent top-level | 71 * @return Whether this WebContents is loading and and the load is to a diff
erent top-level |
| 72 * document (rather than being a navigation within the same document
). | 72 * document (rather than being a navigation within the same document
). |
| 73 */ | 73 */ |
| 74 boolean isLoadingToDifferentDocument(); | 74 boolean isLoadingToDifferentDocument(); |
| 75 | 75 |
| 76 /** | 76 /** |
| 77 * Stop any pending navigation. | 77 * Stop any pending navigation. |
| 78 */ | 78 */ |
| 79 void stop(); | 79 void stop(); |
| 80 | 80 |
| 81 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 82 /** | 81 /** |
| 83 * Cut the selected content. | 82 * Cut the selected content. |
| 84 */ | 83 */ |
| 85 void cut(); | 84 void cut(); |
| 86 | 85 |
| 87 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 88 /** | 86 /** |
| 89 * Copy the selected content. | 87 * Copy the selected content. |
| 90 */ | 88 */ |
| 91 void copy(); | 89 void copy(); |
| 92 | 90 |
| 93 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 94 /** | 91 /** |
| 95 * Paste content from the clipboard. | 92 * Paste content from the clipboard. |
| 96 */ | 93 */ |
| 97 void paste(); | 94 void paste(); |
| 98 | 95 |
| 99 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 100 /** | 96 /** |
| 101 * Replace the selected text with the {@code word}. | 97 * Replace the selected text with the {@code word}. |
| 102 */ | 98 */ |
| 103 void replace(String word); | 99 void replace(String word); |
| 104 | 100 |
| 105 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 106 /** | 101 /** |
| 107 * Select all content. | 102 * Select all content. |
| 108 */ | 103 */ |
| 109 void selectAll(); | 104 void selectAll(); |
| 110 | 105 |
| 111 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 112 /** | 106 /** |
| 113 * Clear the selection. This includes the cursor which is a zero-sized selec
tion, and keyboard | 107 * Clear the selection. This includes the cursor which is a zero-sized selec
tion, and keyboard |
| 114 * will be hidden as a result. | 108 * will be hidden as a result. |
| 115 */ | 109 */ |
| 116 void unselect(); | 110 void unselect(); |
| 117 | 111 |
| 118 /** | 112 /** |
| 119 * To be called when the ContentView is hidden. | 113 * To be called when the ContentView is hidden. |
| 120 */ | 114 */ |
| 121 void onHide(); | 115 void onHide(); |
| 122 | 116 |
| 123 /** | 117 /** |
| 124 * To be called when the ContentView is shown. | 118 * To be called when the ContentView is shown. |
| 125 */ | 119 */ |
| 126 void onShow(); | 120 void onShow(); |
| 127 | 121 |
| 128 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 129 /** | 122 /** |
| 130 * Removes handles used in text selection. | 123 * Removes handles used in text selection. |
| 131 */ | 124 */ |
| 132 void dismissTextHandles(); | 125 void dismissTextHandles(); |
| 133 | 126 |
| 134 // TODO (amaralp): Only used in content. Should be moved out of public inter
face. | |
| 135 /** | |
| 136 * Shows paste popup menu at point | |
| 137 */ | |
| 138 void showContextMenuAtPoint(int x, int y); | |
| 139 | |
| 140 /** | 127 /** |
| 141 * Suspends all media players for this WebContents. Note: There may still | 128 * Suspends all media players for this WebContents. Note: There may still |
| 142 * be activities generating audio, so setAudioMuted() should also be called | 129 * be activities generating audio, so setAudioMuted() should also be called |
| 143 * to ensure all audible activity is silenced. | 130 * to ensure all audible activity is silenced. |
| 144 */ | 131 */ |
| 145 void suspendAllMediaPlayers(); | 132 void suspendAllMediaPlayers(); |
| 146 | 133 |
| 147 /** | 134 /** |
| 148 * Sets whether all audio output from this WebContents is muted. | 135 * Sets whether all audio output from this WebContents is muted. |
| 149 * | 136 * |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 public void simulateRendererKilledForTesting(boolean wasOomProtected); | 380 public void simulateRendererKilledForTesting(boolean wasOomProtected); |
| 394 | 381 |
| 395 /** | 382 /** |
| 396 * Notifies the WebContents about the new persistent video status. It should
be called whenever | 383 * Notifies the WebContents about the new persistent video status. It should
be called whenever |
| 397 * the value changes. | 384 * the value changes. |
| 398 * | 385 * |
| 399 * @param value Whether there is a persistent video associated with this Web
Contents. | 386 * @param value Whether there is a persistent video associated with this Web
Contents. |
| 400 */ | 387 */ |
| 401 public void setHasPersistentVideo(boolean value); | 388 public void setHasPersistentVideo(boolean value); |
| 402 } | 389 } |
| OLD | NEW |