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

Unified Diff: chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java

Issue 1134183004: Chromecast: adds CastMetricsHelper API from Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chromecast/android/cast_metrics_helper_android.cc ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java
diff --git a/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java b/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java
new file mode 100644
index 0000000000000000000000000000000000000000..600e4f8262aca0740eec62707a6e33e13132bbc5
--- /dev/null
+++ b/chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java
@@ -0,0 +1,25 @@
+// 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.
+
+package org.chromium.chromecast.shell;
+
+import org.chromium.base.JNINamespace;
+
+/**
+ * Wrapper of native CastMetricsHelper.
+ */
+@JNINamespace("chromecast")
+public final class CastMetricsHelper {
+
+ public static void logMediaPlay() {
+ nativeLogMediaPlay();
+ }
+ private static native void nativeLogMediaPlay();
+
+ public static void logMediaPause() {
+ nativeLogMediaPause();
+ }
+ private static native void nativeLogMediaPause();
+
+}
« no previous file with comments | « chromecast/android/cast_metrics_helper_android.cc ('k') | chromecast/chromecast.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698