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

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

Issue 763253005: [Android] Add AppMenu touch duration metric. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
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 "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h" 10 #include "chrome/browser/android/accessibility/font_size_prefs_android.h"
11 #include "chrome/browser/android/accessibility_util.h" 11 #include "chrome/browser/android/accessibility_util.h"
12 #include "chrome/browser/android/appmenu/app_menu_drag_helper.h"
12 #include "chrome/browser/android/banners/app_banner_manager.h" 13 #include "chrome/browser/android/banners/app_banner_manager.h"
13 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h" 14 #include "chrome/browser/android/bookmarks/bookmarks_bridge.h"
14 #include "chrome/browser/android/chrome_web_contents_delegate_android.h" 15 #include "chrome/browser/android/chrome_web_contents_delegate_android.h"
15 #include "chrome/browser/android/chromium_application.h" 16 #include "chrome/browser/android/chromium_application.h"
16 #include "chrome/browser/android/content_view_util.h" 17 #include "chrome/browser/android/content_view_util.h"
17 #include "chrome/browser/android/dev_tools_server.h" 18 #include "chrome/browser/android/dev_tools_server.h"
18 #include "chrome/browser/android/dom_distiller/feedback_reporter_android.h" 19 #include "chrome/browser/android/dom_distiller/feedback_reporter_android.h"
19 #include "chrome/browser/android/enhanced_bookmarks/enhanced_bookmarks_bridge.h" 20 #include "chrome/browser/android/enhanced_bookmarks/enhanced_bookmarks_bridge.h"
20 #include "chrome/browser/android/favicon_helper.h" 21 #include "chrome/browser/android/favicon_helper.h"
21 #include "chrome/browser/android/feature_utilities.h" 22 #include "chrome/browser/android/feature_utilities.h"
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 #include "printing/printing_context_android.h" 93 #include "printing/printing_context_android.h"
93 #endif 94 #endif
94 95
95 bool RegisterCertificateViewer(JNIEnv* env); 96 bool RegisterCertificateViewer(JNIEnv* env);
96 97
97 namespace chrome { 98 namespace chrome {
98 namespace android { 99 namespace android {
99 100
100 static base::android::RegistrationMethod kChromeRegisteredMethods[] = { 101 static base::android::RegistrationMethod kChromeRegisteredMethods[] = {
101 // Register JNI for components we depend on. 102 // Register JNI for components we depend on.
103 { "AppMenuDragHelper", appmenu::android::RegisterAppMenuDragHelper },
102 { "Bookmarks", bookmarks::android::RegisterBookmarks }, 104 { "Bookmarks", bookmarks::android::RegisterBookmarks },
103 { "DomDistiller", dom_distiller::android::RegisterDomDistiller }, 105 { "DomDistiller", dom_distiller::android::RegisterDomDistiller },
104 { "GCMDriver", gcm::android::RegisterGCMDriverJni }, 106 { "GCMDriver", gcm::android::RegisterGCMDriverJni },
105 { "Invalidation", invalidation::android::RegisterInvalidationJni }, 107 { "Invalidation", invalidation::android::RegisterInvalidationJni },
106 { "NavigationInterception", 108 { "NavigationInterception",
107 navigation_interception::RegisterNavigationInterceptionJni }, 109 navigation_interception::RegisterNavigationInterceptionJni },
108 { "WebContentsDelegateAndroid", 110 { "WebContentsDelegateAndroid",
109 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni }, 111 web_contents_delegate_android::RegisterWebContentsDelegateAndroidJni },
110 // Register JNI for chrome classes. 112 // Register JNI for chrome classes.
111 { "AccessibilityUtils", AccessibilityUtil::Register }, 113 { "AccessibilityUtils", AccessibilityUtil::Register },
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 }; 219 };
218 220
219 bool RegisterJni(JNIEnv* env) { 221 bool RegisterJni(JNIEnv* env) {
220 TRACE_EVENT0("startup", "chrome_android::RegisterJni"); 222 TRACE_EVENT0("startup", "chrome_android::RegisterJni");
221 return RegisterNativeMethods(env, kChromeRegisteredMethods, 223 return RegisterNativeMethods(env, kChromeRegisteredMethods,
222 arraysize(kChromeRegisteredMethods)); 224 arraysize(kChromeRegisteredMethods));
223 } 225 }
224 226
225 } // namespace android 227 } // namespace android
226 } // namespace chrome 228 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698