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

Side by Side Diff: content/browser/javascript_dialogs.h

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: update copyright headers, merge Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_
6 #define CONTENT_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_ 6 #define CONTENT_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "content/common/content_export.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 12
12 class GURL; 13 class GURL;
13 class TabContents; 14 class TabContents;
14 15
15 namespace IPC { 16 namespace IPC {
16 class Message; 17 class Message;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
21 class DialogDelegate { 22 class CONTENT_EXPORT DialogDelegate {
22 public: 23 public:
23 // Returns the root native window with which to associate the dialog. 24 // Returns the root native window with which to associate the dialog.
24 virtual gfx::NativeWindow GetDialogRootWindow() = 0; 25 virtual gfx::NativeWindow GetDialogRootWindow() = 0;
25 26
26 // Called right before the dialog is shown. 27 // Called right before the dialog is shown.
27 virtual void OnDialogShown() {} 28 virtual void OnDialogShown() {}
28 29
29 protected: 30 protected:
30 virtual ~DialogDelegate() {} 31 virtual ~DialogDelegate() {}
31 }; 32 };
32 33
33 // A class that invokes a JavaScript dialog must implement this interface to 34 // A class that invokes a JavaScript dialog must implement this interface to
34 // allow the dialog implementation to get needed information and return results. 35 // allow the dialog implementation to get needed information and return results.
35 class JavaScriptDialogDelegate : public DialogDelegate { 36 class CONTENT_EXPORT JavaScriptDialogDelegate : public DialogDelegate {
36 public: 37 public:
37 // This callback is invoked when the dialog is closed. 38 // This callback is invoked when the dialog is closed.
38 virtual void OnDialogClosed(IPC::Message* reply_msg, 39 virtual void OnDialogClosed(IPC::Message* reply_msg,
39 bool success, 40 bool success,
40 const string16& user_input) = 0; 41 const string16& user_input) = 0;
41 42
42 protected: 43 protected:
43 virtual ~JavaScriptDialogDelegate() {} 44 virtual ~JavaScriptDialogDelegate() {}
44 }; 45 };
45 46
(...skipping 27 matching lines...) Expand all
73 // for the delegate. 74 // for the delegate.
74 virtual void ResetJavaScriptState(JavaScriptDialogDelegate* delegate) = 0; 75 virtual void ResetJavaScriptState(JavaScriptDialogDelegate* delegate) = 0;
75 76
76 protected: 77 protected:
77 virtual ~JavaScriptDialogCreator() {} 78 virtual ~JavaScriptDialogCreator() {}
78 }; 79 };
79 80
80 } // namespace content 81 } // namespace content
81 82
82 #endif // CONTENT_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_ 83 #endif // CONTENT_BROWSER_JAVASCRIPT_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698