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

Unified Diff: components/view_manager/public/cpp/view_surface.h

Issue 1344573002: Mandoline: Rename components/view_manager to components/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 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/view_manager/public/cpp/view_surface.h
diff --git a/components/view_manager/public/cpp/view_surface.h b/components/view_manager/public/cpp/view_surface.h
deleted file mode 100644
index 6cf3aa27d1bd2f8de7701f8a492a13035e7584f6..0000000000000000000000000000000000000000
--- a/components/view_manager/public/cpp/view_surface.h
+++ /dev/null
@@ -1,54 +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_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_H_
-#define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_H_
-
-#include "base/observer_list.h"
-#include "components/view_manager/public/interfaces/compositor_frame.mojom.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/interface_ptr_info.h"
-
-namespace mojo {
-
-class ViewSurfaceClient;
-class View;
-
-// A ViewSurface is wrapper to simplify submitting CompositorFrames to Views,
-// and receiving ReturnedResources.
-class ViewSurface : public mojo::SurfaceClient {
- public:
- ~ViewSurface() override;
-
- // Called to indicate that the current thread has assumed control of this
- // object.
- void BindToThread();
-
-
- // TODO(fsamuel): Add a callback.
- void SubmitCompositorFrame(mojo::CompositorFramePtr frame);
-
- void set_client(mojo::ViewSurfaceClient* client) { client_ = client; }
-
- private:
- friend class mojo::View;
-
- ViewSurface(mojo::InterfacePtrInfo<mojo::Surface> surface_info,
- mojo::InterfaceRequest<mojo::SurfaceClient> client_request);
-
- // SurfaceClient implementation:
- void ReturnResources(
- mojo::Array<mojo::ReturnedResourcePtr> resources) override;
-
- mojo::ViewSurfaceClient* client_;
- mojo::InterfacePtrInfo<mojo::Surface> surface_info_;
- mojo::InterfaceRequest<mojo::SurfaceClient> client_request_;
- mojo::SurfacePtr surface_;
- mojo::Binding<mojo::SurfaceClient> client_binding_;
- bool bound_to_thread_;
-};
-
-} // namespace mojo
-
-#endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_SURFACE_H_
« no previous file with comments | « components/view_manager/public/cpp/view_property.h ('k') | components/view_manager/public/cpp/view_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698