| 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.Rect; |
| 7 import android.os.Handler; | 8 import android.os.Handler; |
| 8 import android.os.Parcelable; | 9 import android.os.Parcelable; |
| 9 | 10 |
| 10 import org.chromium.base.VisibleForTesting; | 11 import org.chromium.base.VisibleForTesting; |
| 11 import org.chromium.ui.OverscrollRefreshHandler; | 12 import org.chromium.ui.OverscrollRefreshHandler; |
| 12 import org.chromium.ui.base.EventForwarder; | 13 import org.chromium.ui.base.EventForwarder; |
| 13 import org.chromium.ui.base.WindowAndroid; | 14 import org.chromium.ui.base.WindowAndroid; |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * The WebContents Java wrapper to allow communicating with the native WebConten
ts object. | 17 * The WebContents Java wrapper to allow communicating with the native WebConten
ts object. |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 * {@link android.graphics.Color#TRANSPARENT} means there was no theme color
specified. | 318 * {@link android.graphics.Color#TRANSPARENT} means there was no theme color
specified. |
| 318 * | 319 * |
| 319 * @return The theme color for the content as set by the theme-color meta ta
g. | 320 * @return The theme color for the content as set by the theme-color meta ta
g. |
| 320 */ | 321 */ |
| 321 int getThemeColor(); | 322 int getThemeColor(); |
| 322 | 323 |
| 323 /** | 324 /** |
| 324 * Initiate extraction of text, HTML, and other information for clipping pup
oses (smart clip) | 325 * Initiate extraction of text, HTML, and other information for clipping pup
oses (smart clip) |
| 325 * from the rectangle area defined by starting positions (x and y), and widt
h and height. | 326 * from the rectangle area defined by starting positions (x and y), and widt
h and height. |
| 326 */ | 327 */ |
| 327 void requestSmartClipExtract(int x, int y, int width, int height); | 328 void requestSmartClipExtract(Rect originalRect, int x, int y, int width, int
height); |
| 328 | 329 |
| 329 /** | 330 /** |
| 330 * Register a handler to handle smart clip data once extraction is done. | 331 * Register a handler to handle smart clip data once extraction is done. |
| 331 */ | 332 */ |
| 332 void setSmartClipResultHandler(final Handler smartClipHandler); | 333 void setSmartClipResultHandler(final Handler smartClipHandler); |
| 333 | 334 |
| 334 /** | 335 /** |
| 335 * Requests a snapshop of accessibility tree. The result is provided asynchr
onously | 336 * Requests a snapshop of accessibility tree. The result is provided asynchr
onously |
| 336 * using the callback | 337 * using the callback |
| 337 * @param callback The callback to be called when the snapshot is ready. The
callback | 338 * @param callback The callback to be called when the snapshot is ready. The
callback |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 public void simulateRendererKilledForTesting(boolean wasOomProtected); | 417 public void simulateRendererKilledForTesting(boolean wasOomProtected); |
| 417 | 418 |
| 418 /** | 419 /** |
| 419 * Notifies the WebContents about the new persistent video status. It should
be called whenever | 420 * Notifies the WebContents about the new persistent video status. It should
be called whenever |
| 420 * the value changes. | 421 * the value changes. |
| 421 * | 422 * |
| 422 * @param value Whether there is a persistent video associated with this Web
Contents. | 423 * @param value Whether there is a persistent video associated with this Web
Contents. |
| 423 */ | 424 */ |
| 424 public void setHasPersistentVideo(boolean value); | 425 public void setHasPersistentVideo(boolean value); |
| 425 } | 426 } |
| OLD | NEW |