Chromium Code Reviews| Index: chrome/common/extensions/api/easy_unlock_private.idl |
| diff --git a/chrome/common/extensions/api/easy_unlock_private.idl b/chrome/common/extensions/api/easy_unlock_private.idl |
| index c65ac7d8d2cca44915afeb0bef8ce4f2cd641649..9baa776ccbef3f098eb21eee31df436ebb23b04c 100644 |
| --- a/chrome/common/extensions/api/easy_unlock_private.idl |
| +++ b/chrome/common/extensions/api/easy_unlock_private.idl |
| @@ -148,6 +148,20 @@ namespace easyUnlockPrivate { |
| boolean dataReady; |
| }; |
| + // A range. |
| + dictionary Range { |
| + long start; |
| + long end; |
| + }; |
| + |
| + // A rectangle. |
|
Yoyo Zhou
2015/01/21 01:12:30
What are the units?
Ilya Sherman
2015/01/22 02:26:27
Done.
|
| + dictionary Rect { |
| + long left; |
| + long top; |
| + long width; |
| + long height; |
| + }; |
| + |
| // Callback for crypto methods that return a single array buffer. |
| callback DataCallback = void(optional ArrayBuffer data); |
| @@ -327,6 +341,17 @@ namespace easyUnlockPrivate { |
| // deviceAddress. |
| static void getConnectionInfo(DOMString deviceAddress, |
| ConnectionInfoCallback callback); |
| + |
| + // Shows an error bubble with the given |message|, anchored to an edge of |
| + // the given |anchorRect| -- typically the right edge, but possibly a |
| + // different edge if there is not space for the bubble to the right of the |
| + // anchor rectangle. If the |link_range| is non-empty, renders the text |
| + // within the |message| that is contained in the |link_range| as a link with |
| + // the given |link_target| URL. |
| + static void showErrorBubble(DOMString message, |
| + Range link_range, |
| + DOMString link_target, |
| + Rect anchorRect); |
| }; |
| interface Events { |