Dave Tapuska | f9996da | 2019-10-23 21:45:01 | [diff] [blame] | 1 | // Copyright 2019 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 CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
| 6 | #define CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |
| 7 | |
| 8 | #include "base/component_export.h" |
Dave Tapuska | fc4adbae | 2020-12-02 22:08:59 | [diff] [blame^] | 9 | #include "cc/input/browser_controls_state.h" |
Dave Tapuska | 90339c6 | 2020-05-13 14:27:31 | [diff] [blame] | 10 | #include "cc/input/overscroll_behavior.h" |
Dave Tapuska | f9996da | 2019-10-23 21:45:01 | [diff] [blame] | 11 | #include "cc/input/touch_action.h" |
Dave Tapuska | 9a31f41 | 2020-07-20 17:01:28 | [diff] [blame] | 12 | #include "cc/trees/browser_controls_params.h" |
Dave Tapuska | f9996da | 2019-10-23 21:45:01 | [diff] [blame] | 13 | #include "ipc/ipc_message_macros.h" |
| 14 | |
| 15 | #undef IPC_MESSAGE_EXPORT |
| 16 | #define IPC_MESSAGE_EXPORT COMPONENT_EXPORT(CC_IPC) |
| 17 | |
Xida Chen | 209548b | 2020-09-01 16:18:51 | [diff] [blame] | 18 | IPC_ENUM_TRAITS_MAX_VALUE(cc::OverscrollBehavior::Type, |
| 19 | cc::OverscrollBehavior::Type::kMax) |
Dave Tapuska | 90339c6 | 2020-05-13 14:27:31 | [diff] [blame] | 20 | |
| 21 | IPC_STRUCT_TRAITS_BEGIN(cc::OverscrollBehavior) |
| 22 | IPC_STRUCT_TRAITS_MEMBER(x) |
| 23 | IPC_STRUCT_TRAITS_MEMBER(y) |
| 24 | IPC_STRUCT_TRAITS_END() |
| 25 | |
Henrique Ferreiro | 00e24f1 | 2019-12-17 01:14:48 | [diff] [blame] | 26 | IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::TouchAction::kMax) |
Dave Tapuska | f9996da | 2019-10-23 21:45:01 | [diff] [blame] | 27 | |
Dave Tapuska | 9a31f41 | 2020-07-20 17:01:28 | [diff] [blame] | 28 | IPC_STRUCT_TRAITS_BEGIN(cc::BrowserControlsParams) |
| 29 | IPC_STRUCT_TRAITS_MEMBER(top_controls_height) |
| 30 | IPC_STRUCT_TRAITS_MEMBER(top_controls_min_height) |
| 31 | IPC_STRUCT_TRAITS_MEMBER(bottom_controls_height) |
| 32 | IPC_STRUCT_TRAITS_MEMBER(bottom_controls_min_height) |
| 33 | IPC_STRUCT_TRAITS_MEMBER(animate_browser_controls_height_changes) |
| 34 | IPC_STRUCT_TRAITS_MEMBER(browser_controls_shrink_blink_size) |
Robbie McElrath | cbb6778 | 2020-08-18 00:10:36 | [diff] [blame] | 35 | IPC_STRUCT_TRAITS_MEMBER(only_expand_top_controls_at_page_top) |
Dave Tapuska | 9a31f41 | 2020-07-20 17:01:28 | [diff] [blame] | 36 | IPC_STRUCT_TRAITS_END() |
| 37 | |
Dave Tapuska | fc4adbae | 2020-12-02 22:08:59 | [diff] [blame^] | 38 | IPC_ENUM_TRAITS_MAX_VALUE(cc::BrowserControlsState, |
| 39 | cc::BrowserControlsState::kMaxValue) |
| 40 | |
Dave Tapuska | f9996da | 2019-10-23 21:45:01 | [diff] [blame] | 41 | #endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_ |