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 "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "ui/events/ozone/device/device_manager.h" | 8 #include "ui/events/ozone/device/device_manager.h" |
9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| 11 #include "ui/ozone/common/window/platform_window_compat.h" |
11 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h" | 12 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h" |
12 #include "ui/ozone/platform/dri/dri_surface.h" | 13 #include "ui/ozone/platform/dri/dri_surface.h" |
13 #include "ui/ozone/platform/dri/dri_surface_factory.h" | 14 #include "ui/ozone/platform/dri/dri_surface_factory.h" |
14 #include "ui/ozone/platform/dri/dri_wrapper.h" | 15 #include "ui/ozone/platform/dri/dri_wrapper.h" |
15 #include "ui/ozone/platform/dri/scanout_surface.h" | 16 #include "ui/ozone/platform/dri/scanout_surface.h" |
16 #include "ui/ozone/platform/dri/screen_manager.h" | 17 #include "ui/ozone/platform/dri/screen_manager.h" |
17 #include "ui/ozone/platform/dri/virtual_terminal_manager.h" | 18 #include "ui/ozone/platform/dri/virtual_terminal_manager.h" |
18 #include "ui/ozone/public/ozone_platform.h" | 19 #include "ui/ozone/public/ozone_platform.h" |
19 | 20 |
20 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 } | 71 } |
71 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 72 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
72 return cursor_factory_ozone_.get(); | 73 return cursor_factory_ozone_.get(); |
73 } | 74 } |
74 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { | 75 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { |
75 return NULL; // no GPU support | 76 return NULL; // no GPU support |
76 } | 77 } |
77 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { | 78 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { |
78 return NULL; // no GPU support | 79 return NULL; // no GPU support |
79 } | 80 } |
| 81 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 82 PlatformWindowDelegate* delegate, |
| 83 const gfx::Rect& bounds) OVERRIDE { |
| 84 return make_scoped_ptr<PlatformWindow>( |
| 85 new PlatformWindowCompat(delegate, bounds)); |
| 86 } |
80 #if defined(OS_CHROMEOS) | 87 #if defined(OS_CHROMEOS) |
81 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 88 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
82 OVERRIDE { | 89 OVERRIDE { |
83 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( | 90 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( |
84 dri_.get(), screen_manager_.get(), device_manager_.get())); | 91 dri_.get(), screen_manager_.get(), device_manager_.get())); |
85 } | 92 } |
86 virtual scoped_ptr<TouchscreenDeviceManager> | 93 virtual scoped_ptr<TouchscreenDeviceManager> |
87 CreateTouchscreenDeviceManager() OVERRIDE { | 94 CreateTouchscreenDeviceManager() OVERRIDE { |
88 return scoped_ptr<TouchscreenDeviceManager>( | 95 return scoped_ptr<TouchscreenDeviceManager>( |
89 new TouchscreenDeviceManagerOzone()); | 96 new TouchscreenDeviceManagerOzone()); |
(...skipping 22 matching lines...) Expand all Loading... |
112 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 119 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
113 | 120 |
114 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 121 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
115 }; | 122 }; |
116 | 123 |
117 } // namespace | 124 } // namespace |
118 | 125 |
119 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } | 126 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } |
120 | 127 |
121 } // namespace ui | 128 } // namespace ui |
OLD | NEW |