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

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

Issue 2004043003: Expose the MacViewsWebUIDialogs feature flag to chrome://flags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160520-Enums-MakeThemInt-HeaderChanges-ROLLUP
Patch Set: no c/b/ui for android Created 4 years, 7 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
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 "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" 10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h"
11 #include "components/security_state/security_state_model.h" 11 #include "components/security_state/security_state_model.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
14 14
15 class Browser; 15 class Browser;
16 class ContentSettingBubbleModel; 16 class ContentSettingBubbleModel;
17 class GURL; 17 class GURL;
18 class LoginHandler; 18 class LoginHandler;
19 class Profile; 19 class Profile;
20 20
21 namespace base {
22 struct Feature;
23 }
24
21 namespace bookmarks { 25 namespace bookmarks {
22 class BookmarkBubbleObserver; 26 class BookmarkBubbleObserver;
23 } 27 }
24 28
25 namespace content { 29 namespace content {
26 class BrowserContext; 30 class BrowserContext;
27 class ColorChooser; 31 class ColorChooser;
28 class WebContents; 32 class WebContents;
29 } 33 }
30 34
(...skipping 10 matching lines...) Expand all
41 class URLRequest; 45 class URLRequest;
42 } 46 }
43 47
44 namespace ui { 48 namespace ui {
45 class TableModel; 49 class TableModel;
46 class WebDialogDelegate; 50 class WebDialogDelegate;
47 } 51 }
48 52
49 namespace chrome { 53 namespace chrome {
50 54
55 #if defined(OS_MACOSX)
56 // Makes ToolkitViewsWebUIDialogsEnabled() available to chrome://flags.
57 extern const base::Feature kMacViewsWebUIDialogs;
58 #endif // OS_MACOSX
59
51 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash. 60 // Shows or hides the Task Manager. |browser| can be NULL when called from Ash.
52 // Returns a pointer to the underlying TableModel, which can be ignored, or used 61 // Returns a pointer to the underlying TableModel, which can be ignored, or used
53 // for testing. 62 // for testing.
54 ui::TableModel* ShowTaskManager(Browser* browser); 63 ui::TableModel* ShowTaskManager(Browser* browser);
55 void HideTaskManager(); 64 void HideTaskManager();
56 65
57 #if !defined(OS_MACOSX) 66 #if !defined(OS_MACOSX)
58 // Creates and shows an HTML dialog with the given delegate and context. 67 // Creates and shows an HTML dialog with the given delegate and context.
59 // The window is automatically destroyed when it is closed. 68 // The window is automatically destroyed when it is closed.
60 // Returns the created window. 69 // Returns the created window.
(...skipping 21 matching lines...) Expand all
82 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, 91 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents,
83 SkColor initial_color); 92 SkColor initial_color);
84 93
85 #if defined(OS_MACOSX) 94 #if defined(OS_MACOSX)
86 95
87 // For Mac, returns true if Chrome should show an equivalent toolkit-views based 96 // For Mac, returns true if Chrome should show an equivalent toolkit-views based
88 // dialog using one of the functions below, rather than showing a Cocoa dialog. 97 // dialog using one of the functions below, rather than showing a Cocoa dialog.
89 bool ToolkitViewsDialogsEnabled(); 98 bool ToolkitViewsDialogsEnabled();
90 99
91 // For Mac, returns true if Chrome should show an equivalent toolkit-views based 100 // For Mac, returns true if Chrome should show an equivalent toolkit-views based
92 // dialog instead of a WebUI-styled Cocoa dialog. ToolkitViewsDialogsEnabled() 101 // dialog instead of a WebUI-styled Cocoa dialog.
93 // implies ToolkitViewsWebUIDialogsEnabled().
94 bool ToolkitViewsWebUIDialogsEnabled(); 102 bool ToolkitViewsWebUIDialogsEnabled();
95 103
96 // Shows a Views website settings bubble at the given anchor point. 104 // Shows a Views website settings bubble at the given anchor point.
97 void ShowWebsiteSettingsBubbleViewsAtPoint( 105 void ShowWebsiteSettingsBubbleViewsAtPoint(
98 const gfx::Point& anchor_point, 106 const gfx::Point& anchor_point,
99 Profile* profile, 107 Profile* profile,
100 content::WebContents* web_contents, 108 content::WebContents* web_contents,
101 const GURL& url, 109 const GURL& url,
102 const security_state::SecurityStateModel::SecurityInfo& security_info); 110 const security_state::SecurityStateModel::SecurityInfo& security_info);
103 111
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge); 151 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleViewsBridge);
144 }; 152 };
145 153
146 #endif // OS_MACOSX 154 #endif // OS_MACOSX
147 155
148 #endif // TOOLKIT_VIEWS 156 #endif // TOOLKIT_VIEWS
149 157
150 } // namespace chrome 158 } // namespace chrome
151 159
152 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 160 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698