Chromium Code Reviews| 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_INPUT_EVENT_H_ | |
| 6 #define CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 #include "content/common/input/input_event_state.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class CONTENT_EXPORT InputEvent { | |
| 15 public: | |
| 16 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
| |
| 17 GENERIC, | |
| 18 WEB, | |
| 19 }; | |
| 20 | |
| 21 virtual ~InputEvent(); | |
| 22 | |
| 23 Type type; | |
| 24 int64 id; | |
| 25 | |
| 26 protected: | |
| 27 InputEvent(Type type, int64 id); | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(InputEvent); | |
| 31 }; | |
| 32 | |
| 33 } // namespace content | |
| 34 | |
| 35 #endif // CONTENT_COMMON_INPUT_INPUT_EVENT_H_ | |
| OLD | NEW |