[M47_2526] Chromium upversion to m47_2526 branch
[platform/framework/web/chromium-efl.git] / tizen_src / chromium_impl / ui / ozone / ozone_platform_efl.cc
1 // Copyright (c) 2015 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/ozone/ozone_platform_efl.h"
6
7 #include "base/logging.h"
8 #include "ui/display/types/native_display_delegate.h"
9 #include "ui/ozone/common/stub_overlay_manager.h"
10 #include "ui/ozone/public/gpu_platform_support.h"
11 #include "ui/ozone/public/gpu_platform_support_host.h"
12 #include "ui/ozone/public/system_input_injector.h"
13 #include "ui/ozone/surface_factory_efl.h"
14 #include "ui/platform_window/platform_window.h"
15
16 namespace ui {
17
18 OzonePlatformEfl::OzonePlatformEfl()
19     : surface_factory_(new SurfaceFactoryEfl) {
20 }
21
22 SurfaceFactoryOzone* OzonePlatformEfl::GetSurfaceFactoryOzone() {
23   return surface_factory_.get();
24 }
25
26 OverlayManagerOzone* OzonePlatformEfl::GetOverlayManager() {
27   return overlay_manager_.get();
28 }
29
30 CursorFactoryOzone* OzonePlatformEfl::GetCursorFactoryOzone() {
31   NOTIMPLEMENTED();
32   return NULL;
33 }
34
35 InputController* OzonePlatformEfl::GetInputController() {
36   NOTIMPLEMENTED();
37   return NULL;
38 }
39
40 GpuPlatformSupport* OzonePlatformEfl::GetGpuPlatformSupport() {
41   return gpu_platform_.get();
42 }
43
44 GpuPlatformSupportHost* OzonePlatformEfl::GetGpuPlatformSupportHost() {
45   return gpu_platform_host_.get();
46 }
47
48 scoped_ptr<SystemInputInjector> OzonePlatformEfl::CreateSystemInputInjector() {
49   NOTIMPLEMENTED();
50   return NULL;
51 }
52
53 scoped_ptr<PlatformWindow> OzonePlatformEfl::CreatePlatformWindow(
54     PlatformWindowDelegate* delegate,
55     const gfx::Rect& bounds) {
56   NOTIMPLEMENTED();
57   return NULL;
58 }
59
60 scoped_ptr<ui::NativeDisplayDelegate> OzonePlatformEfl::CreateNativeDisplayDelegate() {
61   NOTIMPLEMENTED();
62   return NULL;
63 }
64
65 base::ScopedFD OzonePlatformEfl::OpenClientNativePixmapDevice() const {
66   return base::ScopedFD();
67 }
68
69 void OzonePlatformEfl::InitializeUI() {
70   gpu_platform_host_.reset(CreateStubGpuPlatformSupportHost());
71   overlay_manager_.reset(new StubOverlayManager());
72 }
73
74 void OzonePlatformEfl::InitializeGPU() {
75   gpu_platform_.reset(CreateStubGpuPlatformSupport());
76 }
77
78 OzonePlatform* CreateOzonePlatformEfl() {
79   return new OzonePlatformEfl;
80 }
81
82 } // namespace ui