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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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/platform/x11/ozone_platform_x11.cc ('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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "ui/ozone/ozone_export.h" 11 #include "ui/ozone/ozone_export.h"
12 12
13 namespace display {
14 class NativeDisplayDelegate;
15 }
16
13 namespace gfx { 17 namespace gfx {
14 class Rect; 18 class Rect;
15 } 19 }
16 20
17 namespace IPC { 21 namespace IPC {
18 class MessageFilter; 22 class MessageFilter;
19 } 23 }
20 24
21 namespace service_manager { 25 namespace service_manager {
22 class Connector; 26 class Connector;
23 class InterfaceRegistry; 27 class InterfaceRegistry;
24 } 28 }
25 29
26 namespace ui { 30 namespace ui {
27 31
28 class CursorFactoryOzone; 32 class CursorFactoryOzone;
29 class InputController; 33 class InputController;
30 class GpuPlatformSupportHost; 34 class GpuPlatformSupportHost;
31 class NativeDisplayDelegate;
32 class OverlayManagerOzone; 35 class OverlayManagerOzone;
33 class PlatformWindow; 36 class PlatformWindow;
34 class PlatformWindowDelegate; 37 class PlatformWindowDelegate;
35 class SurfaceFactoryOzone; 38 class SurfaceFactoryOzone;
36 class SystemInputInjector; 39 class SystemInputInjector;
37 40
38 // Base class for Ozone platform implementations. 41 // Base class for Ozone platform implementations.
39 // 42 //
40 // Ozone platforms must override this class and implement the virtual 43 // Ozone platforms must override this class and implement the virtual
41 // GetFooFactoryOzone() methods to provide implementations of the 44 // GetFooFactoryOzone() methods to provide implementations of the
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0; 98 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() = 0;
96 virtual ui::OverlayManagerOzone* GetOverlayManager() = 0; 99 virtual ui::OverlayManagerOzone* GetOverlayManager() = 0;
97 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0; 100 virtual ui::CursorFactoryOzone* GetCursorFactoryOzone() = 0;
98 virtual ui::InputController* GetInputController() = 0; 101 virtual ui::InputController* GetInputController() = 0;
99 virtual IPC::MessageFilter* GetGpuMessageFilter(); 102 virtual IPC::MessageFilter* GetGpuMessageFilter();
100 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0; 103 virtual ui::GpuPlatformSupportHost* GetGpuPlatformSupportHost() = 0;
101 virtual std::unique_ptr<SystemInputInjector> CreateSystemInputInjector() = 0; 104 virtual std::unique_ptr<SystemInputInjector> CreateSystemInputInjector() = 0;
102 virtual std::unique_ptr<PlatformWindow> CreatePlatformWindow( 105 virtual std::unique_ptr<PlatformWindow> CreatePlatformWindow(
103 PlatformWindowDelegate* delegate, 106 PlatformWindowDelegate* delegate,
104 const gfx::Rect& bounds) = 0; 107 const gfx::Rect& bounds) = 0;
105 virtual std::unique_ptr<ui::NativeDisplayDelegate> 108 virtual std::unique_ptr<display::NativeDisplayDelegate>
106 CreateNativeDisplayDelegate() = 0; 109 CreateNativeDisplayDelegate() = 0;
107 110
108 // Ozone platform implementations may also choose to expose mojo interfaces to 111 // Ozone platform implementations may also choose to expose mojo interfaces to
109 // internal functionality. Embedders wishing to take advantage of ozone mojo 112 // internal functionality. Embedders wishing to take advantage of ozone mojo
110 // implementations must invoke AddInterfaces with a valid 113 // implementations must invoke AddInterfaces with a valid
111 // service_manager::InterfaceRegistry* pointer to export all Mojo interfaces 114 // service_manager::InterfaceRegistry* pointer to export all Mojo interfaces
112 // defined within Ozone. 115 // defined within Ozone.
113 // 116 //
114 // A default do-nothing implementation is provided to permit platform 117 // A default do-nothing implementation is provided to permit platform
115 // implementations to opt out of implementing any Mojo interfaces. 118 // implementations to opt out of implementing any Mojo interfaces.
116 virtual void AddInterfaces(service_manager::InterfaceRegistry* registry); 119 virtual void AddInterfaces(service_manager::InterfaceRegistry* registry);
117 120
118 private: 121 private:
119 virtual void InitializeUI() = 0; 122 virtual void InitializeUI() = 0;
120 virtual void InitializeGPU() = 0; 123 virtual void InitializeGPU() = 0;
121 virtual void InitializeUI(const InitParams& args); 124 virtual void InitializeUI(const InitParams& args);
122 virtual void InitializeGPU(const InitParams& args); 125 virtual void InitializeGPU(const InitParams& args);
123 126
124 static void CreateInstance(); 127 static void CreateInstance();
125 128
126 static OzonePlatform* instance_; 129 static OzonePlatform* instance_;
127 130
128 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 131 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
129 }; 132 };
130 133
131 } // namespace ui 134 } // namespace ui
132 135
133 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 136 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/x11/ozone_platform_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698