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

Side by Side Diff: content/common/input/generic_event.h

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate InputEvent types for events based on WebKit::WebInputEvent Created 7 years, 4 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
(Empty)
1 // Copyright (c) 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.
4
5 #ifndef CONTENT_COMMON_INPUT_GENERIC_EVENT_H_
6 #define CONTENT_COMMON_INPUT_GENERIC_EVENT_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "content/common/content_export.h"
10 #include "content/common/input/input_event.h"
11 #include "ipc/ipc_message.h"
12
13 namespace content {
14
15 // An event with a generic IPC message payload of type InputMsg_*.
16 class CONTENT_EXPORT GenericEvent : public InputEvent {
nduca 2013/08/15 01:22:46 GenericInputEvent since it subtypes from InputEven
jdduke (slow) 2013/08/15 15:23:45 Done.
17 public:
18 static scoped_ptr<GenericEvent> Create();
19 static scoped_ptr<GenericEvent> Create(int64 id,
20 scoped_ptr<IPC::Message> message);
21
22 scoped_ptr<IPC::Message> message;
23
24 static const GenericEvent* EventCast(const InputEvent* event);
25
26 protected:
27 GenericEvent(int64 id);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_COMMON_INPUT_GENERIC_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698