| 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 <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" | 14 #include "chrome/browser/ui/bookmarks/bookmark_editor.h" |
| 15 #include "components/security_state/security_state_model.h" | |
| 16 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
| 17 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 18 | 17 |
| 19 #if defined(OS_CHROMEOS) | 18 #if defined(OS_CHROMEOS) |
| 20 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" | 19 #include "chrome/browser/chromeos/arc/intent_helper/arc_navigation_throttle.h" |
| 21 #endif // OS_CHROMEOS | 20 #endif // OS_CHROMEOS |
| 22 | 21 |
| 23 class Browser; | 22 class Browser; |
| 24 class ContentSettingBubbleModel; | 23 class ContentSettingBubbleModel; |
| 25 class GURL; | 24 class GURL; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 47 namespace gfx { | 46 namespace gfx { |
| 48 class Image; | 47 class Image; |
| 49 class Point; | 48 class Point; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace net { | 51 namespace net { |
| 53 class AuthChallengeInfo; | 52 class AuthChallengeInfo; |
| 54 class URLRequest; | 53 class URLRequest; |
| 55 } | 54 } |
| 56 | 55 |
| 56 namespace security_state { |
| 57 struct SecurityInfo; |
| 58 } // namespace security_state |
| 59 |
| 57 namespace task_manager { | 60 namespace task_manager { |
| 58 class TaskManagerTableModel; | 61 class TaskManagerTableModel; |
| 59 } | 62 } |
| 60 | 63 |
| 61 namespace ui { | 64 namespace ui { |
| 62 class WebDialogDelegate; | 65 class WebDialogDelegate; |
| 63 } | 66 } |
| 64 | 67 |
| 65 namespace chrome { | 68 namespace chrome { |
| 66 | 69 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // For Mac, returns true if Chrome should show an equivalent toolkit-views based | 130 // For Mac, returns true if Chrome should show an equivalent toolkit-views based |
| 128 // dialog instead of a WebUI-styled Cocoa dialog. | 131 // dialog instead of a WebUI-styled Cocoa dialog. |
| 129 bool ToolkitViewsWebUIDialogsEnabled(); | 132 bool ToolkitViewsWebUIDialogsEnabled(); |
| 130 | 133 |
| 131 // Shows a Views website settings bubble at the given anchor point. | 134 // Shows a Views website settings bubble at the given anchor point. |
| 132 void ShowWebsiteSettingsBubbleViewsAtPoint( | 135 void ShowWebsiteSettingsBubbleViewsAtPoint( |
| 133 const gfx::Point& anchor_point, | 136 const gfx::Point& anchor_point, |
| 134 Profile* profile, | 137 Profile* profile, |
| 135 content::WebContents* web_contents, | 138 content::WebContents* web_contents, |
| 136 const GURL& virtual_url, | 139 const GURL& virtual_url, |
| 137 const security_state::SecurityStateModel::SecurityInfo& security_info); | 140 const security_state::SecurityInfo& security_info); |
| 138 | 141 |
| 139 // Show a Views bookmark bubble at the given point. This occurs when the | 142 // Show a Views bookmark bubble at the given point. This occurs when the |
| 140 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu | 143 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu |
| 141 // or via a key equivalent. | 144 // or via a key equivalent. |
| 142 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, | 145 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, |
| 143 gfx::NativeView parent, | 146 gfx::NativeView parent, |
| 144 bookmarks::BookmarkBubbleObserver* observer, | 147 bookmarks::BookmarkBubbleObserver* observer, |
| 145 Browser* browser, | 148 Browser* browser, |
| 146 const GURL& url, | 149 const GURL& url, |
| 147 bool newly_bookmarked); | 150 bool newly_bookmarked); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 using BubbleShowPtr = | 202 using BubbleShowPtr = |
| 200 void (*)(content::WebContents*, | 203 void (*)(content::WebContents*, |
| 201 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 204 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 202 const IntentPickerResponse&); | 205 const IntentPickerResponse&); |
| 203 | 206 |
| 204 BubbleShowPtr ShowIntentPickerBubble(); | 207 BubbleShowPtr ShowIntentPickerBubble(); |
| 205 | 208 |
| 206 #endif // OS_CHROMEOS | 209 #endif // OS_CHROMEOS |
| 207 | 210 |
| 208 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 211 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |