| Index: chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMetricIds.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMetricIds.java b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMetricIds.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..50a11e198ca085ad2e084af32370dce2874ec7a7
|
| --- /dev/null
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentMetricIds.java
|
| @@ -0,0 +1,46 @@
|
| +// Copyright 2014 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.chrome.browser.document;
|
| +
|
| +/**
|
| + * IDs for metrics tracking Document-mode actions.
|
| + */
|
| +public class DocumentMetricIds {
|
| + // DocumentActivity.HomeExitAction (enumerated)
|
| + public static final int HOME_EXIT_ACTION_OTHER = 0;
|
| + public static final int HOME_EXIT_ACTION_MOST_VISITED_ITEM = 1;
|
| + public static final int HOME_EXIT_ACTION_LAST_VIEWED_ITEM = 2;
|
| + public static final int HOME_EXIT_ACTION_BOOKMARKS_BUTTON = 3;
|
| + public static final int HOME_EXIT_ACTION_RECENT_TABS_BUTTON = 4;
|
| + public static final int HOME_EXIT_ACTION_SEARCHBOX = 5;
|
| + public static final int HOME_EXIT_ACTION_COUNT = 6;
|
| +
|
| + // DocumentActivity.StartedBy (sparse)
|
| + public static final int STARTED_BY_UNKNOWN = 0;
|
| + public static final int STARTED_BY_LAUNCHER = 1;
|
| + public static final int STARTED_BY_ACTIVITY_RESTARTED = 2;
|
| + public static final int STARTED_BY_ACTIVITY_BROUGHT_TO_FOREGROUND = 3;
|
| + public static final int STARTED_BY_CHROME_HOME_MOST_VISITED = 100;
|
| + public static final int STARTED_BY_CHROME_HOME_BOOKMARK = 101;
|
| + public static final int STARTED_BY_CHROME_HOME_RECENT_TABS = 102;
|
| + public static final int STARTED_BY_WINDOW_OPEN = 200;
|
| + public static final int STARTED_BY_CONTEXT_MENU = 201;
|
| + public static final int STARTED_BY_OPTIONS_MENU = 202;
|
| + public static final int STARTED_BY_SEARCH_RESULT_PAGE = 300;
|
| + public static final int STARTED_BY_SEARCH_SUGGESTION_EXTERNAL = 301;
|
| + public static final int STARTED_BY_SEARCH_SUGGESTION_CHROME = 302;
|
| + public static final int STARTED_BY_EXTERNAL_APP_GMAIL = 400;
|
| + public static final int STARTED_BY_EXTERNAL_APP_FACEBOOK = 401;
|
| + public static final int STARTED_BY_EXTERNAL_APP_PLUS = 402;
|
| + public static final int STARTED_BY_EXTERNAL_APP_TWITTER = 403;
|
| + public static final int STARTED_BY_EXTERNAL_APP_CHROME = 404;
|
| + public static final int STARTED_BY_EXTERNAL_APP_OTHER = 405;
|
| + public static final int STARTED_BY_CONTEXTUAL_SEARCH = 500;
|
| +
|
| + // DocumentActivity.OptOutDecision (enumerated)
|
| + public static final int OPT_OUT_CLICK_GOT_IT = 0;
|
| + public static final int OPT_OUT_CLICK_SETTINGS = 1;
|
| + public static final int OPT_OUT_CLICK_COUNT = 2;
|
| +}
|
|
|