OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 virtual void PageTranslated(int page_id, | 416 virtual void PageTranslated(int page_id, |
417 const std::string& original_lang, | 417 const std::string& original_lang, |
418 const std::string& target_lang); | 418 const std::string& target_lang); |
419 | 419 |
420 // Do not delete directly. This class is reference counted. | 420 // Do not delete directly. This class is reference counted. |
421 virtual ~RenderView(); | 421 virtual ~RenderView(); |
422 | 422 |
423 // Called when a plugin has crashed. | 423 // Called when a plugin has crashed. |
424 void PluginCrashed(const FilePath& plugin_path); | 424 void PluginCrashed(const FilePath& plugin_path); |
425 | 425 |
| 426 // Called to indicate that there are no matching search results. |
| 427 void ReportNoFindInPageResults(int request_id); |
| 428 |
426 #if defined(OS_MACOSX) | 429 #if defined(OS_MACOSX) |
427 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); | 430 void RegisterPluginDelegate(WebPluginDelegateProxy* delegate); |
428 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); | 431 void UnregisterPluginDelegate(WebPluginDelegateProxy* delegate); |
429 #endif | 432 #endif |
430 | 433 |
431 // Called from JavaScript window.external.AddSearchProvider() to add a | 434 // Called from JavaScript window.external.AddSearchProvider() to add a |
432 // keyword for a provider described in the given OpenSearch document. | 435 // keyword for a provider described in the given OpenSearch document. |
433 void AddSearchProvider(const std::string& url); | 436 void AddSearchProvider(const std::string& url); |
434 | 437 |
435 // Asks the browser for the CPBrowsingContext associated with this renderer. | 438 // Asks the browser for the CPBrowsingContext associated with this renderer. |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 void SendSnapshot(); | 615 void SendSnapshot(); |
613 void OnPrintPages(); | 616 void OnPrintPages(); |
614 void OnPrintingDone(int document_cookie, bool success); | 617 void OnPrintingDone(int document_cookie, bool success); |
615 void OnNavigate(const ViewMsg_Navigate_Params& params); | 618 void OnNavigate(const ViewMsg_Navigate_Params& params); |
616 void OnStop(); | 619 void OnStop(); |
617 void OnReloadFrame(); | 620 void OnReloadFrame(); |
618 void OnLoadAlternateHTMLText(const std::string& html_contents, | 621 void OnLoadAlternateHTMLText(const std::string& html_contents, |
619 bool new_navigation, | 622 bool new_navigation, |
620 const GURL& display_url, | 623 const GURL& display_url, |
621 const std::string& security_info); | 624 const std::string& security_info); |
622 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | |
623 void OnFindReplyAck(); | |
624 void OnUpdateTargetURLAck(); | 625 void OnUpdateTargetURLAck(); |
625 void OnUndo(); | 626 void OnUndo(); |
626 void OnRedo(); | 627 void OnRedo(); |
627 void OnCut(); | 628 void OnCut(); |
628 void OnCopy(); | 629 void OnCopy(); |
629 #if defined(OS_MACOSX) | 630 #if defined(OS_MACOSX) |
630 void OnCopyToFindPboard(); | 631 void OnCopyToFindPboard(); |
631 #endif | 632 #endif |
632 void OnPaste(); | 633 void OnPaste(); |
633 void OnReplace(const string16& text); | 634 void OnReplace(const string16& text); |
634 void OnAdvanceToNextMisspelling(); | 635 void OnAdvanceToNextMisspelling(); |
635 void OnToggleSpellPanel(bool is_currently_visible); | 636 void OnToggleSpellPanel(bool is_currently_visible); |
636 void OnToggleSpellCheck(); | 637 void OnToggleSpellCheck(); |
637 void OnDelete(); | 638 void OnDelete(); |
638 void OnSelectAll(); | 639 void OnSelectAll(); |
639 void OnCopyImageAt(int x, int y); | 640 void OnCopyImageAt(int x, int y); |
640 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 641 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
641 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 642 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
642 void OnSetupDevToolsClient(); | 643 void OnSetupDevToolsClient(); |
643 void OnCancelDownload(int32 download_id); | 644 void OnCancelDownload(int32 download_id); |
644 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 645 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
| 646 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 647 void OnFindReplyAck(); |
645 void OnDeterminePageLanguage(); | 648 void OnDeterminePageLanguage(); |
646 void OnSetContentSettingsForLoadingHost( | 649 void OnSetContentSettingsForLoadingHost( |
647 std::string host, const ContentSettings& content_settings); | 650 std::string host, const ContentSettings& content_settings); |
648 void OnZoom(PageZoom::Function function); | 651 void OnZoom(PageZoom::Function function); |
649 void OnSetZoomLevelForLoadingHost(std::string host, int zoom_level); | 652 void OnSetZoomLevelForLoadingHost(std::string host, int zoom_level); |
650 void OnSetPageEncoding(const std::string& encoding_name); | 653 void OnSetPageEncoding(const std::string& encoding_name); |
651 void OnResetPageEncodingToDefault(); | 654 void OnResetPageEncodingToDefault(); |
652 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 655 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
653 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 656 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
654 const std::vector<GURL>& links, | 657 const std::vector<GURL>& links, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 // Helper method that returns if the user wants to block content of type | 886 // Helper method that returns if the user wants to block content of type |
884 // |content_type|. | 887 // |content_type|. |
885 bool AllowContentType(ContentSettingsType settings_type); | 888 bool AllowContentType(ContentSettingsType settings_type); |
886 | 889 |
887 // Sends an IPC notification that the specified content type was blocked. | 890 // Sends an IPC notification that the specified content type was blocked. |
888 void DidBlockContentType(ContentSettingsType settings_type); | 891 void DidBlockContentType(ContentSettingsType settings_type); |
889 | 892 |
890 // Resets the |content_blocked_| array. | 893 // Resets the |content_blocked_| array. |
891 void ClearBlockedContentSettings(); | 894 void ClearBlockedContentSettings(); |
892 | 895 |
| 896 // Should only be called if this object wraps a PluginDocument. |
| 897 webkit_glue::WebPluginDelegate* GetDelegateForPluginDocument(); |
| 898 |
893 // Bitwise-ORed set of extra bindings that have been enabled. See | 899 // Bitwise-ORed set of extra bindings that have been enabled. See |
894 // BindingsPolicy for details. | 900 // BindingsPolicy for details. |
895 int enabled_bindings_; | 901 int enabled_bindings_; |
896 | 902 |
897 // DOM Automation Controller CppBoundClass. | 903 // DOM Automation Controller CppBoundClass. |
898 DomAutomationController dom_automation_controller_; | 904 DomAutomationController dom_automation_controller_; |
899 | 905 |
900 // Chrome page<->browser messaging CppBoundClass. | 906 // Chrome page<->browser messaging CppBoundClass. |
901 DOMUIBindings dom_ui_bindings_; | 907 DOMUIBindings dom_ui_bindings_; |
902 | 908 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 | 1181 |
1176 // Site isolation metrics flags. These are per-page-load counts, reset to 0 | 1182 // Site isolation metrics flags. These are per-page-load counts, reset to 0 |
1177 // in OnClosePage. | 1183 // in OnClosePage. |
1178 int cross_origin_access_count_; | 1184 int cross_origin_access_count_; |
1179 int same_origin_access_count_; | 1185 int same_origin_access_count_; |
1180 | 1186 |
1181 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1187 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1182 }; | 1188 }; |
1183 | 1189 |
1184 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1190 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |