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

Unified Diff: mojo/examples/surfaces_app/child_impl.h

Issue 504443002: Update mojo surfaces bindings and mojo/cc/ glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gn fixes Created 6 years, 4 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
« no previous file with comments | « mojo/examples/surfaces_app/child_gl_impl.cc ('k') | mojo/examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/surfaces_app/child_impl.h
diff --git a/mojo/examples/surfaces_app/child_impl.h b/mojo/examples/surfaces_app/child_impl.h
index 338b17f3d104f70a9400fcdebda837b88f7ed878..ca65db0a7008529c440c98faaa623473db40ac2c 100644
--- a/mojo/examples/surfaces_app/child_impl.h
+++ b/mojo/examples/surfaces_app/child_impl.h
@@ -6,12 +6,14 @@
#define MOJO_EXAMPLES_SURFACES_APP_CHILD_IMPL_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 "mojo/examples/surfaces_app/child.mojom.h"
#include "mojo/public/cpp/bindings/string.h"
#include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h"
#include "mojo/services/public/interfaces/surfaces/surfaces.mojom.h"
+#include "mojo/services/public/interfaces/surfaces/surfaces_service.mojom.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/size.h"
@@ -41,7 +43,6 @@ class ChildImpl : public InterfaceImpl<Child>, public SurfaceClient {
virtual ~ChildImpl();
// SurfaceClient implementation
- virtual void SetIdNamespace(uint32_t id_namespace) OVERRIDE;
virtual void ReturnResources(
Array<ReturnedResourcePtr> resources) OVERRIDE;
@@ -52,14 +53,17 @@ class ChildImpl : public InterfaceImpl<Child>, public SurfaceClient {
SizePtr size,
const mojo::Callback<void(SurfaceIdPtr id)>& callback) OVERRIDE;
+ void SurfaceConnectionCreated(SurfacePtr surface, uint32_t id_namespace);
void Draw();
SkColor color_;
gfx::Size size_;
scoped_ptr<cc::SurfaceIdAllocator> allocator_;
+ SurfacesServicePtr surfaces_service_;
SurfacePtr surface_;
cc::SurfaceId id_;
mojo::Callback<void(SurfaceIdPtr id)> produce_callback_;
+ base::WeakPtrFactory<ChildImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildImpl);
};
« no previous file with comments | « mojo/examples/surfaces_app/child_gl_impl.cc ('k') | mojo/examples/surfaces_app/child_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698