| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ | 5 #ifndef UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ |
| 6 #define UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ | 6 #define UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ |
| 7 | 7 |
| 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
| 9 #include "ui/ozone/ozone_export.h" | 9 #include "ui/ozone/ozone_export.h" |
| 10 #include "ui/ozone/ozone_platform.h" | 10 #include "ui/ozone/ozone_platform.h" |
| 11 #include "ui/ozone/platform/caca/caca_connection.h" | 11 #include "ui/ozone/platform/caca/caca_connection.h" |
| 12 #include "ui/ozone/platform/caca/caca_event_factory.h" | 12 #include "ui/ozone/platform/caca/caca_event_factory.h" |
| 13 #include "ui/ozone/platform/caca/caca_surface_factory.h" | 13 #include "ui/ozone/platform/caca/caca_surface_factory.h" |
| 14 | 14 |
| 15 namespace ui { | 15 namespace ui { |
| 16 | 16 |
| 17 class CacaConnection; | 17 class CacaConnection; |
| 18 | 18 |
| 19 class OzonePlatformCaca : public OzonePlatform { | 19 class OzonePlatformCaca : public OzonePlatform { |
| 20 public: | 20 public: |
| 21 OzonePlatformCaca(); | 21 OzonePlatformCaca(); |
| 22 virtual ~OzonePlatformCaca(); | 22 virtual ~OzonePlatformCaca(); |
| 23 | 23 |
| 24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; | 24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
| 25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; | 25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
| 26 virtual ui::InputMethodContextFactoryOzone* | 26 virtual ui::InputMethodContextFactoryOzone* |
| 27 GetInputMethodContextFactoryOzone() OVERRIDE; | 27 GetInputMethodContextFactoryOzone() OVERRIDE; |
| 28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; | 28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; |
| 29 virtual ui::NativeDisplayDelegate* CreateNativeDisplayDelegate() OVERRIDE; |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 ui::CacaConnection connection_; | 32 ui::CacaConnection connection_; |
| 32 ui::CacaSurfaceFactory surface_factory_ozone_; | 33 ui::CacaSurfaceFactory surface_factory_ozone_; |
| 33 ui::CacaEventFactory event_factory_ozone_; | 34 ui::CacaEventFactory event_factory_ozone_; |
| 34 // This creates a minimal input context. | 35 // This creates a minimal input context. |
| 35 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; | 36 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; |
| 36 ui::CursorFactoryOzone cursor_factory_ozone_; | 37 ui::CursorFactoryOzone cursor_factory_ozone_; |
| 37 | 38 |
| 38 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 39 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 // Constructor hook for use in ozone_platform_list.cc | 42 // Constructor hook for use in ozone_platform_list.cc |
| 42 OZONE_EXPORT OzonePlatform* CreateOzonePlatformCaca(); | 43 OZONE_EXPORT OzonePlatform* CreateOzonePlatformCaca(); |
| 43 | 44 |
| 44 } // namespace ui | 45 } // namespace ui |
| 45 | 46 |
| 46 #endif // UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ | 47 #endif // UI_OZONE_PLATFORM_CACA_OZONE_PLATFORM_CACA_H_ |
| OLD | NEW |