| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/android/content_view_core_impl.h" | 5 #include "content/browser/android/content_view_core_impl.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "content/browser/android/content_view_client.h" | 11 #include "content/browser/android/content_view_client.h" |
| 12 #include "content/browser/renderer_host/render_view_host_impl.h" | 12 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 13 #include "content/browser/web_contents/navigation_controller_impl.h" | 13 #include "content/browser/web_contents/navigation_controller_impl.h" |
| 14 #include "content/public/browser/browser_context.h" | 14 #include "content/public/browser/browser_context.h" |
| 15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
| 16 #include "jni/content_view_core_jni.h" | 16 #include "jni/ContentViewCore_jni.h" |
| 17 #include "webkit/glue/webmenuitem.h" | 17 #include "webkit/glue/webmenuitem.h" |
| 18 | 18 |
| 19 using base::android::AttachCurrentThread; | 19 using base::android::AttachCurrentThread; |
| 20 using base::android::ConvertUTF16ToJavaString; | 20 using base::android::ConvertUTF16ToJavaString; |
| 21 using base::android::ConvertUTF8ToJavaString; | 21 using base::android::ConvertUTF8ToJavaString; |
| 22 using base::android::GetClass; | 22 using base::android::GetClass; |
| 23 using base::android::HasField; | 23 using base::android::HasField; |
| 24 using base::android::ScopedJavaGlobalRef; | 24 using base::android::ScopedJavaGlobalRef; |
| 25 using base::android::ScopedJavaLocalRef; | 25 using base::android::ScopedJavaLocalRef; |
| 26 | 26 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 if (!HasField(env, clazz, "mNativeContentViewCore", "I")) { | 379 if (!HasField(env, clazz, "mNativeContentViewCore", "I")) { |
| 380 DLOG(ERROR) << "Unable to find ContentView.mNativeContentViewCore!"; | 380 DLOG(ERROR) << "Unable to find ContentView.mNativeContentViewCore!"; |
| 381 return false; | 381 return false; |
| 382 } | 382 } |
| 383 g_native_content_view = GetFieldID(env, clazz, "mNativeContentViewCore", "I"); | 383 g_native_content_view = GetFieldID(env, clazz, "mNativeContentViewCore", "I"); |
| 384 | 384 |
| 385 return RegisterNativesImpl(env) >= 0; | 385 return RegisterNativesImpl(env) >= 0; |
| 386 } | 386 } |
| 387 | 387 |
| 388 } // namespace content | 388 } // namespace content |
| OLD | NEW |