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

Unified Diff: chrome/common/extensions/api/easy_unlock_private.idl

Issue 843023002: [Smart Lock] Add a private API to show an error bubble anchored to the Smart Lock app window. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update error message strings Created 5 years, 11 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/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..162926576101ad036707c3c441734c3e73d9e9c9 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.
+ 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,15 @@ namespace easyUnlockPrivate {
// deviceAddress.
static void getConnectionInfo(DOMString deviceAddress,
ConnectionInfoCallback callback);
+
+ // Shows an error bubble with the given |message|, anchored to the given
+ // |anchorRect|. If the |link_range| is non-empty, renders the text within
Tim Song 2015/01/15 19:29:24 Can you clarify what it means to be anchored to a
Ilya Sherman 2015/01/16 05:39:42 Done.
+ // 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 {

Powered by Google App Engine
This is Rietveld 408576698