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

Unified Diff: components/native_viewport/native_viewport_application_delegate.h

Issue 1131523007: Move NativeViewport service into view_manager. This is a file move only. Further merging will happe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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: components/native_viewport/native_viewport_application_delegate.h
diff --git a/components/native_viewport/native_viewport_application_delegate.h b/components/native_viewport/native_viewport_application_delegate.h
deleted file mode 100644
index dc65adf40f8f8f94889f048ff4700664c7c3b6be..0000000000000000000000000000000000000000
--- a/components/native_viewport/native_viewport_application_delegate.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
-#define COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
-
-#include "base/macros.h"
-#include "components/gles2/gpu_impl.h"
-#include "components/native_viewport/public/interfaces/native_viewport.mojom.h"
-#include "mojo/application/app_lifetime_helper.h"
-#include "mojo/application/public/cpp/application_delegate.h"
-#include "mojo/application/public/cpp/interface_factory_impl.h"
-#include "mojo/common/tracing_impl.h"
-
-namespace mojo {
-class ApplicationConnection;
-class ApplicationImpl;
-}
-
-namespace ui {
-class PlatformEventSource;
-}
-
-namespace native_viewport {
-
-class NativeViewportApplicationDelegate
- : public mojo::ApplicationDelegate,
- public mojo::InterfaceFactory<mojo::NativeViewport>,
- public mojo::InterfaceFactory<mojo::Gpu> {
- public:
- NativeViewportApplicationDelegate();
- ~NativeViewportApplicationDelegate() override;
-
- private:
- // mojo::ApplicationDelegate implementation.
- void Initialize(mojo::ApplicationImpl* application) override;
- bool ConfigureIncomingConnection(
- mojo::ApplicationConnection* connection) override;
-
- // mojo::InterfaceFactory<NativeViewport> implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::NativeViewport> request) override;
-
- // mojo::InterfaceFactory<Gpu> implementation.
- void Create(mojo::ApplicationConnection* connection,
- mojo::InterfaceRequest<mojo::Gpu> request) override;
-
- scoped_refptr<gles2::GpuState> gpu_state_;
- scoped_ptr<ui::PlatformEventSource> event_source_;
- bool is_headless_;
- mojo::TracingImpl tracing_;
- mojo::AppLifetimeHelper app_lifetime_helper_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationDelegate);
-};
-
-} // namespace native_viewport
-
-#endif // COMPONENTS_NATIVE_VIEWPORT_NATIVE_VIEWPORT_APPLICATION_DELEGATE_H_
« no previous file with comments | « components/native_viewport/main.cc ('k') | components/native_viewport/native_viewport_application_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698