OLD | NEW |
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 Loading... |
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 // Show a Views bookmark bubble at the given point. This occurs when the |
| 103 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu |
| 104 // or via a key equivalent. |
| 105 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, |
| 106 gfx::NativeView parent, |
| 107 bookmarks::BookmarkBubbleObserver* observer, |
| 108 Browser* browser, |
| 109 const GURL& url, |
| 110 bool newly_bookmarked); |
| 111 |
98 #endif // OS_MACOSX | 112 #endif // OS_MACOSX |
99 | 113 |
100 #if defined(TOOLKIT_VIEWS) | 114 #if defined(TOOLKIT_VIEWS) |
101 | 115 |
102 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). | 116 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). |
103 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, | 117 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, |
104 net::URLRequest* request); | 118 net::URLRequest* request); |
105 | 119 |
106 // Shows the toolkit-views based BookmarkEditor. | 120 // Shows the toolkit-views based BookmarkEditor. |
107 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 121 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
108 Profile* profile, | 122 Profile* profile, |
109 const BookmarkEditor::EditDetails& details, | 123 const BookmarkEditor::EditDetails& details, |
110 BookmarkEditor::Configuration configuration); | 124 BookmarkEditor::Configuration configuration); |
111 | 125 |
112 #endif // TOOLKIT_VIEWS | 126 #endif // TOOLKIT_VIEWS |
113 | 127 |
114 } // namespace chrome | 128 } // namespace chrome |
115 | 129 |
116 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 130 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |