Chromium Code Reviews| Index: content/common/input/generic_event.h |
| diff --git a/content/common/input/generic_event.h b/content/common/input/generic_event.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..84fa60d9fc9d1ef3db7f5570116548ec2a5dcc27 |
| --- /dev/null |
| +++ b/content/common/input/generic_event.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_COMMON_INPUT_GENERIC_EVENT_H_ |
| +#define CONTENT_COMMON_INPUT_GENERIC_EVENT_H_ |
| + |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/input_event.h" |
| +#include "ipc/ipc_message.h" |
| + |
| +namespace content { |
| + |
| +// An event with a generic IPC message payload of type InputMsg_*. |
| +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.
|
| + public: |
| + static scoped_ptr<GenericEvent> Create(); |
| + static scoped_ptr<GenericEvent> Create(int64 id, |
| + scoped_ptr<IPC::Message> message); |
| + |
| + scoped_ptr<IPC::Message> message; |
| + |
| + static const GenericEvent* EventCast(const InputEvent* event); |
| + |
| + protected: |
| + GenericEvent(int64 id); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_INPUT_GENERIC_EVENT_H_ |