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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module chrome.mojom;
6
7 import "ui/gfx/geometry/mojo/geometry.mojom";
8
9 // Browser-side service used by the renderer for showing the IPH UI widget/popup
10 // for the media download button.
11 interface MediaIPHService {
12 // The position of the button in the frame's local coordinate space, where the
13 // UI widget should be anchored.
14 ShowIPHWidget(gfx.mojom.Rect button_rect, bool new_request);
15
16 // Hide the widget currently being shown for this frame.
17 HideIPHWidget();
18 };
19
20 // Renderer-side service to listen to notifications when the UI widget on the
21 // browser is dismissed/removed.
22 interface MediaIPHDelegateService {
23 // Informs the renderer that the UI widget shown for this button in the
24 // browser was dismissed.
25 WidgetDismissed();
26 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698