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

Unified Diff: components/mus/public/cpp/window.h

Issue 1484533002: mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Sadrul's comments Created 5 years, 1 month 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 | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/public/cpp/window_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/window.h
diff --git a/components/mus/public/cpp/window.h b/components/mus/public/cpp/window.h
index fef5d10361a9f871c5bbdda7b04472f371073a59..9da43ce6f31e9c5d07e5cb7dde6f8d78401be0c0 100644
--- a/components/mus/public/cpp/window.h
+++ b/components/mus/public/cpp/window.h
@@ -29,6 +29,7 @@ namespace mus {
class ServiceProviderImpl;
class WindowObserver;
class WindowSurface;
+class WindowSurfaceBinding;
class WindowTreeClientImpl;
class WindowTreeConnection;
@@ -87,6 +88,9 @@ class Window {
scoped_ptr<WindowSurface> RequestSurface(mojom::SurfaceType type);
+ void AttachSurface(mojom::SurfaceType type,
+ scoped_ptr<WindowSurfaceBinding> surface_binding);
+
// The template-ized versions of the following methods rely on the presence
// of a mojo::TypeConverter<const std::vector<uint8_t>, T>.
// Sets a shared property on the window which is sent to the window server and
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.cc ('k') | components/mus/public/cpp/window_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698