Commit b239b006 authored by dtapuska's avatar dtapuska Committed by Commit Bot

Add validation to a few WebPointerProperties.

Will be used in mojoifying input messages.

BUG=722928

Review-Url: https://codereview.chromium.org/2915783003
Cr-Commit-Position: refs/heads/master@{#476330}
parent 455eee48
......@@ -27,6 +27,7 @@ include_rules = [
"+third_party/WebKit/public/platform/WebKeyboardEvent.h",
"+third_party/WebKit/public/platform/WebMixedContentContextType.h",
"+third_party/WebKit/public/platform/WebMouseWheelEvent.h",
"+third_party/WebKit/public/platform/WebPointerProperties.h",
"+third_party/WebKit/public/platform/WebOriginTrialTokenStatus.h",
"+third_party/WebKit/public/platform/WebPageVisibilityState.h",
"+third_party/WebKit/public/platform/WebReferrerPolicy.h",
......
......@@ -28,6 +28,7 @@
#include "content/common/input/synthetic_tap_gesture_params.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
#include "third_party/WebKit/public/platform/WebPointerProperties.h"
#include "ui/events/blink/did_overscroll_params.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
......@@ -64,6 +65,11 @@ IPC_ENUM_TRAITS_MAX_VALUE(
IPC_ENUM_TRAITS_MAX_VALUE(content::InputEventDispatchType,
content::InputEventDispatchType::DISPATCH_TYPE_MAX)
IPC_ENUM_TRAITS_MAX_VALUE(cc::TouchAction, cc::kTouchActionMax)
IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebPointerProperties::Button,
blink::WebPointerProperties::Button::kNoButton,
blink::WebPointerProperties::Button::kLastEntry)
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPointerProperties::PointerType,
blink::WebPointerProperties::PointerType::kLastEntry)
IPC_STRUCT_TRAITS_BEGIN(ui::DidOverscrollParams)
IPC_STRUCT_TRAITS_MEMBER(accumulated_overscroll)
......
......@@ -29,7 +29,8 @@ class WebPointerProperties {
kRight,
kBack,
kForward,
kEraser
kEraser,
kLastEntry = kEraser // Must be the last entry in the list
};
enum class Buttons : unsigned {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment