| 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.browser; | 5 package org.chromium.content.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.util.SparseArray; | 9 import android.util.SparseArray; |
| 10 | 10 |
| 11 import org.chromium.base.CalledByNative; | |
| 12 import org.chromium.base.JNINamespace; | |
| 13 import org.chromium.base.ThreadUtils; | 11 import org.chromium.base.ThreadUtils; |
| 12 import org.chromium.base.annotations.CalledByNative; |
| 13 import org.chromium.base.annotations.JNINamespace; |
| 14 import org.chromium.content_public.browser.readback_types.ReadbackResponse; | 14 import org.chromium.content_public.browser.readback_types.ReadbackResponse; |
| 15 import org.chromium.ui.base.WindowAndroid; | 15 import org.chromium.ui.base.WindowAndroid; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * A class for reading back content. | 18 * A class for reading back content. |
| 19 */ | 19 */ |
| 20 @JNINamespace("content") | 20 @JNINamespace("content") |
| 21 public abstract class ContentReadbackHandler { | 21 public abstract class ContentReadbackHandler { |
| 22 /** | 22 /** |
| 23 * A callback interface for content readback into a bitmap. | 23 * A callback interface for content readback into a bitmap. |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 protected abstract boolean readyForReadback(); | 129 protected abstract boolean readyForReadback(); |
| 130 | 130 |
| 131 private native long nativeInit(); | 131 private native long nativeInit(); |
| 132 private native void nativeDestroy(long nativeContentReadbackHandler); | 132 private native void nativeDestroy(long nativeContentReadbackHandler); |
| 133 private native void nativeGetContentBitmap(long nativeContentReadbackHandler
, int readbackId, | 133 private native void nativeGetContentBitmap(long nativeContentReadbackHandler
, int readbackId, |
| 134 float scale, Bitmap.Config config, float x, float y, float width, fl
oat height, | 134 float scale, Bitmap.Config config, float x, float y, float width, fl
oat height, |
| 135 Object contentViewCore); | 135 Object contentViewCore); |
| 136 private native void nativeGetCompositorBitmap(long nativeContentReadbackHand
ler, | 136 private native void nativeGetCompositorBitmap(long nativeContentReadbackHand
ler, |
| 137 int readbackId, long nativeWindowAndroid); | 137 int readbackId, long nativeWindowAndroid); |
| 138 } | 138 } |
| OLD | NEW |