Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |