Chromium Code Reviews| 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..094f957755b927732e9625704976b10b45e263e0 |
| --- /dev/null |
| +++ b/chrome/browser/android/activity_type_ids.h |
| @@ -0,0 +1,31 @@ |
| +// 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 |
|
Yaron
2013/12/10 01:48:17
// DEFINE_ACTIVITY_TYPE_FLAG
gone
2013/12/10 01:59:39
Done.
|
| + |
| +// 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) |
| + |
| +#ifdef BUILDING_CPP_ENUM |
| +#undef DEFINE_ACTIVITY_TYPE_FLAG |
| +}; // enum Ids |
|
Yaron
2013/12/10 01:48:17
enum Type
gone
2013/12/10 01:59:39
Done.
|
| +} // namespace ActivityTypeIds |
| +#endif |
| + |
| +#endif // CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_ |