| 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 // Shows the dialog to choose a share target app. |targets| is a list of app |
| 156 // titles that will be shown in a list. Calls |callback| with true if an app was |
| 157 // chosen, or false if the dialog was cancelled. |
| 158 // TODO(mgiuca): Callback should provide info about the picked app. |
| 159 void ShowWebShareTargetPickerDialog(gfx::NativeWindow parent_window, |
| 160 const std::vector<base::string16>& targets, |
| 161 const base::Callback<void(bool)>& callback); |
| 162 |
| 155 #if defined(OS_MACOSX) | 163 #if defined(OS_MACOSX) |
| 156 | 164 |
| 157 // This is a class so that it can be friended from ContentSettingBubbleContents, | 165 // This is a class so that it can be friended from ContentSettingBubbleContents, |
| 158 // which allows it to call SetAnchorRect(). | 166 // which allows it to call SetAnchorRect(). |
| 159 class ContentSettingBubbleViewsBridge { | 167 class ContentSettingBubbleViewsBridge { |
| 160 public: | 168 public: |
| 161 static void Show(gfx::NativeView parent_view, | 169 static void Show(gfx::NativeView parent_view, |
| 162 ContentSettingBubbleModel* model, | 170 ContentSettingBubbleModel* model, |
| 163 content::WebContents* web_contents, | 171 content::WebContents* web_contents, |
| 164 const gfx::Point& anchor); | 172 const gfx::Point& anchor); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 187 using BubbleShowPtr = | 195 using BubbleShowPtr = |
| 188 void (*)(content::WebContents*, | 196 void (*)(content::WebContents*, |
| 189 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, | 197 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, |
| 190 const IntentPickerResponse&); | 198 const IntentPickerResponse&); |
| 191 | 199 |
| 192 BubbleShowPtr ShowIntentPickerBubble(); | 200 BubbleShowPtr ShowIntentPickerBubble(); |
| 193 | 201 |
| 194 #endif // OS_CHROMEOS | 202 #endif // OS_CHROMEOS |
| 195 | 203 |
| 196 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 204 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
| OLD | NEW |