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

Side by Side Diff: content/shell/shell_javascript_dialog_creator.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: eol fix, rebase 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
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_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
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_
OLDNEW
« no previous file with comments | « content/shell/shell_javascript_dialog.h ('k') | content/shell/shell_javascript_dialog_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698