Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: chrome/browser/ui/browser_dialogs.h

Issue 1280673003: [Mac] Enable MacViews site settings bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enabledialogs
Patch Set: Address comments. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
11 11
12 class Browser; 12 class Browser;
13 class GURL;
13 class LoginHandler; 14 class LoginHandler;
14 class Profile; 15 class Profile;
15 class SkBitmap; 16 class SkBitmap;
16 17
17 namespace content { 18 namespace content {
18 class BrowserContext; 19 class BrowserContext;
19 class ColorChooser; 20 class ColorChooser;
21 struct SSLStatus;
20 class WebContents; 22 class WebContents;
21 } 23 }
22 24
23 namespace extensions { 25 namespace extensions {
24 class Extension; 26 class Extension;
25 } 27 }
26 28
29 namespace gfx {
30 class Point;
31 }
32
27 namespace net { 33 namespace net {
28 class AuthChallengeInfo; 34 class AuthChallengeInfo;
29 class URLRequest; 35 class URLRequest;
30 } 36 }
31 37
32 namespace ui { 38 namespace ui {
33 class WebDialogDelegate; 39 class WebDialogDelegate;
34 } 40 }
35 41
36 namespace chrome { 42 namespace chrome {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // Shows a color chooser that reports to the given WebContents. 80 // Shows a color chooser that reports to the given WebContents.
75 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, 81 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
76 SkColor initial_color); 82 SkColor initial_color);
77 83
78 #if defined(OS_MACOSX) 84 #if defined(OS_MACOSX)
79 85
80 // For Mac, returns true if Chrome should show an equivalent toolkit-views based 86 // For Mac, returns true if Chrome should show an equivalent toolkit-views based
81 // dialog using one of the functions below, rather than showing a Cocoa dialog. 87 // dialog using one of the functions below, rather than showing a Cocoa dialog.
82 bool ToolkitViewsDialogsEnabled(); 88 bool ToolkitViewsDialogsEnabled();
83 89
90 // Shows a Views website settings bubble at the given anchor point.
91 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point,
92 Profile* profile,
93 content::WebContents* web_contents,
94 const GURL& url,
95 const content::SSLStatus& ssl);
96
84 #endif // OS_MACOSX 97 #endif // OS_MACOSX
85 98
86 #if defined(TOOLKIT_VIEWS) 99 #if defined(TOOLKIT_VIEWS)
87 100
88 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). 101 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog).
89 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, 102 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info,
90 net::URLRequest* request); 103 net::URLRequest* request);
91 104
92 #endif // TOOLKIT_VIEWS 105 #endif // TOOLKIT_VIEWS
93 106
94 } // namespace chrome 107 } // namespace chrome
95 108
96 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 109 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698