OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_CALLBACK_H_ |
| 6 #define IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_CALLBACK_H_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 |
| 10 namespace web { |
| 11 |
| 12 // Callback for |RunJavaScriptDialog|. The |success| value is true if the user |
| 13 // responded with OK, |false| if the dialog was cancelled. The |user_input| |
| 14 // value will exist for prompt alerts only. |
| 15 typedef base::Callback<void(bool success, NSString* user_input)> |
| 16 DialogClosedCallback; |
| 17 |
| 18 } // namespace web |
| 19 |
| 20 #endif // IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_CALLBACK_H_ |
OLD | NEW |