| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_OZONE_OZONE_PLATFORM_H_ | 5 #ifndef UI_OZONE_OZONE_PLATFORM_H_ |
| 6 #define UI_OZONE_OZONE_PLATFORM_H_ | 6 #define UI_OZONE_OZONE_PLATFORM_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/events/ozone/event_factory_ozone.h" | 9 #include "ui/events/ozone/event_factory_ozone.h" |
| 10 #include "ui/gfx/ozone/surface_factory_ozone.h" | 10 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // inject these objects themselves. Ownership is retained by OzonePlatform. | 40 // inject these objects themselves. Ownership is retained by OzonePlatform. |
| 41 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; | 41 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; |
| 42 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; | 42 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 static OzonePlatform* instance_; | 45 static OzonePlatform* instance_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); | 47 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 // Hook to be provided by the built-in default implementation. | |
| 51 OzonePlatform* CreateDefaultOzonePlatform(); | |
| 52 | |
| 53 } // namespace ui | 50 } // namespace ui |
| 54 | 51 |
| 55 #endif // UI_OZONE_OZONE_PLATFORM_H_ | 52 #endif // UI_OZONE_OZONE_PLATFORM_H_ |
| OLD | NEW |