Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / proximity_auth / proximity_auth_error_bubble.h
blob786b4b1fac5372acf58b8cfaf7f0d5544a53e20e
1 // Copyright 2015 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.
5 #ifndef CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
6 #define CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_
8 #include "base/macros.h"
9 #include "base/strings/string16.h"
10 #include "url/gurl.h"
12 namespace content {
13 class WebContents;
16 namespace gfx {
17 class Range;
18 class Rect;
21 // Shows an error bubble with the given |message|, with an arrow pointing to the
22 // |anchor_rect|. If the |link_range| is non-empty, then that range of the
23 // |message| is drawn as a link with |link_url| as the target. When the link is
24 // clicked, the target URL opens in a new tab off of the given |web_contents|.
25 void ShowProximityAuthErrorBubble(const base::string16& message,
26 const gfx::Range& link_range,
27 const GURL& link_url,
28 const gfx::Rect& anchor_rect,
29 content::WebContents* web_contents);
31 // Hides the currently displayed error bubble, if any.
32 void HideProximityAuthErrorBubble();
34 #endif // CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_