| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 net::URLRequest* request); | 145 net::URLRequest* request); |
| 146 | 146 |
| 147 // Shows the toolkit-views based BookmarkEditor. | 147 // Shows the toolkit-views based BookmarkEditor. |
| 148 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, | 148 void ShowBookmarkEditorViews(gfx::NativeWindow parent_window, |
| 149 Profile* profile, | 149 Profile* profile, |
| 150 const BookmarkEditor::EditDetails& details, | 150 const BookmarkEditor::EditDetails& details, |
| 151 BookmarkEditor::Configuration configuration); | 151 BookmarkEditor::Configuration configuration); |
| 152 | 152 |
| 153 void ShowPaymentRequestDialog(payments::PaymentRequest* request); | 153 void ShowPaymentRequestDialog(payments::PaymentRequest* request); |
| 154 | 154 |
| 155 enum class SharePickerResult { |
| 156 CANCEL, |
| 157 SHARE |
| 158 }; |
| 159 |
| 160 // Shows the dialog to choose a share target app. |targets| is a list of app |
| 161 // titles that will be shown in a list. Calls |callback| with SHARE if an app |
| 162 // was chosen, or CANCEL if the dialog was cancelled. |
| 163 // TODO(mgiuca): Callback should provide info about the picked app. |
| 164 void ShowWebShareTargetPickerDialog( |
| 165 gfx::NativeWindow parent_window, |
| 166 const std::vector<base::string16>& targets, |
| 167 const base::Callback<void(SharePickerResult)>& callback); |
| 168 |
| 155 #if defined(OS_MACOSX) | 169 #if defined(OS_MACOSX) |
| 156 | 170 |
| 157 // This is a class so that it can be friended from ContentSettingBubbleContents, | 171 // This is a class so that it can be friended from ContentSettingBubbleContents, |
| 158 // which allows it to call SetAnchorRect(). | 172 // which allows it to call SetAnchorRect(). |
| 159 class ContentSettingBubbleViewsBridge { | 173 class ContentSettingBubbleViewsBridge { |
| 160 public: | 174 public: |
| 161 static void Show(gfx::NativeView parent_view, | 175 static void Show(gfx::NativeView parent_view, |
| 162 ContentSettingBubbleModel* model, | 176 ContentSettingBubbleModel* model, |
| 163 content::WebContents* web_contents, | 177 content::WebContents* web_contents, |
| 164 const gfx::Point& anchor); | 178 const gfx::Point& anchor); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 187 using BubbleShowPtr = | 201 using BubbleShowPtr = |
| 188 void (*)(content::WebContents*, | 202 void (*)(content::WebContents*, |
| 189 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 203 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 190 const IntentPickerResponse&); | 204 const IntentPickerResponse&); |
| 191 | 205 |
| 192 BubbleShowPtr ShowIntentPickerBubble(); | 206 BubbleShowPtr ShowIntentPickerBubble(); |
| 193 | 207 |
| 194 #endif // OS_CHROMEOS | 208 #endif // OS_CHROMEOS |
| 195 | 209 |
| 196 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 210 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |