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 #ifndef CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ | 5 #ifndef CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ |
6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ | 6 #define CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 const string16& message_text, | 35 const string16& message_text, |
36 bool is_reload, | 36 bool is_reload, |
37 const DialogClosedCallback& callback) OVERRIDE; | 37 const DialogClosedCallback& callback) OVERRIDE; |
38 | 38 |
39 virtual void ResetJavaScriptState(WebContents* web_contents) OVERRIDE; | 39 virtual void ResetJavaScriptState(WebContents* web_contents) OVERRIDE; |
40 | 40 |
41 // Called by the ShellJavaScriptDialog when it closes. | 41 // Called by the ShellJavaScriptDialog when it closes. |
42 void DialogClosed(ShellJavaScriptDialog* dialog); | 42 void DialogClosed(ShellJavaScriptDialog* dialog); |
43 | 43 |
44 private: | 44 private: |
45 #if defined(OS_MACOSX) | 45 #if defined(OS_MACOSX) || defined(OS_WIN) |
46 // The dialog being shown. No queueing. | 46 // The dialog being shown. No queueing. |
47 scoped_ptr<ShellJavaScriptDialog> dialog_; | 47 scoped_ptr<ShellJavaScriptDialog> dialog_; |
48 #else | 48 #else |
49 // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if | 49 // TODO: implement ShellJavaScriptDialog for other platforms, drop this #if |
50 #endif | 50 #endif |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogCreator); | 52 DISALLOW_COPY_AND_ASSIGN(ShellJavaScriptDialogCreator); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace content | 55 } // namespace content |
56 | 56 |
57 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ | 57 #endif // CONTENT_SHELL_SHELL_JAVASCRIPT_DIALOG_CREATOR_H_ |
OLD | NEW |