OLD | NEW |
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 #include "content/shell/shell_javascript_dialog.h" | 5 #include "content/shell/browser/shell_javascript_dialog.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "content/shell/app/resource.h" | 8 #include "content/shell/app/resource.h" |
9 #include "content/shell/shell.h" | 9 #include "content/shell/browser/shell.h" |
10 #include "content/shell/shell_javascript_dialog_manager.h" | 10 #include "content/shell/browser/shell_javascript_dialog_manager.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 class ShellJavaScriptDialog; | 14 class ShellJavaScriptDialog; |
15 | 15 |
16 INT_PTR CALLBACK ShellJavaScriptDialog::DialogProc(HWND dialog, | 16 INT_PTR CALLBACK ShellJavaScriptDialog::DialogProc(HWND dialog, |
17 UINT message, | 17 UINT message, |
18 WPARAM wparam, | 18 WPARAM wparam, |
19 LPARAM lparam) { | 19 LPARAM lparam) { |
20 switch (message) { | 20 switch (message) { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ShellJavaScriptDialog::~ShellJavaScriptDialog() { | 104 ShellJavaScriptDialog::~ShellJavaScriptDialog() { |
105 Cancel(); | 105 Cancel(); |
106 } | 106 } |
107 | 107 |
108 void ShellJavaScriptDialog::Cancel() { | 108 void ShellJavaScriptDialog::Cancel() { |
109 if (dialog_win_) | 109 if (dialog_win_) |
110 DestroyWindow(dialog_win_); | 110 DestroyWindow(dialog_win_); |
111 } | 111 } |
112 | 112 |
113 } // namespace content | 113 } // namespace content |
OLD | NEW |