Chromium Code Reviews| Index: content/common/input/input_event.h |
| diff --git a/content/common/input/input_event.h b/content/common/input/input_event.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..628294e712f46dc825f346cab5f2fd350210fff5 |
| --- /dev/null |
| +++ b/content/common/input/input_event.h |
| @@ -0,0 +1,35 @@ |
| +// 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_INPUT_EVENT_H_ |
| +#define CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "content/common/content_export.h" |
| +#include "content/common/input/input_event_state.h" |
| + |
| +namespace content { |
| + |
| +class CONTENT_EXPORT InputEvent { |
| + public: |
| + enum Type { |
|
nduca
2013/08/15 01:22:46
can we use pure inheritance here and make this a p
jdduke (slow)
2013/08/15 15:23:45
I think we need some kind of residual type data he
|
| + GENERIC, |
| + WEB, |
| + }; |
| + |
| + virtual ~InputEvent(); |
| + |
| + Type type; |
| + int64 id; |
| + |
| + protected: |
| + InputEvent(Type type, int64 id); |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(InputEvent); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ |