Bug 1226292 - Add telemetry for Find in Page r=liuche

This commit is contained in:
Mark Finkle 2015-11-24 00:21:16 -05:00
parent 0b336e064b
commit 9a4a57cbcf

View File

@ -4,6 +4,7 @@
package org.mozilla.gecko;
import org.mozilla.gecko.TelemetryContract;
import org.mozilla.gecko.util.GeckoEventListener;
import org.mozilla.gecko.util.GeckoRequest;
import org.mozilla.gecko.util.NativeJSObject;
@ -149,6 +150,9 @@ public class FindInPageBar extends LinearLayout implements TextWatcher, View.OnC
public void onClick(View v) {
final int viewId = v.getId();
String extras = getResources().getResourceEntryName(viewId);
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.BUTTON, extras);
if (viewId == R.id.find_matchcase) {
// Toggle matchcase state (color).
mMatchCase.toggle();