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"
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
,
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_