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/ssl/security_state_model.h" |
9 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 11 #include "third_party/skia/include/core/SkColor.h" |
11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
12 | 13 |
13 class Browser; | 14 class Browser; |
14 class GURL; | 15 class GURL; |
15 class LoginHandler; | 16 class LoginHandler; |
16 class Profile; | 17 class Profile; |
17 class SkBitmap; | 18 class SkBitmap; |
18 | 19 |
19 namespace bookmarks { | 20 namespace bookmarks { |
20 class BookmarkBubbleObserver; | 21 class BookmarkBubbleObserver; |
21 } | 22 } |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 class BrowserContext; | 25 class BrowserContext; |
25 class ColorChooser; | 26 class ColorChooser; |
26 struct SSLStatus; | |
27 class WebContents; | 27 class WebContents; |
28 } | 28 } |
29 | 29 |
30 namespace extensions { | 30 namespace extensions { |
31 class Extension; | 31 class Extension; |
32 } | 32 } |
33 | 33 |
34 namespace gfx { | 34 namespace gfx { |
35 class Point; | 35 class Point; |
36 } | 36 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | 86 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
87 SkColor initial_color); | 87 SkColor initial_color); |
88 | 88 |
89 #if defined(OS_MACOSX) | 89 #if defined(OS_MACOSX) |
90 | 90 |
91 // For Mac, returns true if Chrome should show an equivalent toolkit-views based | 91 // For Mac, returns true if Chrome should show an equivalent toolkit-views based |
92 // 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. |
93 bool ToolkitViewsDialogsEnabled(); | 93 bool ToolkitViewsDialogsEnabled(); |
94 | 94 |
95 // Shows a Views website settings bubble at the given anchor point. | 95 // Shows a Views website settings bubble at the given anchor point. |
96 void ShowWebsiteSettingsBubbleViewsAtPoint(const gfx::Point& anchor_point, | 96 void ShowWebsiteSettingsBubbleViewsAtPoint( |
97 Profile* profile, | 97 const gfx::Point& anchor_point, |
98 content::WebContents* web_contents, | 98 Profile* profile, |
99 const GURL& url, | 99 content::WebContents* web_contents, |
100 const content::SSLStatus& ssl); | 100 const GURL& url, |
| 101 const SecurityStateModel::SecurityInfo& security_info); |
101 | 102 |
102 // Show a Views bookmark bubble at the given point. This occurs when the | 103 // 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 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu |
104 // or via a key equivalent. | 105 // or via a key equivalent. |
105 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, | 106 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, |
106 gfx::NativeView parent, | 107 gfx::NativeView parent, |
107 bookmarks::BookmarkBubbleObserver* observer, | 108 bookmarks::BookmarkBubbleObserver* observer, |
108 Browser* browser, | 109 Browser* browser, |
109 const GURL& url, | 110 const GURL& url, |
110 bool newly_bookmarked); | 111 bool newly_bookmarked); |
(...skipping 10 matching lines...) Expand all Loading... |
121 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 122 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
122 Profile* profile, | 123 Profile* profile, |
123 const BookmarkEditor::EditDetails& details, | 124 const BookmarkEditor::EditDetails& details, |
124 BookmarkEditor::Configuration configuration); | 125 BookmarkEditor::Configuration configuration); |
125 | 126 |
126 #endif // TOOLKIT_VIEWS | 127 #endif // TOOLKIT_VIEWS |
127 | 128 |
128 } // namespace chrome | 129 } // namespace chrome |
129 | 130 |
130 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 131 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |