| 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
| 6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
| 38 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. | 38 // RenderView is a diamond-shaped hierarchy, with WebWidgetDelegate at the root. |
| 39 // VS warns when we inherit the WebWidgetDelegate method implementations from | 39 // VS warns when we inherit the WebWidgetDelegate method implementations from |
| 40 // RenderWidget. It's safe to ignore that warning. | 40 // RenderWidget. It's safe to ignore that warning. |
| 41 #pragma warning(disable: 4250) | 41 #pragma warning(disable: 4250) |
| 42 #endif | 42 #endif |
| 43 | 43 |
| 44 class AudioRendererImpl; | 44 class AudioRendererImpl; |
| 45 class DictionaryValue; | 45 class DictionaryValue; |
| 46 class DebugMessageHandler; | 46 class DebugMessageHandler; |
| 47 class DevToolsAgent; |
| 48 class DevToolsClient; |
| 47 class FilePath; | 49 class FilePath; |
| 48 class GlueAccessibility; | 50 class GlueAccessibility; |
| 49 class GURL; | 51 class GURL; |
| 50 class RenderThread; | 52 class RenderThread; |
| 51 class ResourceDispatcher; | 53 class ResourceDispatcher; |
| 52 class SkBitmap; | 54 class SkBitmap; |
| 53 class WebError; | 55 class WebError; |
| 54 class WebFrame; | 56 class WebFrame; |
| 55 class WebPluginDelegate; | 57 class WebPluginDelegate; |
| 56 class WebPluginDelegateProxy; | 58 class WebPluginDelegateProxy; |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 void OnCut(); | 455 void OnCut(); |
| 454 void OnCopy(); | 456 void OnCopy(); |
| 455 void OnPaste(); | 457 void OnPaste(); |
| 456 void OnReplace(const std::wstring& text); | 458 void OnReplace(const std::wstring& text); |
| 457 void OnToggleSpellCheck(); | 459 void OnToggleSpellCheck(); |
| 458 void OnDelete(); | 460 void OnDelete(); |
| 459 void OnSelectAll(); | 461 void OnSelectAll(); |
| 460 void OnCopyImageAt(int x, int y); | 462 void OnCopyImageAt(int x, int y); |
| 461 void OnInspectElement(int x, int y); | 463 void OnInspectElement(int x, int y); |
| 462 void OnShowJavaScriptConsole(); | 464 void OnShowJavaScriptConsole(); |
| 465 void OnSetupDevToolsClient(); |
| 463 void OnCancelDownload(int32 download_id); | 466 void OnCancelDownload(int32 download_id); |
| 464 void OnFind(const FindInPageRequest& request); | 467 void OnFind(const FindInPageRequest& request); |
| 465 void OnZoom(int function); | 468 void OnZoom(int function); |
| 466 void OnSetPageEncoding(const std::wstring& encoding_name); | 469 void OnSetPageEncoding(const std::wstring& encoding_name); |
| 467 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 470 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
| 468 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 471 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
| 469 const std::vector<GURL>& links, | 472 const std::vector<GURL>& links, |
| 470 const std::vector<FilePath>& local_paths, | 473 const std::vector<FilePath>& local_paths, |
| 471 const FilePath& local_directory_name); | 474 const FilePath& local_directory_name); |
| 472 void OnUploadFileRequest(const ViewMsg_UploadFile_Params& p); | 475 void OnUploadFileRequest(const ViewMsg_UploadFile_Params& p); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 // posted. | 586 // posted. |
| 584 void ProcessPendingUpload(); | 587 void ProcessPendingUpload(); |
| 585 | 588 |
| 586 // Reset the pending file upload. | 589 // Reset the pending file upload. |
| 587 void ResetPendingUpload(); | 590 void ResetPendingUpload(); |
| 588 | 591 |
| 589 // Exposes the DOMAutomationController object that allows JS to send | 592 // Exposes the DOMAutomationController object that allows JS to send |
| 590 // information to the browser process. | 593 // information to the browser process. |
| 591 void BindDOMAutomationController(WebFrame* webframe); | 594 void BindDOMAutomationController(WebFrame* webframe); |
| 592 | 595 |
| 596 // Creates DevToolsClient and sets up JavaScript bindings for developer tools |
| 597 // UI that is going to be hosted by this RenderView. |
| 598 void CreateDevToolsClient(); |
| 599 |
| 593 void set_opened_by_user_gesture(bool value) { | 600 void set_opened_by_user_gesture(bool value) { |
| 594 opened_by_user_gesture_ = value; | 601 opened_by_user_gesture_ = value; |
| 595 } | 602 } |
| 596 | 603 |
| 597 // Called by RenderWidget after it paints. | 604 // Called by RenderWidget after it paints. |
| 598 virtual void DidPaint(); | 605 virtual void DidPaint(); |
| 599 | 606 |
| 600 // Locates a sub frame with given xpath | 607 // Locates a sub frame with given xpath |
| 601 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; | 608 WebFrame* GetChildFrame(const std::wstring& frame_xpath) const; |
| 602 | 609 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 | 732 |
| 726 // Document width when in print CSS media type. 0 otherwise. | 733 // Document width when in print CSS media type. 0 otherwise. |
| 727 int printed_document_width_; | 734 int printed_document_width_; |
| 728 | 735 |
| 729 // Backup the view size before printing since it needs to be overriden. This | 736 // Backup the view size before printing since it needs to be overriden. This |
| 730 // value is set to restore the view size when printing is done. | 737 // value is set to restore the view size when printing is done. |
| 731 gfx::Size printing_view_size_; | 738 gfx::Size printing_view_size_; |
| 732 | 739 |
| 733 scoped_refptr<DebugMessageHandler> debug_message_handler_; | 740 scoped_refptr<DebugMessageHandler> debug_message_handler_; |
| 734 | 741 |
| 742 // Provides access to this renderer from the remote Inspector UI. |
| 743 scoped_refptr<DevToolsAgent> dev_tools_agent_; |
| 744 |
| 745 // DevToolsClient for renderer hosting developer tools UI. It's NULL for other |
| 746 // render views. |
| 747 scoped_ptr<DevToolsClient> dev_tools_client_; |
| 748 |
| 735 scoped_ptr<WebFileChooserCallback> file_chooser_; | 749 scoped_ptr<WebFileChooserCallback> file_chooser_; |
| 736 | 750 |
| 737 int history_back_list_count_; | 751 int history_back_list_count_; |
| 738 int history_forward_list_count_; | 752 int history_forward_list_count_; |
| 739 | 753 |
| 740 // True if pop-up blocking is disabled. False by default. | 754 // True if pop-up blocking is disabled. False by default. |
| 741 bool disable_popup_blocking_; | 755 bool disable_popup_blocking_; |
| 742 | 756 |
| 743 // True if the page has any frame-level unload or beforeunload listeners. | 757 // True if the page has any frame-level unload or beforeunload listeners. |
| 744 bool has_unload_listener_; | 758 bool has_unload_listener_; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 // change but is overridden by tests. | 805 // change but is overridden by tests. |
| 792 int delay_seconds_for_form_state_sync_; | 806 int delay_seconds_for_form_state_sync_; |
| 793 | 807 |
| 794 // A set of audio renderers registered to use IPC for audio output. | 808 // A set of audio renderers registered to use IPC for audio output. |
| 795 IDMap<AudioRendererImpl> audio_renderers_; | 809 IDMap<AudioRendererImpl> audio_renderers_; |
| 796 | 810 |
| 797 DISALLOW_COPY_AND_ASSIGN(RenderView); | 811 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 798 }; | 812 }; |
| 799 | 813 |
| 800 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 814 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |