| 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> |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Show a Views bookmark bubble at the given point. This occurs when the | 126 // Show a Views bookmark bubble at the given point. This occurs when the |
| 127 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu | 127 // bookmark star is clicked or "Bookmark This Page..." is selected from a menu |
| 128 // or via a key equivalent. | 128 // or via a key equivalent. |
| 129 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, | 129 void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, |
| 130 gfx::NativeView parent, | 130 gfx::NativeView parent, |
| 131 bookmarks::BookmarkBubbleObserver* observer, | 131 bookmarks::BookmarkBubbleObserver* observer, |
| 132 Browser* browser, | 132 Browser* browser, |
| 133 const GURL& url, | 133 const GURL& url, |
| 134 bool newly_bookmarked); | 134 bool newly_bookmarked); |
| 135 | 135 |
| 136 // Shows a views zoom bubble at the |anchor_point|. This occurs when the zoom |
| 137 // icon is clicked or when a shortcut key is pressed or whenever |web_contents| |
| 138 // zoom factor changes. |user_action| is used to determine if the bubble will |
| 139 // auto-close. |
| 140 void ShowZoomBubbleViewsAtPoint(content::WebContents* web_contents, |
| 141 const gfx::Point& anchor_point, |
| 142 bool user_action); |
| 143 |
| 144 // Closes a views zoom bubble if currently shown. |
| 145 void CloseZoomBubbleViews(); |
| 146 |
| 147 // Refreshes views zoom bubble if currently shown. |
| 148 void RefreshZoomBubbleViews(); |
| 149 |
| 150 // Returns true if views zoom bubble is currently shown. |
| 151 bool IsZoomBubbleViewsShown(); |
| 152 |
| 136 // Bridging methods that show/hide the toolkit-views based Task Manager on Mac. | 153 // Bridging methods that show/hide the toolkit-views based Task Manager on Mac. |
| 137 task_manager::TaskManagerTableModel* ShowTaskManagerViews(Browser* browser); | 154 task_manager::TaskManagerTableModel* ShowTaskManagerViews(Browser* browser); |
| 138 void HideTaskManagerViews(); | 155 void HideTaskManagerViews(); |
| 139 | 156 |
| 140 // Show the Views "Chrome Update" dialog. | 157 // Show the Views "Chrome Update" dialog. |
| 141 void ShowUpdateChromeDialogViews(gfx::NativeWindow parent); | 158 void ShowUpdateChromeDialogViews(gfx::NativeWindow parent); |
| 142 | 159 |
| 143 #endif // OS_MACOSX | 160 #endif // OS_MACOSX |
| 144 | 161 |
| 145 #if defined(TOOLKIT_VIEWS) | 162 #if defined(TOOLKIT_VIEWS) |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 using BubbleShowPtr = | 266 using BubbleShowPtr = |
| 250 void (*)(content::WebContents*, | 267 void (*)(content::WebContents*, |
| 251 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 268 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 252 const IntentPickerResponse&); | 269 const IntentPickerResponse&); |
| 253 | 270 |
| 254 BubbleShowPtr ShowIntentPickerBubble(); | 271 BubbleShowPtr ShowIntentPickerBubble(); |
| 255 | 272 |
| 256 #endif // OS_CHROMEOS | 273 #endif // OS_CHROMEOS |
| 257 | 274 |
| 258 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 275 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |