OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRAITS _H_ | |
6 #define SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRAITS _H_ | |
7 | |
8 #include "ipc/ipc_message_macros.h" | |
9 #include "ipc/param_traits_macros.h" | |
10 #include "services/resource_coordinator/public/cpp/coordination_unit_events.h" | |
11 #include "services/resource_coordinator/public/interfaces/coordination_unit.mojo m.h" | |
12 | |
13 IPC_ENUM_TRAITS_MIN_MAX_VALUE( | |
Ken Rockot(use gerrit already)
2017/04/10 23:58:00
I am thoroughly confused. Why are you introducing
oystein (OOO til 10th of July)
2017/04/11 00:11:56
Separate reasons for each enum basically:
* For th
| |
14 resource_coordinator::EventType, | |
15 resource_coordinator::EventType::INVALID_EVENT, | |
16 static_cast<size_t>(resource_coordinator::EventType::NUM_EVENTS) - 1) | |
17 | |
18 IPC_ENUM_TRAITS_MIN_MAX_VALUE( | |
19 resource_coordinator::CoordinationUnitType, | |
20 resource_coordinator::CoordinationUnitType::INVALID_TYPE, | |
21 static_cast<size_t>(resource_coordinator::CoordinationUnitType::NUM_TYPES) - | |
22 1) | |
23 | |
24 IPC_STRUCT_TRAITS_BEGIN(resource_coordinator::CoordinationUnitID) | |
25 IPC_STRUCT_TRAITS_MEMBER(type) | |
26 IPC_STRUCT_TRAITS_MEMBER(id) | |
27 IPC_STRUCT_TRAITS_END() | |
28 | |
29 #endif // SERVICES_RESOURCE_COORDINATOR_PUBLIC_CPP_COORDINATION_UNIT_STRUCT_TRA ITS_H_ | |
OLD | NEW |