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 UI_EVENTS_OZONE_OZONE_PLATFORM_H_ | |
| 6 #define UI_EVENTS_OZONE_OZONE_PLATFORM_H_ | |
| 7 | |
| 8 #include "base/memory/scoped_ptr.h" | |
| 9 #include "ui/events/ozone/event_factory_ozone.h" | |
| 10 #include "ui/gfx/ozone/surface_factory_ozone.h" | |
| 11 #include "ui/ozone/ozone_export.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 | |
| 15 class OZONE_EXPORT OzonePlatform { | |
|
rjkroege
2013/10/25 18:24:02
this class is part of the external ozone api. it n
| |
| 16 public: | |
| 17 OzonePlatform(); | |
| 18 virtual ~OzonePlatform(); | |
| 19 | |
| 20 static OzonePlatform* Create(); | |
| 21 | |
| 22 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; | |
| 23 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; | |
| 24 | |
| 25 private: | |
| 26 static OzonePlatform* instance_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); | |
| 29 }; | |
| 30 | |
| 31 // Hook to be provided by the built-in default implementation. | |
| 32 OzonePlatform* CreateDefaultOzonePlatform(); | |
| 33 | |
| 34 } // namespace ui | |
| 35 | |
| 36 #endif // UI_OZONE_OZONE_PLATFORM_H_ | |
| OLD | NEW |