OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/browser/web_contents/web_contents_android.h" | 5 #include "content/browser/web_contents/web_contents_android.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
10 #include "base/android/jni_array.h" | 10 #include "base/android/jni_array.h" |
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 JNIEnv* env = base::android::AttachCurrentThread(); | 681 JNIEnv* env = base::android::AttachCurrentThread(); |
682 ScopedJavaLocalRef<jobject> java_bitmap; | 682 ScopedJavaLocalRef<jobject> java_bitmap; |
683 if (response == READBACK_SUCCESS) | 683 if (response == READBACK_SUCCESS) |
684 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap); | 684 java_bitmap = gfx::ConvertToJavaBitmap(&bitmap); |
685 Java_WebContentsImpl_onGetContentBitmapFinished(env, | 685 Java_WebContentsImpl_onGetContentBitmapFinished(env, |
686 obj->obj(), | 686 obj->obj(), |
687 callback->obj(), | 687 callback->obj(), |
688 java_bitmap.obj(), | 688 java_bitmap.obj(), |
689 response); | 689 response); |
690 } | 690 } |
691 | |
692 } // namespace content | 691 } // namespace content |
OLD | NEW |