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

Unified Diff: chrome/browser/android/staging_jni_registrar.cc

Issue 1141283003: Upstream oodles of Chrome for Android code into Chromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: final patch? Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/staging_jni_registrar.cc
diff --git a/chrome/browser/android/staging_jni_registrar.cc b/chrome/browser/android/staging_jni_registrar.cc
new file mode 100644
index 0000000000000000000000000000000000000000..681816905ae28506a5bf12f1a14de826118c4115
--- /dev/null
+++ b/chrome/browser/android/staging_jni_registrar.cc
@@ -0,0 +1,50 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/android/staging_jni_registrar.h"
+
+#include "base/android/jni_android.h"
+#include "base/android/jni_registrar.h"
+#include "chrome/browser/android/bookmark/edit_bookmark_helper.h"
+#include "chrome/browser/android/compositor/compositor_view.h"
+#include "chrome/browser/android/compositor/scene_layer/contextual_search_scene_layer.h"
+#include "chrome/browser/android/compositor/scene_layer/reader_mode_scene_layer.h"
+#include "chrome/browser/android/compositor/scene_layer/tab_list_scene_layer.h"
+#include "chrome/browser/android/compositor/scene_layer/tab_strip_scene_layer.h"
+#include "chrome/browser/android/contextualsearch/contextual_search_manager.h"
+#include "chrome/browser/android/contextualsearch/contextual_search_tab_helper.h"
+#include "chrome/browser/android/document/document_web_contents_delegate.h"
+#include "chrome/browser/android/history_report/history_report_jni_bridge.h"
+#include "chrome/browser/android/policy/policy_manager.h"
+#include "chrome/browser/android/rlz/revenue_stats.h"
+#include "chrome/browser/android/tab/background_content_view_helper.h"
+#include "chrome/browser/android/tab/thumbnail_tab_helper_android.h"
+
+namespace chrome {
+namespace android {
+static base::android::RegistrationMethod kRegistrationMethods[] = {
+ {"BackgroundContentViewHelper", BackgroundContentViewHelper::Register},
+ {"CompositorView", RegisterCompositorView},
+ {"ContextualSearchManager", RegisterContextualSearchManager},
+ {"ContextualSearchSceneLayer", RegisterContextualSearchSceneLayer},
+ {"ContextualSearchTabHelper", RegisterContextualSearchTabHelper},
+ {"DocumentWebContentsDelegate", DocumentWebContentsDelegate::Register},
+ {"EditBookmarkHelper", RegisterEditBookmarkHelper},
+ {"HistoryReportJniBridge", history_report::RegisterHistoryReportJniBridge},
+ {"PolicyManager", RegisterPolicyManager},
+ {"ReaderModeSceneLayer", RegisterReaderModeSceneLayer},
+ {"RevenueStats", RegisterRevenueStats},
+ {"TabListSceneLayer", RegisterTabListSceneLayer},
+ {"TabStripSceneLayer", RegisterTabStripSceneLayer},
+ {"ThumbnailTabHelperAndroid", RegisterThumbnailTabHelperAndroid},
+};
+
+bool RegisterStagingJNI(JNIEnv* env) {
+ return base::android::RegisterNativeMethods(env, kRegistrationMethods,
+ arraysize(kRegistrationMethods));
+ return true;
+}
+
+} // namespace android
+} // namespace chrome
« no previous file with comments | « chrome/browser/android/staging_jni_registrar.h ('k') | chrome/browser/android/tab/background_content_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698