OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_OZONE_PLATFORM_H_ | 5 #ifndef UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ |
6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ | 6 #define UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ |
7 | 7 |
8 #include "base/files/scoped_file.h" | |
9 #include "base/macros.h" | 8 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
11 #include "ui/ozone/ozone_export.h" | 10 #include "ui/ozone/ozone_export.h" |
12 | 11 |
13 namespace gfx { | 12 namespace gfx { |
14 class Rect; | 13 class Rect; |
15 } | 14 } |
16 | 15 |
17 namespace ui { | 16 namespace ui { |
18 | 17 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; | 62 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; |
64 virtual ui::InputController* GetInputController() = 0; | 63 virtual ui::InputController* GetInputController() = 0; |
65 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0; | 64 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0; |
66 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; | 65 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; |
67 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; | 66 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; |
68 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( | 67 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( |
69 PlatformWindowDelegate* delegate, | 68 PlatformWindowDelegate* delegate, |
70 const gfx::Rect& bounds) = 0; | 69 const gfx::Rect& bounds) = 0; |
71 virtual scoped_ptr<ui::NativeDisplayDelegate> | 70 virtual scoped_ptr<ui::NativeDisplayDelegate> |
72 CreateNativeDisplayDelegate() = 0; | 71 CreateNativeDisplayDelegate() = 0; |
73 // Open ClientNativePixmap device file for non-GPU processes to import a | |
74 // ClientNativePixmap. | |
75 virtual base::ScopedFD OpenClientNativePixmapDevice() const = 0; | |
76 | 72 |
77 private: | 73 private: |
78 virtual void InitializeUI() = 0; | 74 virtual void InitializeUI() = 0; |
79 virtual void InitializeGPU() = 0; | 75 virtual void InitializeGPU() = 0; |
80 | 76 |
81 static void CreateInstance(); | 77 static void CreateInstance(); |
82 | 78 |
83 static OzonePlatform* instance_; | 79 static OzonePlatform* instance_; |
84 | 80 |
85 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); | 81 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); |
86 }; | 82 }; |
87 | 83 |
88 } // namespace ui | 84 } // namespace ui |
89 | 85 |
90 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ | 86 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ |
OLD | NEW |