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/color_chooser_android.h" | 5 #include "components/web_contents_delegate_android/color_chooser_android.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/android/jni_array.h" | 9 #include "base/android/jni_array.h" |
8 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
9 #include "content/public/browser/android/content_view_core.h" | 11 #include "content/public/browser/android/content_view_core.h" |
10 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
11 #include "content/public/common/color_suggestion.h" | 13 #include "content/public/common/color_suggestion.h" |
12 #include "jni/ColorChooserAndroid_jni.h" | 14 #include "jni/ColorChooserAndroid_jni.h" |
13 #include "ui/android/window_android.h" | 15 #include "ui/android/window_android.h" |
14 | 16 |
15 using base::android::ConvertUTF16ToJavaString; | 17 using base::android::ConvertUTF16ToJavaString; |
16 using base::android::JavaRef; | 18 using base::android::JavaRef; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 } | 87 } |
86 | 88 |
87 // ---------------------------------------------------------------------------- | 89 // ---------------------------------------------------------------------------- |
88 // Native JNI methods | 90 // Native JNI methods |
89 // ---------------------------------------------------------------------------- | 91 // ---------------------------------------------------------------------------- |
90 bool RegisterColorChooserAndroid(JNIEnv* env) { | 92 bool RegisterColorChooserAndroid(JNIEnv* env) { |
91 return RegisterNativesImpl(env); | 93 return RegisterNativesImpl(env); |
92 } | 94 } |
93 | 95 |
94 } // namespace web_contents_delegate_android | 96 } // namespace web_contents_delegate_android |
OLD | NEW |