OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 | 271 |
272 // A file chooser should be shown. | 272 // A file chooser should be shown. |
273 virtual void RunFileChooser(bool multiple_files, | 273 virtual void RunFileChooser(bool multiple_files, |
274 const std::wstring& title, | 274 const std::wstring& title, |
275 const std::wstring& default_file, | 275 const std::wstring& default_file, |
276 const std::wstring& filter) { } | 276 const std::wstring& filter) { } |
277 | 277 |
278 // A javascript message, confirmation or prompt should be shown. | 278 // A javascript message, confirmation or prompt should be shown. |
279 virtual void RunJavaScriptMessage(const std::wstring& message, | 279 virtual void RunJavaScriptMessage(const std::wstring& message, |
280 const std::wstring& default_prompt, | 280 const std::wstring& default_prompt, |
| 281 const GURL& frame_url, |
281 const int flags, | 282 const int flags, |
282 IPC::Message* reply_msg, | 283 IPC::Message* reply_msg, |
283 bool* did_suppress_message) { } | 284 bool* did_suppress_message) { } |
284 | 285 |
285 virtual void RunBeforeUnloadConfirm(const std::wstring& message, | 286 virtual void RunBeforeUnloadConfirm(const GURL& frame_url, |
| 287 const std::wstring& message, |
286 IPC::Message* reply_msg) { } | 288 IPC::Message* reply_msg) { } |
287 | 289 |
288 // Display this RenderViewHost in a modal fashion. | 290 // Display this RenderViewHost in a modal fashion. |
289 virtual void RunModal(IPC::Message* reply_msg) { } | 291 virtual void RunModal(IPC::Message* reply_msg) { } |
290 | 292 |
291 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, | 293 virtual void ShowModalHTMLDialog(const GURL& url, int width, int height, |
292 const std::string& json_arguments, | 294 const std::string& json_arguments, |
293 IPC::Message* reply_msg) { } | 295 IPC::Message* reply_msg) { } |
294 | 296 |
295 // Password forms have been detected in the page. | 297 // Password forms have been detected in the page. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 403 |
402 // A find operation in the current page completed. | 404 // A find operation in the current page completed. |
403 virtual void OnFindReply(int request_id, | 405 virtual void OnFindReply(int request_id, |
404 int number_of_matches, | 406 int number_of_matches, |
405 const gfx::Rect& selection_rect, | 407 const gfx::Rect& selection_rect, |
406 int active_match_ordinal, | 408 int active_match_ordinal, |
407 bool final_update) { } | 409 bool final_update) { } |
408 }; | 410 }; |
409 | 411 |
410 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 412 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |