| 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_
|
|
|