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..2abb58f1e8e4c2b1d4faff34943c7479b83f364a |
| --- /dev/null |
| +++ b/chrome/browser/android/activity_type_ids.h |
| @@ -0,0 +1,22 @@ |
| +// 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. |
| + |
| +namespace ActivityTypeIds { |
| + |
| +enum Type { |
| +#define DEFINE_ACTIVITY_ID(id,value) ACTIVITY_##id = (value), |
| +#include "activity_type_id_list.h" |
| +#undef DEFINE_ACTIVITY_ID |
| +}; // enum Type |
| + |
| +// Takes an int corresponding to a Type and returns the corresponding Type. |
| +Type GetActivityType(int type_id); |
| +} // namespace ActivityTypeIds |
|
Alexei Svitkine (slow)
2014/01/27 19:12:54
Nit: Add a blank line before this.
Kibeom Kim (inactive)
2014/01/29 01:52:32
Done.
|
| + |
| +#endif // CHROME_BROWSER_ANDROID_ACTIVITY_TYPE_IDS_H_ |