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

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

Issue 230763004: Split ui/display types into separate module and have Ozone depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 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 #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 #if defined(OS_CHROMEOS)
11 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h"
12 #endif
13
10 namespace ui { 14 namespace ui {
11 15
12 OzonePlatformDri::OzonePlatformDri() 16 OzonePlatformDri::OzonePlatformDri()
13 : cursor_factory_ozone_(&surface_factory_ozone_), 17 : cursor_factory_ozone_(&surface_factory_ozone_),
14 event_factory_ozone_(&cursor_factory_ozone_) {} 18 event_factory_ozone_(&cursor_factory_ozone_) {}
15 19
16 OzonePlatformDri::~OzonePlatformDri() {} 20 OzonePlatformDri::~OzonePlatformDri() {}
17 21
18 gfx::SurfaceFactoryOzone* OzonePlatformDri::GetSurfaceFactoryOzone() { 22 gfx::SurfaceFactoryOzone* OzonePlatformDri::GetSurfaceFactoryOzone() {
19 return &surface_factory_ozone_; 23 return &surface_factory_ozone_;
20 } 24 }
21 25
22 ui::EventFactoryOzone* OzonePlatformDri::GetEventFactoryOzone() { 26 ui::EventFactoryOzone* OzonePlatformDri::GetEventFactoryOzone() {
23 return &event_factory_ozone_; 27 return &event_factory_ozone_;
24 } 28 }
25 29
26 ui::InputMethodContextFactoryOzone* 30 ui::InputMethodContextFactoryOzone*
27 OzonePlatformDri::GetInputMethodContextFactoryOzone() { 31 OzonePlatformDri::GetInputMethodContextFactoryOzone() {
28 return &input_method_context_factory_ozone_; 32 return &input_method_context_factory_ozone_;
29 } 33 }
30 34
31 ui::CursorFactoryOzone* OzonePlatformDri::GetCursorFactoryOzone() { 35 ui::CursorFactoryOzone* OzonePlatformDri::GetCursorFactoryOzone() {
32 return &cursor_factory_ozone_; 36 return &cursor_factory_ozone_;
33 } 37 }
34 38
39 #if defined(OS_CHROMEOS)
40 scoped_ptr<ui::NativeDisplayDelegate>
41 OzonePlatformDri::CreateNativeDisplayDelegate() {
42 return scoped_ptr<ui::NativeDisplayDelegate>(
43 new NativeDisplayDelegateOzone());
44 }
45 #endif
46
35 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } 47 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; }
36 48
37 } // namespace ui 49 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/ozone_platform_dri.h ('k') | ui/ozone/platform/test/ozone_platform_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698