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(); |
+}; |