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.Parcelable; | 9 import android.os.Parcelable; |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 */ | 102 */ |
103 void selectAll(); | 103 void selectAll(); |
104 | 104 |
105 /** | 105 /** |
106 * Clear the selection. This includes the cursor which is a zero-sized selec
tion, and keyboard | 106 * Clear the selection. This includes the cursor which is a zero-sized selec
tion, and keyboard |
107 * will be hidden as a result. | 107 * will be hidden as a result. |
108 */ | 108 */ |
109 void unselect(); | 109 void unselect(); |
110 | 110 |
111 /** | 111 /** |
112 * Inserts css into main frame's document. | |
113 */ | |
114 void insertCSS(String css); | |
115 | |
116 /** | |
117 * To be called when the ContentView is hidden. | 112 * To be called when the ContentView is hidden. |
118 */ | 113 */ |
119 void onHide(); | 114 void onHide(); |
120 | 115 |
121 /** | 116 /** |
122 * To be called when the ContentView is shown. | 117 * To be called when the ContentView is shown. |
123 */ | 118 */ |
124 void onShow(); | 119 void onShow(); |
125 | 120 |
126 /** | 121 /** |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 * 0 means unlimited. | 370 * 0 means unlimited. |
376 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in | 371 * @param bypassCache If true, {@link url} is requested from the server even
if it is present in |
377 * the browser cache. | 372 * the browser cache. |
378 * @param callback The callback which will be called when the bitmaps are re
ceived from the | 373 * @param callback The callback which will be called when the bitmaps are re
ceived from the |
379 * renderer. | 374 * renderer. |
380 * @return The unique id of the download request | 375 * @return The unique id of the download request |
381 */ | 376 */ |
382 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, | 377 public int downloadImage(String url, boolean isFavicon, int maxBitmapSize, |
383 boolean bypassCache, ImageDownloadCallback callback); | 378 boolean bypassCache, ImageDownloadCallback callback); |
384 } | 379 } |
OLD | NEW |