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

Side by Side Diff: content/shell/shell_javascript_dialog.h

Issue 9918013: Add JavaScript dialogs functionality to content_shell on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: style fix 4 Created 8 years, 8 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 | « content/shell/shell.rc ('k') | content/shell/shell_javascript_dialog_creator.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ 5 #ifndef CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_
6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ 6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/public/browser/javascript_dialogs.h" 9 #include "content/public/browser/javascript_dialogs.h"
10 10
(...skipping 24 matching lines...) Expand all
35 // Called to cancel a dialog mid-flight. 35 // Called to cancel a dialog mid-flight.
36 void Cancel(); 36 void Cancel();
37 37
38 private: 38 private:
39 ShellJavaScriptDialogCreator* creator_; 39 ShellJavaScriptDialogCreator* creator_;
40 JavaScriptDialogCreator::DialogClosedCallback callback_; 40 JavaScriptDialogCreator::DialogClosedCallback callback_;
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 ShellJavaScriptDialogHelper* helper_; // owned 43 ShellJavaScriptDialogHelper* helper_; // owned
44 NSAlert* alert_; // weak, owned by |helper_|. 44 NSAlert* alert_; // weak, owned by |helper_|.
45 #endif // defined(OS_MACOSX) 45 #elif defined(OS_WIN)
46 ui::JavascriptMessageType message_type_;
47 HWND dialog_win_;
48 string16 message_text_;
49 string16 default_prompt_text_;
50 static INT_PTR CALLBACK DialogProc(HWND hDlg, UINT msg, WPARAM wParam,
jam 2012/03/29 17:16:13 nit: here too
51 LPARAM lParam);
52 #endif
46 53
47 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog); 54 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialog);
48 }; 55 };
49 56
50 } // namespace content 57 } // namespace content
51 58
52 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_ 59 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_H_
OLDNEW
« no previous file with comments | « content/shell/shell.rc ('k') | content/shell/shell_javascript_dialog_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698