Chromium Code Reviews| Index: chrome/browser/ui/browser_dialogs.h |
| diff --git a/chrome/browser/ui/browser_dialogs.h b/chrome/browser/ui/browser_dialogs.h |
| index f83ddbe0b3584b3d1360e032f48b9a2ea88ceebf..c9e1805ccf2148a116a44423bb42451693c4006e 100644 |
| --- a/chrome/browser/ui/browser_dialogs.h |
| +++ b/chrome/browser/ui/browser_dialogs.h |
| @@ -13,10 +13,12 @@ class Browser; |
| class LoginHandler; |
| class Profile; |
| class SkBitmap; |
| +class GURL; |
|
tapted
2015/08/10 05:44:23
nit: sort
jackhou1
2015/08/10 09:11:09
Done.
|
| namespace content { |
| class BrowserContext; |
| class ColorChooser; |
| +struct SSLStatus; |
| class WebContents; |
| } |
| @@ -24,6 +26,10 @@ namespace extensions { |
| class Extension; |
| } |
| +namespace gfx { |
| +class Point; |
| +} |
| + |
| namespace net { |
| class AuthChallengeInfo; |
| class URLRequest; |
| @@ -33,6 +39,10 @@ namespace ui { |
| class WebDialogDelegate; |
| } |
| +namespace views { |
| +class View; |
|
tapted
2015/08/10 05:44:23
this feels out of place here.... Maybe there's a n
jackhou1
2015/08/10 09:11:09
Done.
|
| +} |
| + |
| namespace chrome { |
| // Creates and shows an HTML dialog with the given delegate and context. |
| @@ -81,6 +91,14 @@ content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
| // dialog using one of the functions below, rather than showing a Cocoa dialog. |
| bool ToolkitViewsDialogsEnabled(); |
| +// Shows a Views website settings bubble at the given anchor point. |
| +void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point, |
| + Profile* profile, |
| + content::WebContents* web_contents, |
| + const GURL& url, |
| + const content::SSLStatus& ssl, |
| + Browser* browser); |
| + |
| #endif // OS_MACOSX |
| #if defined(TOOLKIT_VIEWS) |
| @@ -89,6 +107,14 @@ bool ToolkitViewsDialogsEnabled(); |
| LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, |
| net::URLRequest* request); |
| +// Shows a website settings bubble or internal page bubble. |
| +void ShowWebsiteSettingsBubbleViews(views::View* anchor_view, |
| + Profile* profile, |
| + content::WebContents* web_contents, |
| + const GURL& url, |
| + const content::SSLStatus& ssl, |
| + Browser* browser); |
| + |
| #endif // TOOLKIT_VIEWS |
| } // namespace chrome |