OLD | NEW |
---|---|
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ | 5 #ifndef UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ |
6 #define UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ | 6 #define UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "ui/events/events_export.h" | |
10 | |
8 namespace ui { | 11 namespace ui { |
9 class Event; | 12 class Event; |
10 class EventFactoryOzone; | 13 class EventFactoryOzone; |
11 | 14 |
12 // An embedder can install an instance of this interface to take control of | 15 // An embedder can install an instance of this interface to take control of |
13 // what |EventConverterOzone| objects get created on the creation of | 16 // what |EventConverterOzone| objects get created on the creation of |
14 // the |RootWindowHostOzone| object. | 17 // the |RootWindowHostOzone| object. |
15 class EVENTS_EXPORT EventFactoryDelegateOzone { | 18 class EVENTS_EXPORT EventFactoryDelegateOzone { |
16 public: | 19 public: |
17 EventFactoryDelegateOzone(); | 20 EventFactoryDelegateOzone() {} |
18 virtual ~EventFactoryDelegateOzone(); | 21 virtual ~EventFactoryDelegateOzone() {} |
rjkroege
2013/10/18 18:57:55
clang on at least some platforms requires virtual
spang
2013/10/21 18:46:12
Will create event_factory_delegate_ozone.cc
| |
19 | 22 |
20 // Override this method with embedder-appropriate converter creation. | 23 // Override this method with embedder-appropriate converter creation. |
21 virtual void CreateStartupEventConverters(EventFactoryOzone* factory) = 0; | 24 virtual void CreateStartupEventConverters(EventFactoryOzone* factory) = 0; |
22 | 25 |
23 private: | 26 private: |
24 DISALLOW_COPY_AND_ASSIGN(EventFactoryDelegateOzone); | 27 DISALLOW_COPY_AND_ASSIGN(EventFactoryDelegateOzone); |
25 }; | 28 }; |
26 | 29 |
27 } // namespace ui | 30 } // namespace ui |
28 | 31 |
29 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ | 32 #endif // UI_EVENTS_OZONE_EVENT_FACTORY_DELEGATE_OZONE_H_ |
OLD | NEW |