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

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

Issue 1307533002: [Mac] Enable MacViews bookmark bubble behind --enable-mac-views-dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@modal
Patch Set: Rebase atop https://codereview.chromium.org/1309583002/ 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
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 "chrome/browser/ui/bookmarks/bookmark_editor.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_editor.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 class Browser; 13 class Browser;
14 class GURL; 14 class GURL;
15 class LoginHandler; 15 class LoginHandler;
16 class Profile; 16 class Profile;
17 class SkBitmap; 17 class SkBitmap;
18 18
19 namespace bookmarks {
20 class BookmarkBubbleObserver;
21 }
22
19 namespace content { 23 namespace content {
20 class BrowserContext; 24 class BrowserContext;
21 class ColorChooser; 25 class ColorChooser;
22 struct SSLStatus; 26 struct SSLStatus;
23 class WebContents; 27 class WebContents;
24 } 28 }
25 29
26 namespace extensions { 30 namespace extensions {
27 class Extension; 31 class Extension;
28 } 32 }
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // dialog using one of the functions below, rather than showing a Cocoa dialog. 92 // dialog using one of the functions below, rather than showing a Cocoa dialog.
89 bool ToolkitViewsDialogsEnabled(); 93 bool ToolkitViewsDialogsEnabled();
90 94
91 // Shows a Views website settings bubble at the given anchor point. 95 // Shows a Views website settings bubble at the given anchor point.
92 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point, 96 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point,
93 Profile* profile, 97 Profile* profile,
94 content::WebContents* web_contents, 98 content::WebContents* web_contents,
95 const GURL& url, 99 const GURL& url,
96 const content::SSLStatus& ssl); 100 const content::SSLStatus& ssl);
97 101
102 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point,
103 gfx::NativeView parent,
104 bookmarks::BookmarkBubbleObserver* observer,
105 Browser* browser,
106 const GURL& url,
107 bool newly_bookmarked);
108
98 #endif // OS_MACOSX 109 #endif // OS_MACOSX
99 110
100 #if defined(TOOLKIT_VIEWS) 111 #if defined(TOOLKIT_VIEWS)
101 112
102 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). 113 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog).
103 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, 114 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info,
104 net::URLRequest* request); 115 net::URLRequest* request);
105 116
106 // Shows the toolkit-views based BookmarkEditor. 117 // Shows the toolkit-views based BookmarkEditor.
107 void ShowBookmarkEditorView(gfx::NativeWindow parent_window, 118 void ShowBookmarkEditorView(gfx::NativeWindow parent_window,
108 Profile* profile, 119 Profile* profile,
109 const BookmarkEditor::EditDetails& details, 120 const BookmarkEditor::EditDetails& details,
110 BookmarkEditor::Configuration configuration); 121 BookmarkEditor::Configuration configuration);
111 122
112 #endif // TOOLKIT_VIEWS 123 #endif // TOOLKIT_VIEWS
113 124
114 } // namespace chrome 125 } // namespace chrome
115 126
116 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 127 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_bubble_observer.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698