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 #include "ui/ozone/platform/caca/ozone_platform_caca.h" | 5 #include "ui/ozone/platform/caca/ozone_platform_caca.h" |
6 | 6 |
7 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | |
8 #include "ui/ozone/ozone_platform.h" | 7 #include "ui/ozone/ozone_platform.h" |
9 #include "ui/ozone/platform/caca/caca_connection.h" | 8 #include "ui/ozone/platform/caca/caca_connection.h" |
10 #include "ui/ozone/platform/caca/caca_event_factory.h" | 9 #include "ui/ozone/platform/caca/caca_event_factory.h" |
11 #include "ui/ozone/platform/caca/caca_surface_factory.h" | 10 #include "ui/ozone/platform/caca/caca_surface_factory.h" |
| 11 #include "ui/ozone/public/cursor_factory_ozone.h" |
12 | 12 |
13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
14 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" | 14 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" |
15 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" | 15 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" |
16 #endif | 16 #endif |
17 | 17 |
18 namespace ui { | 18 namespace ui { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 class OzonePlatformCaca : public OzonePlatform { | 22 class OzonePlatformCaca : public OzonePlatform { |
23 public: | 23 public: |
24 OzonePlatformCaca() {} | 24 OzonePlatformCaca() {} |
25 virtual ~OzonePlatformCaca() {} | 25 virtual ~OzonePlatformCaca() {} |
26 | 26 |
27 // OzonePlatform: | 27 // OzonePlatform: |
28 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 28 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
29 return surface_factory_ozone_.get(); | 29 return surface_factory_ozone_.get(); |
30 } | 30 } |
31 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 31 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
32 return event_factory_ozone_.get(); | 32 return event_factory_ozone_.get(); |
33 } | 33 } |
34 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 34 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
35 return cursor_factory_ozone_.get(); | 35 return cursor_factory_ozone_.get(); |
36 } | 36 } |
37 | 37 |
38 #if defined(OS_CHROMEOS) | 38 #if defined(OS_CHROMEOS) |
(...skipping 23 matching lines...) Expand all Loading... |
62 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; | 62 scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); | 64 DISALLOW_COPY_AND_ASSIGN(OzonePlatformCaca); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace | 67 } // namespace |
68 | 68 |
69 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } | 69 OzonePlatform* CreateOzonePlatformCaca() { return new OzonePlatformCaca; } |
70 | 70 |
71 } // namespace ui | 71 } // namespace ui |
OLD | NEW |