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_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |
6 #define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ | 6 #define UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |
7 | 7 |
8 #include "ui/events/ozone/evdev/event_factory.h" | 8 #include "ui/events/ozone/evdev/event_factory.h" |
9 #include "ui/gfx/ozone/dri/dri_surface_factory.h" | 9 #include "ui/gfx/ozone/dri/dri_surface_factory.h" |
10 #include "ui/ozone/ozone_platform.h" | 10 #include "ui/ozone/ozone_platform.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure) | 14 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure) |
15 // | 15 // |
16 // This platform is Linux without any display server (no X, wayland, or | 16 // This platform is Linux without any display server (no X, wayland, or |
17 // anything). This means chrome alone owns the display and input devices. | 17 // anything). This means chrome alone owns the display and input devices. |
18 class OzonePlatformDri : public OzonePlatform { | 18 class OzonePlatformDri : public OzonePlatform { |
19 public: | 19 public: |
20 OzonePlatformDri(); | 20 OzonePlatformDri(); |
21 virtual ~OzonePlatformDri(); | 21 virtual ~OzonePlatformDri(); |
22 | 22 |
23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; | 23 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; |
24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; | 24 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; |
25 virtual ui::InputMethodContextFactoryOzone* | 25 virtual ui::InputMethodContextFactoryOzone* |
26 GetInputMethodContextFactoryOzone() OVERRIDE; | 26 GetInputMethodContextFactoryOzone() OVERRIDE; |
| 27 virtual gfx::OverlayHALOzone* GetOverlayHALOzone() OVERRIDE; |
27 | 28 |
28 private: | 29 private: |
29 gfx::DriSurfaceFactory surface_factory_ozone_; | 30 gfx::DriSurfaceFactory surface_factory_ozone_; |
30 ui::EventFactoryEvdev event_factory_ozone_; | 31 ui::EventFactoryEvdev event_factory_ozone_; |
31 // This creates a minimal input context. | 32 // This creates a minimal input context. |
32 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; | 33 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; |
33 | 34 |
34 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 35 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
35 }; | 36 }; |
36 | 37 |
37 // Constructor hook for use in ozone_platform_list.cc | 38 // Constructor hook for use in ozone_platform_list.cc |
38 OzonePlatform* CreateOzonePlatformDri(); | 39 OzonePlatform* CreateOzonePlatformDri(); |
39 | 40 |
40 } // namespace ui | 41 } // namespace ui |
41 | 42 |
42 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ | 43 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ |
OLD | NEW |