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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
6 #define CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
7
8 #include "base/macros.h"
9 #include "base/strings/string16.h"
10 #include "url/gurl.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 namespace gfx {
17 class Range;
18 class Rect;
19 }
20
21 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.
22 public:
23 // Shows an error bubble with the given |message|, with an arrow pointing to
24 // the |anchor_rect|. If the |link_range| is non-empty, then that range of the
25 // |message| is drawn as a link with |link_url| as the target. When the link
26 // is clicked, the target URL opens in a new tab off of the given
27 // |web_contents|.
28 static void ShowErrorBubble(const base::string16& message,
29 const gfx::Range& link_range,
30 const GURL& link_url,
31 const gfx::Rect& anchor_rect,
32 content::WebContents* web_contents);
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(ProximityAuthErrorBubble);
36 };
37
38 #endif // CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698