OLD | NEW |
(Empty) | |
| 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. |
| 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 // 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); |
| 30 |
| 31 #endif // CHROME_BROWSER_UI_PROXIMITY_AUTH_PROXIMITY_AUTH_ERROR_BUBBLE_H_ |
OLD | NEW |