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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_INPUT_INPUT_EVENT_H_
6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h"
11 #include "content/common/input/scoped_web_input_event.h"
12 #include "ui/events/latency_info.h"
20 // An content-specific wrapper for WebInputEvents and associated metadata.
21 class CONTENT_EXPORT InputEvent
{
24 InputEvent(const blink::WebInputEvent
& web_event
,
25 const ui::LatencyInfo
& latency_info
,
26 bool is_keyboard_shortcut
);
29 ScopedWebInputEvent web_event
;
30 ui::LatencyInfo latency_info
;
31 bool is_keyboard_shortcut
;
34 DISALLOW_COPY_AND_ASSIGN(InputEvent
);
37 } // namespace content
39 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_