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

Side by Side Diff: ui/ozone/public/ozone_platform.h

Issue 1248713002: ozone: ClientPixmapManager passes VGEM fd from browser to renderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to ClientNativePixmapFactory Created 5 years, 4 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
OLDNEW
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/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/ozone/ozone_export.h" 9 #include "ui/ozone/ozone_export.h"
10 10
11 namespace base {
12 struct FileDescriptor;
13 }
14
11 namespace gfx { 15 namespace gfx {
12 class Rect; 16 class Rect;
13 } 17 }
14 18
15 namespace ui { 19 namespace ui {
16 20
17 class CursorFactoryOzone; 21 class CursorFactoryOzone;
18 class InputController; 22 class InputController;
19 class GpuPlatformSupport; 23 class GpuPlatformSupport;
20 class GpuPlatformSupportHost; 24 class GpuPlatformSupportHost;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 65 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
62 virtual ui::InputController* GetInputController() = 0; 66 virtual ui::InputController* GetInputController() = 0;
63 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0; 67 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0;
64 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; 68 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
65 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; 69 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0;
66 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( 70 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
67 PlatformWindowDelegate* delegate, 71 PlatformWindowDelegate* delegate,
68 const gfx::Rect& bounds) = 0; 72 const gfx::Rect& bounds) = 0;
69 virtual scoped_ptr<ui::NativeDisplayDelegate> 73 virtual scoped_ptr<ui::NativeDisplayDelegate>
70 CreateNativeDisplayDelegate() = 0; 74 CreateNativeDisplayDelegate() = 0;
75 // Return virtual device file descriptor for the unprivileged API.
76 virtual base::FileDescriptor GetVirtualDeviceFd() = 0;
71 77
72 private: 78 private:
73 virtual void InitializeUI() = 0; 79 virtual void InitializeUI() = 0;
74 virtual void InitializeGPU() = 0; 80 virtual void InitializeGPU() = 0;
75 81
76 static void CreateInstance(); 82 static void CreateInstance();
77 83
78 static OzonePlatform* instance_; 84 static OzonePlatform* instance_;
79 85
80 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 86 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
81 }; 87 };
82 88
83 } // namespace ui 89 } // namespace ui
84 90
85 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 91 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698