| 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/overlay_hal_ozone.h" |
| 10 #include "ui/gfx/ozone/surface_factory_ozone.h" | 11 #include "ui/gfx/ozone/surface_factory_ozone.h" |
| 11 #include "ui/ozone/ime/input_method_context_factory_ozone.h" | 12 #include "ui/ozone/ime/input_method_context_factory_ozone.h" |
| 12 #include "ui/ozone/ozone_export.h" | 13 #include "ui/ozone/ozone_export.h" |
| 13 | 14 |
| 14 namespace ui { | 15 namespace ui { |
| 15 | 16 |
| 16 // Base class for Ozone platform implementations. | 17 // Base class for Ozone platform implementations. |
| 17 // | 18 // |
| 18 // Ozone platforms must override this class and implement the virtual | 19 // Ozone platforms must override this class and implement the virtual |
| 19 // GetFooFactoryOzone() methods to provide implementations of the | 20 // GetFooFactoryOzone() methods to provide implementations of the |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 // EventFactoryOzone will be set. | 37 // EventFactoryOzone will be set. |
| 37 static void Initialize(); | 38 static void Initialize(); |
| 38 | 39 |
| 39 // Factory getters to override in subclasses. The returned objects will be | 40 // Factory getters to override in subclasses. The returned objects will be |
| 40 // injected into the appropriate layer at startup. Subclasses should not | 41 // injected into the appropriate layer at startup. Subclasses should not |
| 41 // inject these objects themselves. Ownership is retained by OzonePlatform. | 42 // inject these objects themselves. Ownership is retained by OzonePlatform. |
| 42 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; | 43 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; |
| 43 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; | 44 virtual ui::EventFactoryOzone* GetEventFactoryOzone() = 0; |
| 44 virtual ui::InputMethodContextFactoryOzone* | 45 virtual ui::InputMethodContextFactoryOzone* |
| 45 GetInputMethodContextFactoryOzone() = 0; | 46 GetInputMethodContextFactoryOzone() = 0; |
| 47 virtual gfx::OverlayHALOzone* GetOverlayHALOzone() = 0; |
| 46 | 48 |
| 47 private: | 49 private: |
| 48 static OzonePlatform* instance_; | 50 static OzonePlatform* instance_; |
| 49 | 51 |
| 50 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); | 52 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace ui | 55 } // namespace ui |
| 54 | 56 |
| 55 #endif // UI_OZONE_OZONE_PLATFORM_H_ | 57 #endif // UI_OZONE_OZONE_PLATFORM_H_ |
| OLD | NEW |