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

Unified Diff: third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom

Issue 1019173002: Update mojo sdk to rev 7214b7ec7d27563b2666afad86cf1c5895c56c18 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep permission service alive if embedder drops requests Created 5 years, 9 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: third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom
diff --git a/third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom b/third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom
index 75757c21f4814f24f81243e2ff2377b2f9c5b936..21cace63071dda8b53476cde964a057d866ea9b0 100644
--- a/third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom
+++ b/third_party/mojo_services/src/native_viewport/public/interfaces/native_viewport.mojom
@@ -5,9 +5,8 @@
module mojo;
import "geometry/public/interfaces/geometry.mojom";
-import "gpu/public/interfaces/command_buffer.mojom";
+import "gpu/public/interfaces/context_provider.mojom";
import "input_events/public/interfaces/input_events.mojom";
-import "surfaces/public/interfaces/surface_id.mojom";
struct ViewportMetrics {
Size size;
@@ -17,15 +16,18 @@ struct ViewportMetrics {
interface NativeViewport {
// TODO(sky): having a create function is awkward. Should there be a factory
// to create the NativeViewport that takes the size?
- Create(Size size) => (uint64 native_viewport_id, ViewportMetrics metrics);
+ Create(Size size) => (ViewportMetrics metrics);
Show();
Hide();
Close();
SetSize(Size size);
- SubmittedFrame(SurfaceId surface_id);
SetEventDispatcher(NativeViewportEventDispatcher dispatcher);
+ // Requests a ContextProvider capable of producing contexts that draw to
+ // this native viewport.
+ GetContextProvider(ContextProvider& provider);
+
// The initial viewport metrics will be sent in the reply to the Create
// method. Call RequestMetrics() to receive updates when the viewport metrics
// change. The reply will be sent when the viewport metrics are different from

Powered by Google App Engine
This is Rietveld 408576698