| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <stddef.h> | 7 #include <stddef.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 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1650 return ScopedJavaLocalRef<jobject>(); | 1650 return ScopedJavaLocalRef<jobject>(); |
| 1651 | 1651 |
| 1652 ContentViewCore* view = ContentViewCore::FromWebContents(web_contents); | 1652 ContentViewCore* view = ContentViewCore::FromWebContents(web_contents); |
| 1653 if (!view) | 1653 if (!view) |
| 1654 return ScopedJavaLocalRef<jobject>(); | 1654 return ScopedJavaLocalRef<jobject>(); |
| 1655 | 1655 |
| 1656 return view->GetJavaObject(); | 1656 return view->GetJavaObject(); |
| 1657 } | 1657 } |
| 1658 | 1658 |
| 1659 bool RegisterContentViewCore(JNIEnv* env) { | 1659 bool RegisterContentViewCore(JNIEnv* env) { |
| 1660 return RegisterNativesImpl(env) && JNI_DragEvent::RegisterNativesImpl(env); | 1660 return RegisterNativesImpl(env); |
| 1661 } | 1661 } |
| 1662 | 1662 |
| 1663 } // namespace content | 1663 } // namespace content |
| OLD | NEW |