Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/android/chrome_jni_registrar.cc

Issue 10905058: Upstream the Android port find-in-page feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "chrome/browser/android/chrome_jni_registrar.h" 5 #include "chrome/browser/android/chrome_jni_registrar.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h" 8 #include "base/android/jni_registrar.h"
9 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
9 #include "chrome/browser/android/content_view_util.h" 10 #include "chrome/browser/android/content_view_util.h"
10 #include "chrome/browser/android/intent_helper.h" 11 #include "chrome/browser/android/intent_helper.h"
11 #include "chrome/browser/android/process_utils.h" 12 #include "chrome/browser/android/process_utils.h"
12 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h" 13 #include "chrome/browser/component/web_contents_delegate_android/component_jni_r egistrar.h"
13 #include "chrome/browser/history/android/sqlite_cursor.h" 14 #include "chrome/browser/history/android/sqlite_cursor.h"
14 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h" 15 #include "chrome/browser/ui/android/javascript_app_modal_dialog_android.h"
15 16
16 namespace chrome { 17 namespace chrome {
17 namespace android { 18 namespace android {
18 19
19 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 20 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
21 { "ChromeWebContentsDelegateAndroid",
22 RegisterChromeWebContentsDelegateAndroid },
20 { "ContentViewUtil", RegisterContentViewUtil }, 23 { "ContentViewUtil", RegisterContentViewUtil },
21 { "IntentHelper", RegisterIntentHelper }, 24 { "IntentHelper", RegisterIntentHelper },
22 { "JavascriptAppModalDialog", 25 { "JavascriptAppModalDialog",
23 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog }, 26 JavascriptAppModalDialogAndroid::RegisterJavascriptAppModalDialog },
24 { "ProcessUtils", RegisterProcessUtils }, 27 { "ProcessUtils", RegisterProcessUtils },
25 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor}, 28 { "SqliteCursor", SQLiteCursor::RegisterSqliteCursor},
26 }; 29 };
27 30
28 bool RegisterJni(JNIEnv* env) { 31 bool RegisterJni(JNIEnv* env) {
29 web_contents_delegate_android::RegisterJni(env); 32 web_contents_delegate_android::RegisterJni(env);
30 return RegisterNativeMethods(env, kChromeRegisteredMethods, 33 return RegisterNativeMethods(env, kChromeRegisteredMethods,
31 arraysize(kChromeRegisteredMethods)); 34 arraysize(kChromeRegisteredMethods));
32 } 35 }
33 36
34 } // namespace android 37 } // namespace android
35 } // namespace chrome 38 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698