Chromium Code Reviews| Index: components/arc/common/arc_message_types.h |
| diff --git a/components/arc/common/arc_message_types.h b/components/arc/common/arc_message_types.h |
| index e07193d628dff6f8a5448226c568185de44be506..5971a6b0482a92ef0d5cd683a3166d92e5af5b4b 100644 |
| --- a/components/arc/common/arc_message_types.h |
| +++ b/components/arc/common/arc_message_types.h |
| @@ -5,7 +5,10 @@ |
| #ifndef COMPONENTS_ARC_COMMON_MESSAGE_TYPES |
| #define COMPONENTS_ARC_COMMON_MESSAGE_TYPES |
| +#include <string> |
| + |
| namespace arc { |
| + |
| // Describing the boot phase of the ARC instance, as defined by AOSP in |
| // com.android.server.SystemService |
| enum class InstanceBootPhase { |
| @@ -35,6 +38,30 @@ enum class InstanceBootPhase { |
| // Last enum entry for IPC_ENUM_TRAITS |
| LAST = BOOT_COMPLETED |
| }; |
| -} |
| + |
| +// Duplicates ui::ScaleFactor enum in order to be accessible on Android side. |
| +enum ScaleFactor : int { |
|
khmel1
2015/12/02 00:31:46
I also will add a unit test at chrome/browser/ui/a
yoshiki
2015/12/03 02:24:32
It might be better to use "enum class" instead.
khmel1
2015/12/03 03:53:27
I would keep this one-to-one as they are originall
|
| + SCALE_FACTOR_NONE = 0, |
| + SCALE_FACTOR_100P, |
| + SCALE_FACTOR_125P, |
| + SCALE_FACTOR_133P, |
| + SCALE_FACTOR_140P, |
| + SCALE_FACTOR_150P, |
| + SCALE_FACTOR_180P, |
| + SCALE_FACTOR_200P, |
| + SCALE_FACTOR_250P, |
| + SCALE_FACTOR_300P, |
| + |
| + NUM_SCALE_FACTORS |
| +}; |
| + |
| +// Describes ARC app. |
| +struct AppInfo { |
| + std::string name; |
| + std::string package; |
| + std::string activity; |
| +}; |
| + |
| +} // namespace arc |
| #endif // COMPONENTS_ARC_COMMON_MESSAGE_TYPES |