Chromium Code Reviews| 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 | 150 |
| 151 // Shows the toolkit-views based BookmarkEditor. | 151 // Shows the toolkit-views based BookmarkEditor. |
| 152 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 152 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
| 153 Profile* profile, | 153 Profile* profile, |
| 154 const BookmarkEditor::EditDetails& details, | 154 const BookmarkEditor::EditDetails& details, |
| 155 BookmarkEditor::Configuration configuration); | 155 BookmarkEditor::Configuration configuration); |
| 156 | 156 |
| 157 payments::PaymentRequestDialog* CreatePaymentRequestDialog( | 157 payments::PaymentRequestDialog* CreatePaymentRequestDialog( |
| 158 payments::PaymentRequest* request); | 158 payments::PaymentRequest* request); |
| 159 | 159 |
| 160 // Used to return the target the user picked or nullopt if the user cancelled | |
| 161 // the share. | |
| 162 using WebShareTargetPickerCallback = | |
| 163 base::OnceCallback<void(const base::Optional<std::string>&)>; | |
|
Matt Giuca
2017/05/01 23:15:33
nit: Blank line between.
| |
| 160 // Shows the dialog to choose a share target app. |targets| is a list of app | 164 // Shows the dialog to choose a share target app. |targets| is a list of app |
| 161 // title and manifest URL pairs that will be shown in a list. If the user picks | 165 // title and manifest URL pairs that will be shown in a list. If the user picks |
| 162 // a target, this calls |callback| with the manifest URL of the chosen target, | 166 // a target, this calls |callback| with the manifest URL of the chosen target, |
| 163 // or supplies null if the user cancelled the share. | 167 // or supplies null if the user cancelled the share. |
| 164 void ShowWebShareTargetPickerDialog( | 168 void ShowWebShareTargetPickerDialog( |
| 165 gfx::NativeWindow parent_window, | 169 gfx::NativeWindow parent_window, |
| 166 const std::vector<std::pair<base::string16, GURL>>& targets, | 170 const std::vector<std::pair<base::string16, GURL>>& targets, |
| 167 const base::Callback<void(base::Optional<std::string>)>& callback); | 171 WebShareTargetPickerCallback callback); |
| 168 | 172 |
| 169 #if defined(OS_MACOSX) | 173 #if defined(OS_MACOSX) |
| 170 | 174 |
| 171 // This is a class so that it can be friended from ContentSettingBubbleContents, | 175 // This is a class so that it can be friended from ContentSettingBubbleContents, |
| 172 // which allows it to call SetAnchorRect(). | 176 // which allows it to call SetAnchorRect(). |
| 173 class ContentSettingBubbleViewsBridge { | 177 class ContentSettingBubbleViewsBridge { |
| 174 public: | 178 public: |
| 175 static void Show(gfx::NativeView parent_view, | 179 static void Show(gfx::NativeView parent_view, |
| 176 ContentSettingBubbleModel* model, | 180 ContentSettingBubbleModel* model, |
| 177 content::WebContents* web_contents, | 181 content::WebContents* web_contents, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 249 using BubbleShowPtr = | 253 using BubbleShowPtr = |
| 250 void (*)(content::WebContents*, | 254 void (*)(content::WebContents*, |
| 251 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 255 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 252 const IntentPickerResponse&); | 256 const IntentPickerResponse&); |
| 253 | 257 |
| 254 BubbleShowPtr ShowIntentPickerBubble(); | 258 BubbleShowPtr ShowIntentPickerBubble(); |
| 255 | 259 |
| 256 #endif // OS_CHROMEOS | 260 #endif // OS_CHROMEOS |
| 257 | 261 |
| 258 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 262 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |