| 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 #include "ui/ozone/platform/dri/ozone_platform_dri.h" | 5 #include "ui/ozone/platform/dri/ozone_platform_dri.h" |
| 6 | 6 |
| 7 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 7 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 8 #include "ui/ozone/ozone_platform.h" | 8 #include "ui/ozone/ozone_platform.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 OzonePlatformDri::OzonePlatformDri() | 12 OzonePlatformDri::OzonePlatformDri() |
| 13 : cursor_factory_ozone_(&surface_factory_ozone_), | 13 : cursor_factory_ozone_(&surface_factory_ozone_), |
| 14 event_factory_ozone_(&cursor_factory_ozone_) {} | 14 event_factory_ozone_(&cursor_factory_ozone_), |
| 15 window_factory_ozone_(&surface_factory_ozone_) {} |
| 15 | 16 |
| 16 OzonePlatformDri::~OzonePlatformDri() {} | 17 OzonePlatformDri::~OzonePlatformDri() {} |
| 17 | 18 |
| 18 gfx::SurfaceFactoryOzone* OzonePlatformDri::GetSurfaceFactoryOzone() { | 19 gfx::SurfaceFactoryOzone* OzonePlatformDri::GetSurfaceFactoryOzone() { |
| 19 return &surface_factory_ozone_; | 20 return &surface_factory_ozone_; |
| 20 } | 21 } |
| 21 | 22 |
| 22 ui::EventFactoryOzone* OzonePlatformDri::GetEventFactoryOzone() { | 23 ui::EventFactoryOzone* OzonePlatformDri::GetEventFactoryOzone() { |
| 23 return &event_factory_ozone_; | 24 return &event_factory_ozone_; |
| 24 } | 25 } |
| 25 | 26 |
| 26 ui::InputMethodContextFactoryOzone* | 27 ui::InputMethodContextFactoryOzone* |
| 27 OzonePlatformDri::GetInputMethodContextFactoryOzone() { | 28 OzonePlatformDri::GetInputMethodContextFactoryOzone() { |
| 28 return &input_method_context_factory_ozone_; | 29 return &input_method_context_factory_ozone_; |
| 29 } | 30 } |
| 30 | 31 |
| 31 ui::CursorFactoryOzone* OzonePlatformDri::GetCursorFactoryOzone() { | 32 ui::CursorFactoryOzone* OzonePlatformDri::GetCursorFactoryOzone() { |
| 32 return &cursor_factory_ozone_; | 33 return &cursor_factory_ozone_; |
| 33 } | 34 } |
| 34 | 35 |
| 36 ui::WindowFactoryOzone* OzonePlatformDri::GetWindowFactoryOzone() { |
| 37 return &window_factory_ozone_; |
| 38 } |
| 39 |
| 35 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } | 40 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } |
| 36 | 41 |
| 37 } // namespace ui | 42 } // namespace ui |
| OLD | NEW |