OLD | NEW |
(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_INPUT_EVENT_H_ |
| 6 #define CONTENT_COMMON_INPUT_GENERIC_INPUT_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 GenericInputEvent : public InputEvent { |
| 17 public: |
| 18 static scoped_ptr<GenericInputEvent> Create(); |
| 19 static scoped_ptr<GenericInputEvent> Create(int64 id, |
| 20 scoped_ptr<IPC::Message> message); |
| 21 |
| 22 virtual ~GenericInputEvent(); |
| 23 |
| 24 scoped_ptr<IPC::Message> message; |
| 25 |
| 26 static const GenericInputEvent* EventCast(const InputEvent* event); |
| 27 |
| 28 protected: |
| 29 explicit GenericInputEvent(int64 id); |
| 30 }; |
| 31 |
| 32 } // namespace content |
| 33 |
| 34 #endif // CONTENT_COMMON_INPUT_GENERIC_INPUT_EVENT_H_ |
OLD | NEW |