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

Side by Side Diff: chrome/browser/ui/javascript_dialogs/javascript_dialog.h

Issue 2867613002: Fix HandleJavaScriptDialog. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | chrome/browser/ui/javascript_dialogs/javascript_dialog_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
6 #define CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_ 6 #define CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 14 matching lines...) Expand all
25 const base::string16& default_prompt_text, 25 const base::string16& default_prompt_text,
26 const content::JavaScriptDialogManager::DialogClosedCallback& 26 const content::JavaScriptDialogManager::DialogClosedCallback&
27 dialog_callback); 27 dialog_callback);
28 28
29 // Closes the dialog without sending a callback. This is useful when the 29 // Closes the dialog without sending a callback. This is useful when the
30 // JavaScriptDialogTabHelper needs to make this dialog go away so that it can 30 // JavaScriptDialogTabHelper needs to make this dialog go away so that it can
31 // respond to a call that requires it to make no callback or make a customized 31 // respond to a call that requires it to make no callback or make a customized
32 // one. 32 // one.
33 virtual void CloseDialogWithoutCallback() = 0; 33 virtual void CloseDialogWithoutCallback() = 0;
34 34
35 // Returns the current value of the user input for a prompt dialog.
36 virtual base::string16 GetUserInput() = 0;
37
35 protected: 38 protected:
36 explicit JavaScriptDialog(content::WebContents* parent_web_contents); 39 explicit JavaScriptDialog(content::WebContents* parent_web_contents);
37 40
38 private: 41 private:
39 std::unique_ptr<AppModalDialogHelper> dialog_helper_; 42 std::unique_ptr<AppModalDialogHelper> dialog_helper_;
40 }; 43 };
41 44
42 #endif // CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_ 45 #endif // CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/javascript_dialogs/javascript_dialog_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698