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

Unified Diff: chrome/browser/android/activity_type_ids.h

Issue 103943006: Let MetricsService know about some Android Activities (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use regular histograms Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/activity_type_ids.h
diff --git a/chrome/browser/android/activity_type_ids.h b/chrome/browser/android/activity_type_ids.h
new file mode 100644
index 0000000000000000000000000000000000000000..d5e89278f3781333b49b53f738b9c769850c695e
--- /dev/null
+++ b/chrome/browser/android/activity_type_ids.h
@@ -0,0 +1,32 @@
+// Copyright 2013 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.
+
+#ifndef CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_
+#define CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_
+
+// This file maps Activities on Chrome to specific flags for identification.
+
+#ifndef DEFINE_ACTIVITY_TYPE_FLAG
+// The Java version of the flag should be defined before including this file
+// from the template.
+#define DEFINE_ACTIVITY_TYPE_FLAG(identifier,int_id) identifier = int_id,
+#define BUILDING_CPP_ENUM
+namespace ActivityTypeIds {
+enum Type {
+#endif // ifndef DEFINE_ACTIVITY_TYPE_FLAG
+
+// Flags defining Activities we are interested in tracking. Use powers of 2 for
+// any new IDs since these get ORed together.
+DEFINE_ACTIVITY_TYPE_FLAG(ACTIVITY_NONE, 0)
+DEFINE_ACTIVITY_TYPE_FLAG(ACTIVITY_MAIN, 1)
+DEFINE_ACTIVITY_TYPE_FLAG(ACTIVITY_FULLSCREEN, 2)
+DEFINE_ACTIVITY_TYPE_FLAG(ACTIVITY_MAX_VALUE, 4)
+
+#ifdef BUILDING_CPP_ENUM
+#undef DEFINE_ACTIVITY_TYPE_FLAG
+}; // enum Type
+} // namespace ActivityTypeIds
+#endif
+
+#endif // CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_

Powered by Google App Engine
This is Rietveld 408576698