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

Unified Diff: chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h

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 StyledLabel to specify a preferred size 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/browser/ui/proximity_auth/proximity_auth_error_bubble.h
diff --git a/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h b/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h
new file mode 100644
index 0000000000000000000000000000000000000000..a91201d37685a526a559ace26560aff71f8d7251
--- /dev/null
+++ b/chrome/browser/ui/proximity_auth/proximity_auth_error_bubble.h
@@ -0,0 +1,38 @@
+// Copyright 2014 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.
+
+#ifndef CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
+#define CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
+
+#include "base/macros.h"
+#include "base/strings/string16.h"
+#include "url/gurl.h"
+
+namespace content {
+class WebContents;
+}
+
+namespace gfx {
+class Range;
+class Rect;
+}
+
+class ProximityAuthErrorBubble {
sky 2015/01/20 16:24:36 Is there a reason you need a class here and not ju
Ilya Sherman 2015/01/22 02:26:27 Done.
+ public:
+ // Shows an error bubble with the given |message|, with an arrow pointing to
+ // the |anchor_rect|. If the |link_range| is non-empty, then that range of the
+ // |message| is drawn as a link with |link_url| as the target. When the link
+ // is clicked, the target URL opens in a new tab off of the given
+ // |web_contents|.
+ static void ShowErrorBubble(const base::string16& message,
+ const gfx::Range& link_range,
+ const GURL& link_url,
+ const gfx::Rect& anchor_rect,
+ content::WebContents* web_contents);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ProximityAuthErrorBubble);
+};
+
+#endif // CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_

Powered by Google App Engine
This is Rietveld 408576698