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

Side by Side Diff: content/common/input/ipc_input_event_payload.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: Win export fix Created 7 years, 3 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_IPC_INPUT_EVENT_PAYLOAD_H_
6 #define CONTENT_COMMON_INPUT_IPC_INPUT_EVENT_PAYLOAD_H_
7
8 #include "base/basictypes.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 // Wraps a generic IPC message of type InputMsg_*.
16 class CONTENT_EXPORT IPCInputEventPayload : public InputEvent::Payload {
17 public:
18 static scoped_ptr<IPCInputEventPayload> Create();
19 static scoped_ptr<IPCInputEventPayload> Create(
20 scoped_ptr<IPC::Message> message);
21
22 static const IPCInputEventPayload* Cast(const Payload* payload);
23
24 virtual ~IPCInputEventPayload();
25
26 // InputEvent::Payload
27 virtual Type GetType() const OVERRIDE;
28
29 scoped_ptr<IPC::Message> message;
30
31 protected:
32 IPCInputEventPayload();
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(IPCInputEventPayload);
36 };
37
38 } // namespace content
39
40 #endif // CONTENT_COMMON_INPUT_IPC_INPUT_EVENT_PAYLOAD_H_
OLDNEW
« no previous file with comments | « content/common/input/input_param_traits_unittest.cc ('k') | content/common/input/ipc_input_event_payload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698