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

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

Issue 10451047: content: Move javascript_message_type.h into content/ from ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm CONTEXT_EXPORT Created 8 years, 6 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 | Annotate | Revision Log
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"
11 #include "content/public/browser/javascript_dialogs.h" 11 #include "content/public/browser/javascript_dialogs.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class ShellJavaScriptDialog; 15 class ShellJavaScriptDialog;
16 16
17 class ShellJavaScriptDialogCreator : public JavaScriptDialogCreator { 17 class ShellJavaScriptDialogCreator : public JavaScriptDialogCreator {
18 public: 18 public:
19 ShellJavaScriptDialogCreator(); 19 ShellJavaScriptDialogCreator();
20 virtual ~ShellJavaScriptDialogCreator(); 20 virtual ~ShellJavaScriptDialogCreator();
21 21
22 // JavaScriptDialogCreator: 22 // JavaScriptDialogCreator:
23 virtual void RunJavaScriptDialog( 23 virtual void RunJavaScriptDialog(
24 WebContents* web_contents, 24 WebContents* web_contents,
25 const GURL& origin_url, 25 const GURL& origin_url,
26 const std::string& accept_lang, 26 const std::string& accept_lang,
27 ui::JavascriptMessageType javascript_message_type, 27 JavaScriptMessageType javascript_message_type,
28 const string16& message_text, 28 const string16& message_text,
29 const string16& default_prompt_text, 29 const string16& default_prompt_text,
30 const DialogClosedCallback& callback, 30 const DialogClosedCallback& callback,
31 bool* did_suppress_message) OVERRIDE; 31 bool* did_suppress_message) OVERRIDE;
32 32
33 virtual void RunBeforeUnloadDialog( 33 virtual void RunBeforeUnloadDialog(
34 WebContents* web_contents, 34 WebContents* web_contents,
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;
(...skipping 10 matching lines...) Expand all
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