Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: ios/web/public/java_script_dialog_callback.h

Issue 2074733002: Add public API for handling Javascript alerts and prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace BOOL with bool in unittest. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/java_script_dialog_presenter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/web/ios_web.gyp ('k') | ios/web/public/java_script_dialog_presenter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698