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

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

Issue 1309273005: native_viewport support for ozone (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 3 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
« no previous file with comments | « ui/ozone/public/ipc_init_helper_ozone.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 } 13 }
14 14
15 namespace ui { 15 namespace ui {
16 16
17 class CursorFactoryOzone; 17 class CursorFactoryOzone;
18 class InputController; 18 class InputController;
19 class GpuPlatformSupport; 19 class GpuPlatformSupport;
20 class GpuPlatformSupportHost; 20 class GpuPlatformSupportHost;
21 class NativeDisplayDelegate; 21 class NativeDisplayDelegate;
22 class OverlayManagerOzone; 22 class OverlayManagerOzone;
23 class PlatformWindow; 23 class PlatformWindow;
24 class PlatformWindowDelegate; 24 class PlatformWindowDelegate;
25 class SurfaceFactoryOzone; 25 class SurfaceFactoryOzone;
26 class SystemInputInjector; 26 class SystemInputInjector;
27 class IpcInitHelperOzone;
27 28
28 // Base class for Ozone platform implementations. 29 // Base class for Ozone platform implementations.
29 // 30 //
30 // Ozone platforms must override this class and implement the virtual 31 // Ozone platforms must override this class and implement the virtual
31 // GetFooFactoryOzone() methods to provide implementations of the 32 // GetFooFactoryOzone() methods to provide implementations of the
32 // various ozone interfaces. 33 // various ozone interfaces.
33 // 34 //
34 // The OzonePlatform subclass can own any state needed by the 35 // The OzonePlatform subclass can own any state needed by the
35 // implementation that is shared between the various ozone interfaces, 36 // implementation that is shared between the various ozone interfaces,
36 // such as a connection to the windowing system. 37 // such as a connection to the windowing system.
(...skipping 24 matching lines...) Expand all
61 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 62 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
62 virtual ui::InputController* GetInputController() = 0; 63 virtual ui::InputController* GetInputController() = 0;
63 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0; 64 virtual ui::GpuPlatformSupport* GetGpuPlatformSupport() = 0;
64 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; 65 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
65 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; 66 virtual scoped_ptr<SystemInputInjector> CreateSystemInputInjector() = 0;
66 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( 67 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
67 PlatformWindowDelegate* delegate, 68 PlatformWindowDelegate* delegate,
68 const gfx::Rect& bounds) = 0; 69 const gfx::Rect& bounds) = 0;
69 virtual scoped_ptr<ui::NativeDisplayDelegate> 70 virtual scoped_ptr<ui::NativeDisplayDelegate>
70 CreateNativeDisplayDelegate() = 0; 71 CreateNativeDisplayDelegate() = 0;
72 virtual ui::IpcInitHelperOzone* GetIpcInitHelperOzone() = 0;
71 73
72 private: 74 private:
73 virtual void InitializeUI() = 0; 75 virtual void InitializeUI() = 0;
74 virtual void InitializeGPU() = 0; 76 virtual void InitializeGPU() = 0;
75 77
76 static void CreateInstance(); 78 static void CreateInstance();
77 79
78 static OzonePlatform* instance_; 80 static OzonePlatform* instance_;
79 81
80 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 82 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
81 }; 83 };
82 84
83 } // namespace ui 85 } // namespace ui
84 86
85 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 87 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/public/ipc_init_helper_ozone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698