| 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 "components/web_contents_delegate_android/web_contents_delegate_android
.h" | 5 #include "components/web_contents_delegate_android/web_contents_delegate_android
.h" |
| 6 | 6 |
| 7 #include <android/keycodes.h> | 7 #include <android/keycodes.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| 11 #include "content/public/browser/android/content_view_core.h" | 11 #include "content/public/browser/android/content_view_core.h" |
| 12 #include "content/public/browser/color_chooser.h" | 12 #include "content/public/browser/color_chooser.h" |
| 13 #include "content/public/browser/invalidate_type.h" | 13 #include "content/public/browser/invalidate_type.h" |
| 14 #include "content/public/browser/native_web_keyboard_event.h" | 14 #include "content/public/browser/native_web_keyboard_event.h" |
| 15 #include "content/public/browser/page_navigator.h" | 15 #include "content/public/browser/page_navigator.h" |
| 16 #include "content/public/browser/render_widget_host_view.h" | 16 #include "content/public/browser/render_widget_host_view.h" |
| 17 #include "content/public/browser/web_contents.h" | 17 #include "content/public/browser/web_contents.h" |
| 18 #include "content/public/common/page_transition_types.h" | 18 #include "content/public/common/page_transition_types.h" |
| 19 #include "content/public/common/referrer.h" | 19 #include "content/public/common/referrer.h" |
| 20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
| 21 #include "jni/WebContentsDelegateAndroid_jni.h" | 21 #include "jni/WebContentsDelegateAndroid_jni.h" |
| 22 #include "ui/base/window_open_disposition.h" |
| 22 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| 23 #include "webkit/glue/window_open_disposition.h" | |
| 24 | 24 |
| 25 using base::android::AttachCurrentThread; | 25 using base::android::AttachCurrentThread; |
| 26 using base::android::ConvertUTF8ToJavaString; | 26 using base::android::ConvertUTF8ToJavaString; |
| 27 using base::android::ConvertUTF16ToJavaString; | 27 using base::android::ConvertUTF16ToJavaString; |
| 28 using base::android::HasClass; | 28 using base::android::HasClass; |
| 29 using base::android::ScopedJavaLocalRef; | 29 using base::android::ScopedJavaLocalRef; |
| 30 using content::ColorChooser; | 30 using content::ColorChooser; |
| 31 using content::WebContents; | 31 using content::WebContents; |
| 32 using content::WebContentsDelegate; | 32 using content::WebContentsDelegate; |
| 33 | 33 |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { | 309 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { |
| 310 if (!HasClass(env, kWebContentsDelegateAndroidClassPath)) { | 310 if (!HasClass(env, kWebContentsDelegateAndroidClassPath)) { |
| 311 DLOG(ERROR) << "Unable to find class WebContentsDelegateAndroid!"; | 311 DLOG(ERROR) << "Unable to find class WebContentsDelegateAndroid!"; |
| 312 return false; | 312 return false; |
| 313 } | 313 } |
| 314 return RegisterNativesImpl(env); | 314 return RegisterNativesImpl(env); |
| 315 } | 315 } |
| 316 | 316 |
| 317 } // namespace components | 317 } // namespace components |
| OLD | NEW |