| 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 "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 11 | 12 |
| 12 class Browser; | 13 class Browser; |
| 13 class GURL; | 14 class GURL; |
| 14 class LoginHandler; | 15 class LoginHandler; |
| 15 class Profile; | 16 class Profile; |
| 16 class SkBitmap; | 17 class SkBitmap; |
| 17 | 18 |
| 19 namespace bookmarks { |
| 20 class BookmarkBubbleObserver; |
| 21 } |
| 22 |
| 18 namespace content { | 23 namespace content { |
| 19 class BrowserContext; | 24 class BrowserContext; |
| 20 class ColorChooser; | 25 class ColorChooser; |
| 21 struct SSLStatus; | 26 struct SSLStatus; |
| 22 class WebContents; | 27 class WebContents; |
| 23 } | 28 } |
| 24 | 29 |
| 25 namespace extensions { | 30 namespace extensions { |
| 26 class Extension; | 31 class Extension; |
| 27 } | 32 } |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // 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. |
| 88 bool ToolkitViewsDialogsEnabled(); | 93 bool ToolkitViewsDialogsEnabled(); |
| 89 | 94 |
| 90 // Shows a Views website settings bubble at the given anchor point. | 95 // Shows a Views website settings bubble at the given anchor point. |
| 91 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point, | 96 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point, |
| 92 Profile* profile, | 97 Profile* profile, |
| 93 content::WebContents* web_contents, | 98 content::WebContents* web_contents, |
| 94 const GURL& url, | 99 const GURL& url, |
| 95 const content::SSLStatus& ssl); | 100 const content::SSLStatus& ssl); |
| 96 | 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 |
| 97 #endif // OS_MACOSX | 109 #endif // OS_MACOSX |
| 98 | 110 |
| 99 #if defined(TOOLKIT_VIEWS) | 111 #if defined(TOOLKIT_VIEWS) |
| 100 | 112 |
| 101 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). | 113 // Creates a toolkit-views based LoginHandler (e.g. HTTP-Auth dialog). |
| 102 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, | 114 LoginHandler* CreateLoginHandlerViews(net::AuthChallengeInfo* auth_info, |
| 103 net::URLRequest* request); | 115 net::URLRequest* request); |
| 104 | 116 |
| 117 // Shows the toolkit-views based BookmarkEditor. |
| 118 void ShowBookmarkEditorView(gfx::NativeWindow parent_window, |
| 119 Profile* profile, |
| 120 const BookmarkEditor::EditDetails& details, |
| 121 BookmarkEditor::Configuration configuration); |
| 122 |
| 105 #endif // TOOLKIT_VIEWS | 123 #endif // TOOLKIT_VIEWS |
| 106 | 124 |
| 107 } // namespace chrome | 125 } // namespace chrome |
| 108 | 126 |
| 109 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 127 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |