| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 void OnMsgDOMUISend(const GURL& source_url, | 584 void OnMsgDOMUISend(const GURL& source_url, |
| 585 const std::string& message, | 585 const std::string& message, |
| 586 const std::string& content); | 586 const std::string& content); |
| 587 void OnMsgForwardMessageToExternalHost(const std::string& message, | 587 void OnMsgForwardMessageToExternalHost(const std::string& message, |
| 588 const std::string& origin, | 588 const std::string& origin, |
| 589 const std::string& target); | 589 const std::string& target); |
| 590 void OnMsgSetTooltipText(const std::wstring& tooltip_text, | 590 void OnMsgSetTooltipText(const std::wstring& tooltip_text, |
| 591 WebKit::WebTextDirection text_direction_hint); | 591 WebKit::WebTextDirection text_direction_hint); |
| 592 void OnMsgSelectionChanged(const std::string& text); | 592 void OnMsgSelectionChanged(const std::string& text); |
| 593 void OnMsgPasteFromSelectionClipboard(); | 593 void OnMsgPasteFromSelectionClipboard(); |
| 594 void OnMsgRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params); | |
| 595 void OnMsgRunJavaScriptMessage(const std::wstring& message, | 594 void OnMsgRunJavaScriptMessage(const std::wstring& message, |
| 596 const std::wstring& default_prompt, | 595 const std::wstring& default_prompt, |
| 597 const GURL& frame_url, | 596 const GURL& frame_url, |
| 598 const int flags, | 597 const int flags, |
| 599 IPC::Message* reply_msg); | 598 IPC::Message* reply_msg); |
| 600 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, | 599 void OnMsgRunBeforeUnloadConfirm(const GURL& frame_url, |
| 601 const std::wstring& message, | 600 const std::wstring& message, |
| 602 IPC::Message* reply_msg); | 601 IPC::Message* reply_msg); |
| 603 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, | 602 void OnMsgShowModalHTMLDialog(const GURL& url, int width, int height, |
| 604 const std::string& json_arguments, | 603 const std::string& json_arguments, |
| 605 IPC::Message* reply_msg); | 604 IPC::Message* reply_msg); |
| 606 void OnMsgStartDragging(const WebDropData& drop_data, | 605 void OnMsgStartDragging(const WebDropData& drop_data, |
| 607 WebKit::WebDragOperationsMask operations_allowed, | 606 WebKit::WebDragOperationsMask operations_allowed, |
| 608 const SkBitmap& image, | 607 const SkBitmap& image, |
| 609 const gfx::Point& image_offset); | 608 const gfx::Point& image_offset); |
| 610 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); | 609 void OnUpdateDragCursor(WebKit::WebDragOperation drag_operation); |
| 611 void OnTakeFocus(bool reverse); | 610 void OnTakeFocus(bool reverse); |
| 612 void OnMsgPageHasOSDD(int32 page_id, | 611 void OnMsgPageHasOSDD(int32 page_id, |
| 613 const GURL& doc_url, | 612 const GURL& doc_url, |
| 614 const ViewHostMsg_PageHasOSDD_Type& provider_type); | 613 const ViewHostMsg_PageHasOSDD_Type& provider_type); |
| 615 void OnDidGetPrintedPagesCount(int cookie, int number_pages); | |
| 616 void DidPrintPage(const ViewHostMsg_DidPrintPage_Params& params); | |
| 617 void OnAddMessageToConsole(const std::wstring& message, | 614 void OnAddMessageToConsole(const std::wstring& message, |
| 618 int32 line_no, | 615 int32 line_no, |
| 619 const std::wstring& source_id); | 616 const std::wstring& source_id); |
| 620 void OnUpdateInspectorSetting(const std::string& key, | 617 void OnUpdateInspectorSetting(const std::string& key, |
| 621 const std::string& value); | 618 const std::string& value); |
| 622 void OnForwardToDevToolsAgent(const IPC::Message& message); | 619 void OnForwardToDevToolsAgent(const IPC::Message& message); |
| 623 void OnForwardToDevToolsClient(const IPC::Message& message); | 620 void OnForwardToDevToolsClient(const IPC::Message& message); |
| 624 void OnActivateDevToolsWindow(); | 621 void OnActivateDevToolsWindow(); |
| 625 void OnCloseDevToolsWindow(); | 622 void OnCloseDevToolsWindow(); |
| 626 void OnRequestDockDevToolsWindow(); | 623 void OnRequestDockDevToolsWindow(); |
| 627 void OnRequestUndockDevToolsWindow(); | 624 void OnRequestUndockDevToolsWindow(); |
| 628 void OnDevToolsRuntimePropertyChanged(const std::string& name, | 625 void OnDevToolsRuntimePropertyChanged(const std::string& name, |
| 629 const std::string& value); | 626 const std::string& value); |
| 630 void OnReceivedSavableResourceLinksForCurrentPage( | |
| 631 const std::vector<GURL>& resources_list, | |
| 632 const std::vector<GURL>& referrers_list, | |
| 633 const std::vector<GURL>& frames_list); | |
| 634 void OnReceivedSerializedHtmlData(const GURL& frame_url, | |
| 635 const std::string& data, | |
| 636 int32 status); | |
| 637 | |
| 638 void OnMsgShouldCloseACK(bool proceed); | 627 void OnMsgShouldCloseACK(bool proceed); |
| 639 void OnShowDesktopNotification( | 628 void OnShowDesktopNotification( |
| 640 const ViewHostMsg_ShowNotification_Params& params); | 629 const ViewHostMsg_ShowNotification_Params& params); |
| 641 void OnCancelDesktopNotification(int notification_id); | 630 void OnCancelDesktopNotification(int notification_id); |
| 642 void OnRequestNotificationPermission(const GURL& origin, int callback_id); | 631 void OnRequestNotificationPermission(const GURL& origin, int callback_id); |
| 643 | 632 |
| 644 void OnExtensionRequest(const ViewHostMsg_DomMessage_Params& params); | 633 void OnExtensionRequest(const ViewHostMsg_DomMessage_Params& params); |
| 645 void OnExtensionPostMessage(int port_id, const std::string& message); | 634 void OnExtensionPostMessage(int port_id, const std::string& message); |
| 646 void OnAccessibilityNotifications( | 635 void OnAccessibilityNotifications( |
| 647 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); | 636 const std::vector<ViewHostMsg_AccessibilityNotification_Params>& params); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 746 // The most recently received accessibility tree - for unit testing only. | 735 // The most recently received accessibility tree - for unit testing only. |
| 747 webkit_glue::WebAccessibility accessibility_tree_; | 736 webkit_glue::WebAccessibility accessibility_tree_; |
| 748 | 737 |
| 749 // The termination status of the last render view that terminated. | 738 // The termination status of the last render view that terminated. |
| 750 base::TerminationStatus render_view_termination_status_; | 739 base::TerminationStatus render_view_termination_status_; |
| 751 | 740 |
| 752 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 741 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 753 }; | 742 }; |
| 754 | 743 |
| 755 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 744 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |