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

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

Issue 2605913002: Fix include import in ios/web (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_ 5 #ifndef IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_
6 #define IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_ 6 #define IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_
7 7
8 #import "ios/web/public/java_script_dialog_callback.h" 8 #include "ios/web/public/java_script_dialog_callback.h"
Eugene But (OOO till 7-30) 2016/12/28 17:27:26 As it is java_script_dialog_callback.h should be a
Olivier 2016/12/28 17:48:05 Added missing import
9 #include "ios/web/public/java_script_dialog_type.h" 9 #include "ios/web/public/java_script_dialog_type.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 @class NSString; 12 @class NSString;
13 13
14 namespace web { 14 namespace web {
15 15
16 class WebState; 16 class WebState;
17 17
18 class JavaScriptDialogPresenter { 18 class JavaScriptDialogPresenter {
19 public: 19 public:
20 // Requests presentation of a JavaScript dialog. Clients must always call 20 // Requests presentation of a JavaScript dialog. Clients must always call
21 // |callback| even if they choose not to present the dialog. 21 // |callback| even if they choose not to present the dialog.
22 virtual void RunJavaScriptDialog(WebState* web_state, 22 virtual void RunJavaScriptDialog(WebState* web_state,
23 const GURL& origin_url, 23 const GURL& origin_url,
24 JavaScriptDialogType dialog_type, 24 JavaScriptDialogType dialog_type,
25 NSString* message_text, 25 NSString* message_text,
26 NSString* default_prompt_text, 26 NSString* default_prompt_text,
27 const DialogClosedCallback& callback) = 0; 27 const DialogClosedCallback& callback) = 0;
28 // Informs clients that all requested dialogs associated with |web_state| 28 // Informs clients that all requested dialogs associated with |web_state|
29 // should be dismissed. 29 // should be dismissed.
30 virtual void CancelDialogs(WebState* web_state) = 0; 30 virtual void CancelDialogs(WebState* web_state) = 0;
31 }; 31 };
32 32
33 } // namespace web 33 } // namespace web
34 34
35 #endif // IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_ 35 #endif // IOS_WEB_PUBLIC_JAVA_SCRIPT_DIALOG_PRESENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698