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

Unified Diff: examples/surfaces_app/child_impl.h

Issue 1534693002: Delete the Surfaces service. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2d
Patch Set: rebase Created 5 years 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
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/child_impl.h
diff --git a/examples/surfaces_app/child_impl.h b/examples/surfaces_app/child_impl.h
deleted file mode 100644
index c5c30f329290d28ca1596f3b60501ff92cfe88c9..0000000000000000000000000000000000000000
--- a/examples/surfaces_app/child_impl.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright 2014 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 EXAMPLES_SURFACES_APP_CHILD_IMPL_H_
-#define EXAMPLES_SURFACES_APP_CHILD_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "cc/surfaces/surface_id.h"
-#include "cc/surfaces/surface_id_allocator.h"
-#include "examples/surfaces_app/child.mojom.h"
-#include "mojo/public/cpp/bindings/string.h"
-#include "mojo/public/cpp/bindings/strong_binding.h"
-#include "mojo/services/surfaces/interfaces/surface_id.mojom.h"
-#include "mojo/services/surfaces/interfaces/surfaces.mojom.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/size.h"
-
-namespace cc {
-class CompositorFrame;
-}
-
-namespace mojo {
-
-class ApplicationConnection;
-
-namespace examples {
-
-// Simple example of a child app using surfaces.
-class ChildImpl : public Child {
- public:
- class Context {
- public:
- virtual ApplicationConnection* ShellConnection(
- const mojo::String& application_url) = 0;
- };
- ChildImpl(ApplicationConnection* surfaces_service_connection,
- InterfaceRequest<Child> request);
- ~ChildImpl() override;
-
- private:
- using ProduceCallback = mojo::Callback<void(SurfaceIdPtr id)>;
-
- void SetIdNamespace(uint32_t id_namespace);
-
- // Child implementation.
- void ProduceFrame(ColorPtr color,
- SizePtr size,
- const ProduceCallback& callback) override;
-
- scoped_ptr<cc::SurfaceIdAllocator> allocator_;
- SurfacePtr surface_;
- uint32_t id_namespace_;
- StrongBinding<Child> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(ChildImpl);
-};
-
-} // namespace examples
-} // namespace mojo
-
-#endif // EXAMPLES_SURFACES_APP_CHILD_IMPL_H_
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698