| 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 <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 Loading... |
| 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_ |
| OLD | NEW |