Add gen/third_party/WebKit to include dirs

This commit is contained in:
Cheng Zhao 2017-04-11 15:15:19 +09:00
parent dd3d791cb9
commit 8634f37dfc

View file

@ -554,8 +554,8 @@ bool WebContents::PreHandleKeyboardEvent(
content::WebContents* source,
const content::NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
if (event.type == blink::WebInputEvent::Type::RawKeyDown
|| event.type == blink::WebInputEvent::Type::KeyUp)
if (event.type() == blink::WebInputEvent::Type::RawKeyDown ||
event.type() == blink::WebInputEvent::Type::KeyUp)
return Emit("before-input-event", event);
else
return false;