Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: content/common/input/input_event.cc

Issue 1391843006: Embed keyboard shortcut bit in WebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/input/input_event.h" 5 #include "content/common/input/input_event.h"
6 6
7 #include "content/common/input/web_input_event_traits.h" 7 #include "content/common/input/web_input_event_traits.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 InputEvent::InputEvent() : is_keyboard_shortcut(false) {} 11 InputEvent::InputEvent() {}
12 12
13 InputEvent::InputEvent(const blink::WebInputEvent& web_event, 13 InputEvent::InputEvent(const blink::WebInputEvent& web_event,
14 const ui::LatencyInfo& latency_info, 14 const ui::LatencyInfo& latency_info)
15 bool is_keyboard_shortcut) 15 : web_event(WebInputEventTraits::Clone(web_event)),
16 : web_event(WebInputEventTraits::Clone(web_event)), 16 latency_info(latency_info) {}
17 latency_info(latency_info),
18 is_keyboard_shortcut(is_keyboard_shortcut) {}
19 17
20 InputEvent::~InputEvent() {} 18 InputEvent::~InputEvent() {}
21 19
22 } // namespace content 20 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698