OLD | NEW |
(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 }; |
OLD | NEW |