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

Unified Diff: chrome/common/media_iph.mojom

Issue 2943983003: chrome/blink: Add functionality for in-product help for media elements. (Closed)
Patch Set: 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: chrome/common/media_iph.mojom
diff --git a/chrome/common/media_iph.mojom b/chrome/common/media_iph.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..f2fa10ee7df25b9302ac3295b7d069ff4f0addd9
--- /dev/null
+++ b/chrome/common/media_iph.mojom
@@ -0,0 +1,26 @@
+// 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 chrome.mojom;
+
+import "ui/gfx/geometry/mojo/geometry.mojom";
+
+// Browser-side service used by the renderer for showing the IPH UI widget/popup
+// for the media download button.
+interface MediaIPHService {
+ // The position of the button in the frame's local coordinate space, where the
+ // UI widget should be anchored.
+ ShowIPHWidget(gfx.mojom.Rect button_rect, bool new_request);
+
+ // Hide the widget currently being shown for this frame.
+ HideIPHWidget();
+};
+
+// Renderer-side service to listen to notifications when the UI widget on the
+// browser is dismissed/removed.
+interface MediaIPHDelegateService {
+ // 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