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

Side by Side Diff: ui/web_dialogs/web_dialog_delegate.h

Issue 251623003: webui: rename "DialogClose" to "dialogClose" to match other webui messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.h ('k') | ui/web_dialogs/web_dialog_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 5 #ifndef UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
6 #define UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 6 #define UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 virtual void OnDialogShown(content::WebUI* webui, 79 virtual void OnDialogShown(content::WebUI* webui,
80 content::RenderViewHost* render_view_host) {} 80 content::RenderViewHost* render_view_host) {}
81 81
82 // A callback to notify the delegate that the dialog closed. 82 // A callback to notify the delegate that the dialog closed.
83 // IMPORTANT: Implementations should delete |this| here (unless they've 83 // IMPORTANT: Implementations should delete |this| here (unless they've
84 // arranged for the delegate to be deleted in some other way, e.g. by 84 // arranged for the delegate to be deleted in some other way, e.g. by
85 // registering it as a message handler in the WebUI object). 85 // registering it as a message handler in the WebUI object).
86 virtual void OnDialogClosed(const std::string& json_retval) = 0; 86 virtual void OnDialogClosed(const std::string& json_retval) = 0;
87 87
88 // A callback to notify the delegate that the dialog is being closed in 88 // A callback to notify the delegate that the dialog is being closed in
89 // response to a "DialogClose" message from WebUI. 89 // response to a "dialogClose" message from WebUI.
90 virtual void OnDialogCloseFromWebUI(const std::string& json_retval); 90 virtual void OnDialogCloseFromWebUI(const std::string& json_retval);
91 91
92 // A callback to notify the delegate that the contents have gone 92 // A callback to notify the delegate that the contents have gone
93 // away. Only relevant if your dialog hosts code that calls 93 // away. Only relevant if your dialog hosts code that calls
94 // windows.close() and you've allowed that. If the output parameter 94 // windows.close() and you've allowed that. If the output parameter
95 // is set to true, then the dialog is closed. The default is false. 95 // is set to true, then the dialog is closed. The default is false.
96 virtual void OnCloseContents(content::WebContents* source, 96 virtual void OnCloseContents(content::WebContents* source,
97 bool* out_close_dialog) = 0; 97 bool* out_close_dialog) = 0;
98 98
99 // A callback to allow the delegate to dictate that the window should not 99 // A callback to allow the delegate to dictate that the window should not
(...skipping 26 matching lines...) Expand all
126 126
127 // Stores the dialog bounds. 127 // Stores the dialog bounds.
128 virtual void StoreDialogSize(const gfx::Size& dialog_size) {} 128 virtual void StoreDialogSize(const gfx::Size& dialog_size) {}
129 129
130 virtual ~WebDialogDelegate() {} 130 virtual ~WebDialogDelegate() {}
131 }; 131 };
132 132
133 } // namespace ui 133 } // namespace ui
134 134
135 #endif // UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_ 135 #endif // UI_WEB_DIALOGS_WEB_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/controls/webview/web_dialog_view.h ('k') | ui/web_dialogs/web_dialog_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698