Add blink::WebInputEvent::IsPinchGestureEventType().

https://codereview.chromium.org/2861373004
This commit is contained in:
Aleksei Kuzmin 2017-08-08 04:06:31 +03:00 committed by Cheng Zhao
parent 650902c656
commit f03ca53af5
3 changed files with 8 additions and 4 deletions

View file

@ -137,7 +137,8 @@ struct Converter<blink::WebInputEvent::Modifiers> {
}
};
int GetWebInputEventType(v8::Isolate* isolate, v8::Local<v8::Value> val) {
blink::WebInputEvent::Type GetWebInputEventType(v8::Isolate* isolate,
v8::Local<v8::Value> val) {
blink::WebInputEvent::Type type = blink::WebInputEvent::kUndefined;
mate::Dictionary dict;
ConvertFromV8(isolate, val, &dict) && dict.Get("type", &type);