Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: content/browser/web_contents/web_contents_android.cc

Issue 2015433003: Implement MediaMetadata artwork in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698