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

Unified Diff: third_party/WebKit/public/platform/media_in_product_help.mojom

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: addressed comments Created 3 years, 6 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/WebKit/public/platform/media_in_product_help.mojom
diff --git a/third_party/WebKit/public/platform/media_in_product_help.mojom b/third_party/WebKit/public/platform/media_in_product_help.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..143b03f19d211a025ad87c04ef6e6962b592c95a
--- /dev/null
+++ b/third_party/WebKit/public/platform/media_in_product_help.mojom
@@ -0,0 +1,27 @@
+// Copyright 2017 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.
+
+module blink.mojom;
+
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+// Browser-side service used by the renderer for showing the InProductHelp UI
+// widget/popup for the media download button.
+interface MediaInProductHelp {
+ // The position of the button in the frame's local coordinate space, where the
+ // UI widget should be anchored.
+ // The request_id denotes the element making the request.
+ ShowInProductHelpWidget(gfx.mojom.Rect button_rect);
+
+ // Hide the widget currently being shown for this frame.
+ HideInProductHelpWidget();
+};
+
+// Renderer-side service to listen to notifications when the UI widget on the
+// browser is dismissed/removed.
+interface MediaInProductHelpDelegate {
+ // Informs the renderer that the UI widget shown for this button in the
+ // browser was dismissed.
+ WidgetDismissed();
+};

Powered by Google App Engine
This is Rietveld 408576698