| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 // arbitrary string that makes sense to the receiver. | 465 // arbitrary string that makes sense to the receiver. |
| 466 virtual void ProcessExternalHostMessage(const std::string& message, | 466 virtual void ProcessExternalHostMessage(const std::string& message, |
| 467 const std::string& origin, | 467 const std::string& origin, |
| 468 const std::string& target) {} | 468 const std::string& target) {} |
| 469 | 469 |
| 470 // A file chooser should be shown. | 470 // A file chooser should be shown. |
| 471 virtual void RunFileChooser(bool multiple_files, | 471 virtual void RunFileChooser(bool multiple_files, |
| 472 const string16& title, | 472 const string16& title, |
| 473 const FilePath& default_file) {} | 473 const FilePath& default_file) {} |
| 474 | 474 |
| 475 virtual void ChooseGeolocationProvider(const GURL &url) {} |
| 476 |
| 475 // A javascript message, confirmation or prompt should be shown. | 477 // A javascript message, confirmation or prompt should be shown. |
| 476 virtual void RunJavaScriptMessage(const std::wstring& message, | 478 virtual void RunJavaScriptMessage(const std::wstring& message, |
| 477 const std::wstring& default_prompt, | 479 const std::wstring& default_prompt, |
| 478 const GURL& frame_url, | 480 const GURL& frame_url, |
| 479 const int flags, | 481 const int flags, |
| 480 IPC::Message* reply_msg, | 482 IPC::Message* reply_msg, |
| 481 bool* did_suppress_message) {} | 483 bool* did_suppress_message) {} |
| 482 | 484 |
| 483 virtual void RunBeforeUnloadConfirm(const std::wstring& message, | 485 virtual void RunBeforeUnloadConfirm(const std::wstring& message, |
| 484 IPC::Message* reply_msg) {} | 486 IPC::Message* reply_msg) {} |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state) {} | 537 virtual void LoadStateChanged(const GURL& url, net::LoadState load_state) {} |
| 536 | 538 |
| 537 // Returns true if this view is used to host an external tab container. | 539 // Returns true if this view is used to host an external tab container. |
| 538 virtual bool IsExternalTabContainer() const; | 540 virtual bool IsExternalTabContainer() const; |
| 539 | 541 |
| 540 // The RenderView has inserted one css file into page. | 542 // The RenderView has inserted one css file into page. |
| 541 virtual void DidInsertCSS() {} | 543 virtual void DidInsertCSS() {} |
| 542 }; | 544 }; |
| 543 | 545 |
| 544 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 546 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |