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

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

Issue 2765263002: Remove deprecated Ozone initialization functions. (Closed)
Patch Set: Rebase. Created 3 years, 8 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') | ui/ozone/public/ozone_platform.cc » ('j') | 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"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // internal functionality. Embedders wishing to take advantage of ozone mojo 119 // internal functionality. Embedders wishing to take advantage of ozone mojo
120 // implementations must invoke AddInterfaces with a valid 120 // implementations must invoke AddInterfaces with a valid
121 // service_manager::InterfaceRegistry* pointer to export all Mojo interfaces 121 // service_manager::InterfaceRegistry* pointer to export all Mojo interfaces
122 // defined within Ozone. 122 // defined within Ozone.
123 // 123 //
124 // A default do-nothing implementation is provided to permit platform 124 // A default do-nothing implementation is provided to permit platform
125 // implementations to opt out of implementing any Mojo interfaces. 125 // implementations to opt out of implementing any Mojo interfaces.
126 virtual void AddInterfaces(service_manager::InterfaceRegistry* registry); 126 virtual void AddInterfaces(service_manager::InterfaceRegistry* registry);
127 127
128 private: 128 private:
129 virtual void InitializeUI() = 0; 129 virtual void InitializeUI(const InitParams& params) = 0;
130 virtual void InitializeGPU() = 0; 130 virtual void InitializeGPU(const InitParams& params) = 0;
131 virtual void InitializeUI(const InitParams& args);
132 virtual void InitializeGPU(const InitParams& args);
133 131
134 static OzonePlatform* instance_; 132 static OzonePlatform* instance_;
135 133
136 DISALLOW_COPY_AND_ASSIGN(OzonePlatform); 134 DISALLOW_COPY_AND_ASSIGN(OzonePlatform);
137 }; 135 };
138 136
139 } // namespace ui 137 } // namespace ui
140 138
141 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_ 139 #endif // UI_OZONE_PUBLIC_OZONE_PLATFORM_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/x11/ozone_platform_x11.cc ('k') | ui/ozone/public/ozone_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698