Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ui/ozone/platform/dri/ozone_platform_dri.h

Issue 205433005: ozone: Add OzoneWindowFactory & OzoneWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_evdev.h" 8 #include "ui/events/ozone/evdev/event_factory_evdev.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 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h" 11 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h"
12 #include "ui/ozone/platform/dri/window_factory_dri.h"
12 13
13 namespace ui { 14 namespace ui {
14 15
15 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure) 16 // OzonePlatform for Linux DRI (Direct Rendering Infrastructure)
16 // 17 //
17 // This platform is Linux without any display server (no X, wayland, or 18 // This platform is Linux without any display server (no X, wayland, or
18 // anything). This means chrome alone owns the display and input devices. 19 // anything). This means chrome alone owns the display and input devices.
19 class OzonePlatformDri : public OzonePlatform { 20 class OzonePlatformDri : public OzonePlatform {
20 public: 21 public:
21 OzonePlatformDri(); 22 OzonePlatformDri();
22 virtual ~OzonePlatformDri(); 23 virtual ~OzonePlatformDri();
23 24
24 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE; 25 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE;
25 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE; 26 virtual ui::EventFactoryOzone* GetEventFactoryOzone() OVERRIDE;
26 virtual ui::InputMethodContextFactoryOzone* 27 virtual ui::InputMethodContextFactoryOzone*
27 GetInputMethodContextFactoryOzone() OVERRIDE; 28 GetInputMethodContextFactoryOzone() OVERRIDE;
28 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE; 29 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE;
30 virtual ui::WindowFactoryOzone* GetWindowFactoryOzone() OVERRIDE;
29 31
30 private: 32 private:
31 gfx::DriSurfaceFactory surface_factory_ozone_; 33 gfx::DriSurfaceFactory surface_factory_ozone_;
32 ui::CursorFactoryEvdevDri cursor_factory_ozone_; 34 ui::CursorFactoryEvdevDri cursor_factory_ozone_;
33 ui::EventFactoryEvdev event_factory_ozone_; 35 ui::EventFactoryEvdev event_factory_ozone_;
34 // This creates a minimal input context. 36 // This creates a minimal input context.
35 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; 37 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_;
38 ui::WindowFactoryDri window_factory_ozone_;
36 39
37 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); 40 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
38 }; 41 };
39 42
40 // Constructor hook for use in ozone_platform_list.cc 43 // Constructor hook for use in ozone_platform_list.cc
41 OzonePlatform* CreateOzonePlatformDri(); 44 OzonePlatform* CreateOzonePlatformDri();
42 45
43 } // namespace ui 46 } // namespace ui
44 47
45 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_ 48 #endif // UI_OZONE_PLATFORM_DRI_OZONE_PLATFORM_DRI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698