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_array.h" | 10 #include "base/android/jni_array.h" |
11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
12 #include "components/web_contents_delegate_android/color_chooser_android.h" | 12 #include "components/web_contents_delegate_android/color_chooser_android.h" |
13 #include "components/web_contents_delegate_android/validation_message_bubble_and
roid.h" | 13 #include "components/web_contents_delegate_android/validation_message_bubble_and
roid.h" |
14 #include "content/public/browser/android/content_view_core.h" | 14 #include "content/public/browser/android/content_view_core.h" |
15 #include "content/public/browser/color_chooser.h" | 15 #include "content/public/browser/color_chooser.h" |
16 #include "content/public/browser/global_request_id.h" | 16 #include "content/public/browser/global_request_id.h" |
17 #include "content/public/browser/invalidate_type.h" | 17 #include "content/public/browser/invalidate_type.h" |
18 #include "content/public/browser/native_web_keyboard_event.h" | 18 #include "content/public/browser/native_web_keyboard_event.h" |
19 #include "content/public/browser/navigation_controller.h" | 19 #include "content/public/browser/navigation_controller.h" |
20 #include "content/public/browser/page_navigator.h" | 20 #include "content/public/browser/page_navigator.h" |
21 #include "content/public/browser/render_widget_host_view.h" | 21 #include "content/public/browser/render_widget_host_view.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/common/referrer.h" | 23 #include "content/public/common/referrer.h" |
24 #include "jni/WebContentsDelegateAndroid_jni.h" | 24 #include "jni/WebContentsDelegateAndroid_jni.h" |
25 #include "ui/base/window_open_disposition.h" | 25 #include "ui/base/window_open_disposition.h" |
26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/geometry/rect.h" |
27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
28 | 28 |
29 using base::android::AttachCurrentThread; | 29 using base::android::AttachCurrentThread; |
30 using base::android::ConvertUTF8ToJavaString; | 30 using base::android::ConvertUTF8ToJavaString; |
31 using base::android::ConvertUTF16ToJavaString; | 31 using base::android::ConvertUTF16ToJavaString; |
32 using base::android::ScopedJavaLocalRef; | 32 using base::android::ScopedJavaLocalRef; |
33 using content::ColorChooser; | 33 using content::ColorChooser; |
34 using content::RenderWidgetHostView; | 34 using content::RenderWidgetHostView; |
35 using content::WebContents; | 35 using content::WebContents; |
36 using content::WebContentsDelegate; | 36 using content::WebContentsDelegate; |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 // Native JNI methods | 430 // Native JNI methods |
431 // ---------------------------------------------------------------------------- | 431 // ---------------------------------------------------------------------------- |
432 | 432 |
433 // Register native methods | 433 // Register native methods |
434 | 434 |
435 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { | 435 bool RegisterWebContentsDelegateAndroid(JNIEnv* env) { |
436 return RegisterNativesImpl(env); | 436 return RegisterNativesImpl(env); |
437 } | 437 } |
438 | 438 |
439 } // namespace web_contents_delegate_android | 439 } // namespace web_contents_delegate_android |
OLD | NEW |