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

Side by Side Diff: chrome/browser/ui/javascript_dialogs/javascript_dialog_views.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
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_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_VIEWS_H_
6 #define CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_VIEWS_H_ 6 #define CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_VIEWS_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 18 matching lines...) Expand all
29 content::WebContents* alerting_web_contents, 29 content::WebContents* alerting_web_contents,
30 const base::string16& title, 30 const base::string16& title,
31 content::JavaScriptDialogType dialog_type, 31 content::JavaScriptDialogType dialog_type,
32 const base::string16& message_text, 32 const base::string16& message_text,
33 const base::string16& default_prompt_text, 33 const base::string16& default_prompt_text,
34 const content::JavaScriptDialogManager::DialogClosedCallback& 34 const content::JavaScriptDialogManager::DialogClosedCallback&
35 dialog_callback); 35 dialog_callback);
36 36
37 // JavaScriptDialog: 37 // JavaScriptDialog:
38 void CloseDialogWithoutCallback() override; 38 void CloseDialogWithoutCallback() override;
39 base::string16 GetUserInput() override;
39 40
40 // views::DialogDelegate: 41 // views::DialogDelegate:
41 int GetDefaultDialogButton() const override; 42 int GetDefaultDialogButton() const override;
42 int GetDialogButtons() const override; 43 int GetDialogButtons() const override;
43 base::string16 GetWindowTitle() const override; 44 base::string16 GetWindowTitle() const override;
44 bool Cancel() override; 45 bool Cancel() override;
45 bool Accept() override; 46 bool Accept() override;
46 bool Close() override; 47 bool Close() override;
47 void DeleteDelegate() override; 48 void DeleteDelegate() override;
48 49
(...skipping 23 matching lines...) Expand all
72 73
73 // The message box view whose commands we handle. 74 // The message box view whose commands we handle.
74 views::MessageBoxView* message_box_view_; 75 views::MessageBoxView* message_box_view_;
75 76
76 base::WeakPtrFactory<JavaScriptDialogViews> weak_factory_; 77 base::WeakPtrFactory<JavaScriptDialogViews> weak_factory_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogViews); 79 DISALLOW_COPY_AND_ASSIGN(JavaScriptDialogViews);
79 }; 80 };
80 81
81 #endif // CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_VIEWS_H_ 82 #endif // CHROME_BROWSER_UI_JAVASCRIPT_DIALOGS_JAVASCRIPT_DIALOG_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698