Chromium Code Reviews| Index: components/arc/common/arc_message_traits.h |
| diff --git a/components/arc/common/arc_message_traits.h b/components/arc/common/arc_message_traits.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9d0938ff917899742adc50297cd8c189c703b9e8 |
| --- /dev/null |
| +++ b/components/arc/common/arc_message_traits.h |
| @@ -0,0 +1,17 @@ |
| +// Copyright 2015 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. |
| + |
| +#include "components/arc/common/arc_message_types.h" |
| +#include "ipc/ipc_message_macros.h" |
| +#include "ipc/ipc_message_utils.h" |
| + |
| +IPC_ENUM_TRAITS_MIN_MAX_VALUE(arc::ScaleFactor, |
| + arc::ScaleFactor::SCALE_FACTOR_100P, |
|
yoshiki
2015/12/03 02:24:32
SCALE_FACTOR_NONE is never passed, right? SCALE_FA
khmel1
2015/12/03 03:53:27
Right, SCALE_FACTOR_NONE is invalid value for this
|
| + arc::ScaleFactor::NUM_SCALE_FACTORS); |
|
yoshiki
2015/12/03 02:24:32
This is the max value, so you may specify "NUM_SCA
khmel1
2015/12/03 03:53:27
Yes, you are right, they are both inclusive and I
|
| + |
| +IPC_STRUCT_TRAITS_BEGIN(arc::AppInfo) |
| + IPC_STRUCT_TRAITS_MEMBER(name) |
| + IPC_STRUCT_TRAITS_MEMBER(package) |
| + IPC_STRUCT_TRAITS_MEMBER(activity) |
| +IPC_STRUCT_TRAITS_END() |