blob: af561bb6febd13686001dcf868625459b3f084c2 [file] [log] [blame]
Dave Tapuskaf9996da2019-10-23 21:45:011// 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 Tapuska90339c62020-05-13 14:27:319#include "cc/input/overscroll_behavior.h"
Dave Tapuskaf9996da2019-10-23 21:45:0110#include "cc/input/touch_action.h"
Dave Tapuska9a31f412020-07-20 17:01:2811#include "cc/trees/browser_controls_params.h"
Dave Tapuskaf9996da2019-10-23 21:45:0112#include "ipc/ipc_message_macros.h"
13
14#undef IPC_MESSAGE_EXPORT
15#define IPC_MESSAGE_EXPORT COMPONENT_EXPORT(CC_IPC)
16
Xida Chen209548b2020-09-01 16:18:5117IPC_ENUM_TRAITS_MAX_VALUE(cc::OverscrollBehavior::Type,
18 cc::OverscrollBehavior::Type::kMax)
Dave Tapuska90339c62020-05-13 14:27:3119
20IPC_STRUCT_TRAITS_BEGIN(cc::OverscrollBehavior)
21 IPC_STRUCT_TRAITS_MEMBER(x)
22 IPC_STRUCT_TRAITS_MEMBER(y)
23IPC_STRUCT_TRAITS_END()
24
Henrique Ferreiro00e24f12019-12-17 01:14:4825IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::TouchAction::kMax)
Dave Tapuskaf9996da2019-10-23 21:45:0126
Dave Tapuska9a31f412020-07-20 17:01:2827IPC_STRUCT_TRAITS_BEGIN(cc::BrowserControlsParams)
28 IPC_STRUCT_TRAITS_MEMBER(top_controls_height)
29 IPC_STRUCT_TRAITS_MEMBER(top_controls_min_height)
30 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_height)
31 IPC_STRUCT_TRAITS_MEMBER(bottom_controls_min_height)
32 IPC_STRUCT_TRAITS_MEMBER(animate_browser_controls_height_changes)
33 IPC_STRUCT_TRAITS_MEMBER(browser_controls_shrink_blink_size)
Robbie McElrathcbb67782020-08-18 00:10:3634 IPC_STRUCT_TRAITS_MEMBER(only_expand_top_controls_at_page_top)
Dave Tapuska9a31f412020-07-20 17:01:2835IPC_STRUCT_TRAITS_END()
36
Dave Tapuskaf9996da2019-10-23 21:45:0137#endif // CC_IPC_CC_PARAM_TRAITS_MACROS_H_