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

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

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.h
diff --git a/services/native_viewport/ozone/app_delegate_ozone.h b/services/native_viewport/ozone/native_viewport_app_ozone.h
similarity index 50%
rename from services/native_viewport/ozone/app_delegate_ozone.h
rename to services/native_viewport/ozone/native_viewport_app_ozone.h
index c500206d3cacad7f1b14d79357b4a42090e0d530..3d87fce1f6eb924bfdb419705392d2df72b0e9d0 100644
--- a/services/native_viewport/ozone/app_delegate_ozone.h
+++ b/services/native_viewport/ozone/native_viewport_app_ozone.h
@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_OZONE_H_
-#define SERVICES_NATIVE_VIEWPORT_APP_DELEGATE_OZONE_H_
+#ifndef SERVICES_NATIVE_VIEWPORT_OZONE_NATIVE_VIEWPORT_APP_OZONE_H_
+#define SERVICES_NATIVE_VIEWPORT_OZONE_NATIVE_VIEWPORT_APP_OZONE_H_
-#include "services/native_viewport/app_delegate.h"
+#include "services/native_viewport/native_viewport_app.h"
#include "services/native_viewport/ozone/display_manager.h"
namespace native_viewport {
-class NativeViewportOzoneAppDelegate : public NativeViewportAppDelegate {
+class NativeViewportAppOzone : public NativeViewportApp {
public:
- using NativeViewportAppDelegate::Create;
+ using NativeViewportApp::Create;
- void Initialize(mojo::ApplicationImpl* application) override;
- bool ConfigureIncomingConnection(
+ void OnInitialize() override;
+ bool OnAcceptConnection(
mojo::ServiceProviderImpl* service_provider_impl) override;
private:
@@ -24,4 +24,4 @@ class NativeViewportOzoneAppDelegate : public NativeViewportAppDelegate {
} // namespace native_viewport
-#endif
+#endif // SERVICES_NATIVE_VIEWPORT_OZONE_NATIVE_VIEWPORT_APP_OZONE_H_
« no previous file with comments | « services/native_viewport/ozone/app_delegate_ozone.cc ('k') | services/native_viewport/ozone/native_viewport_app_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698