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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 29 matching lines...) Expand all
40 #include "ui/gfx/android/java_bitmap.h" 40 #include "ui/gfx/android/java_bitmap.h"
41 #include "ui/gfx/geometry/rect.h" 41 #include "ui/gfx/geometry/rect.h"
42 42
43 using base::android::AttachCurrentThread; 43 using base::android::AttachCurrentThread;
44 using base::android::ConvertJavaStringToUTF8; 44 using base::android::ConvertJavaStringToUTF8;
45 using base::android::ConvertJavaStringToUTF16; 45 using base::android::ConvertJavaStringToUTF16;
46 using base::android::ConvertUTF8ToJavaString; 46 using base::android::ConvertUTF8ToJavaString;
47 using base::android::ConvertUTF16ToJavaString; 47 using base::android::ConvertUTF16ToJavaString;
48 using base::android::JavaParamRef; 48 using base::android::JavaParamRef;
49 using base::android::ScopedJavaGlobalRef; 49 using base::android::ScopedJavaGlobalRef;
50 using base::android::ScopedJavaLocalRef;
50 using base::android::ToJavaIntArray; 51 using base::android::ToJavaIntArray;
51 52
52 namespace content { 53 namespace content {
53 54
54 namespace { 55 namespace {
55 56
56 // Track all WebContentsAndroid objects here so that we don't deserialize a 57 // Track all WebContentsAndroid objects here so that we don't deserialize a
57 // destroyed WebContents object. 58 // destroyed WebContents object.
58 base::LazyInstance<base::hash_set<WebContentsAndroid*> >::Leaky 59 base::LazyInstance<base::hash_set<WebContentsAndroid*> >::Leaky
59 g_allocated_web_contents_androids = LAZY_INSTANCE_INITIALIZER; 60 g_allocated_web_contents_androids = LAZY_INSTANCE_INITIALIZER;
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 } 727 }
727 for (const gfx::Size& size : sizes) { 728 for (const gfx::Size& size : sizes) {
728 Java_WebContentsImpl_createSizeAndAddToList( 729 Java_WebContentsImpl_createSizeAndAddToList(
729 env, jsizes.obj(), size.width(), size.height()); 730 env, jsizes.obj(), size.width(), size.height());
730 } 731 }
731 Java_WebContentsImpl_onDownloadImageFinished( 732 Java_WebContentsImpl_onDownloadImageFinished(
732 env, obj->obj(), callback->obj(), id, 733 env, obj->obj(), callback->obj(), id,
733 http_status_code, jurl.obj(), jbitmaps.obj(), jsizes.obj()); 734 http_status_code, jurl.obj(), jbitmaps.obj(), jsizes.obj());
734 } 735 }
735 } // namespace content 736 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/time_zone_monitor_android.cc ('k') | content/common/android/media_metadata_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698