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

Unified Diff: services/native_viewport/ozone/native_viewport_app_ozone.cc

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: services/native_viewport/ozone/native_viewport_app_ozone.cc
diff --git a/services/native_viewport/ozone/app_delegate_ozone.cc b/services/native_viewport/ozone/native_viewport_app_ozone.cc
similarity index 56%
rename from services/native_viewport/ozone/app_delegate_ozone.cc
rename to services/native_viewport/ozone/native_viewport_app_ozone.cc
index 22d964ffad618143933d3b2cd1d08384bde452a7..d24b6e584aeebd35586bf42b43600a471df5621a 100644
--- a/services/native_viewport/ozone/app_delegate_ozone.cc
+++ b/services/native_viewport/ozone/native_viewport_app_ozone.cc
@@ -2,38 +2,36 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "services/native_viewport/ozone/app_delegate_ozone.h"
+#include "services/native_viewport/ozone/native_viewport_app_ozone.h"
#include "ui/ozone/public/ipc_init_helper_mojo.h"
#include "ui/ozone/public/ozone_platform.h"
namespace native_viewport {
-void NativeViewportOzoneAppDelegate::Initialize(
- mojo::ApplicationImpl* application) {
- NativeViewportAppDelegate::Initialize(application);
+void NativeViewportAppOzone::OnInitialize() {
+ NativeViewportApp::OnInitialize();
ui::OzonePlatform::InitializeForUI();
auto ipc_init_helper = static_cast<ui::IpcInitHelperMojo*>(
ui::OzonePlatform::GetInstance()->GetIpcInitHelperOzone());
- ipc_init_helper->HostInitialize(application);
- ipc_init_helper->GpuInitialize(application);
+ ipc_init_helper->HostInitialize(shell());
+ ipc_init_helper->GpuInitialize(shell());
display_manager_.reset(new DisplayManager());
}
-bool NativeViewportOzoneAppDelegate::ConfigureIncomingConnection(
+bool NativeViewportAppOzone::OnAcceptConnection(
ServiceProviderImpl* service_provider_impl) {
- if (!NativeViewportAppDelegate::ConfigureIncomingConnection(
- service_provider_impl))
+ if (!NativeViewportApp::OnAcceptConnection(service_provider_impl))
return false;
auto ipc_init_helper = static_cast<ui::IpcInitHelperMojo*>(
ui::OzonePlatform::GetInstance()->GetIpcInitHelperOzone());
- ipc_init_helper->HostConfigureIncomingConnection(connection);
- ipc_init_helper->GpuConfigureIncomingConnection(connection);
+ ipc_init_helper->HostAcceptConnection(service_provider_impl);
+ ipc_init_helper->GpuAcceptConnection(service_provider_impl);
return true;
}
« no previous file with comments | « services/native_viewport/ozone/native_viewport_app_ozone.h ('k') | services/prediction/prediction_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698