| 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 CONTENT_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 class RenderViewVisitor; | 64 class RenderViewVisitor; |
| 65 class RenderWidgetFullscreenPepper; | 65 class RenderWidgetFullscreenPepper; |
| 66 class SkBitmap; | 66 class SkBitmap; |
| 67 class SpeechInputDispatcher; | 67 class SpeechInputDispatcher; |
| 68 class WebPluginDelegatePepper; | 68 class WebPluginDelegatePepper; |
| 69 class WebPluginDelegateProxy; | 69 class WebPluginDelegateProxy; |
| 70 class WebUIBindings; | 70 class WebUIBindings; |
| 71 struct ContextMenuMediaParams; | 71 struct ContextMenuMediaParams; |
| 72 struct PP_Flash_NetAddress; | 72 struct PP_Flash_NetAddress; |
| 73 struct ViewHostMsg_RunFileChooser_Params; | 73 struct ViewHostMsg_RunFileChooser_Params; |
| 74 struct ViewMsg_ClosePage_Params; | 74 struct ViewMsg_SwapOut_Params; |
| 75 struct ViewMsg_Navigate_Params; | 75 struct ViewMsg_Navigate_Params; |
| 76 struct ViewMsg_StopFinding_Params; | 76 struct ViewMsg_StopFinding_Params; |
| 77 struct WebDropData; | 77 struct WebDropData; |
| 78 | 78 |
| 79 namespace base { | 79 namespace base { |
| 80 class WaitableEvent; | 80 class WaitableEvent; |
| 81 } | 81 } |
| 82 | 82 |
| 83 namespace chrome { | 83 namespace chrome { |
| 84 class ChromeContentRendererClient; | 84 class ChromeContentRendererClient; |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 const std::wstring& default_value, | 686 const std::wstring& default_value, |
| 687 const GURL& frame_url, | 687 const GURL& frame_url, |
| 688 std::wstring* result); | 688 std::wstring* result); |
| 689 | 689 |
| 690 // Sends a message and runs a nested message loop. | 690 // Sends a message and runs a nested message loop. |
| 691 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 691 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 692 | 692 |
| 693 // Send queued accessibility notifications from the renderer to the browser. | 693 // Send queued accessibility notifications from the renderer to the browser. |
| 694 void SendPendingAccessibilityNotifications(); | 694 void SendPendingAccessibilityNotifications(); |
| 695 | 695 |
| 696 // Allows certain IPC messages to be sent while swapped out, in case they |
| 697 // are needed to keep the browser and renderer in a consistent state. |
| 698 virtual bool CanSendWhileSwappedOut(IPC::Message* message); |
| 699 |
| 696 // IPC message handlers ------------------------------------------------------ | 700 // IPC message handlers ------------------------------------------------------ |
| 697 // | 701 // |
| 698 // The documentation for these functions should be in | 702 // The documentation for these functions should be in |
| 699 // render_messages_internal.h for the message that the function is handling. | 703 // render_messages_internal.h for the message that the function is handling. |
| 700 | 704 |
| 701 void OnAccessibilityDoDefaultAction(int acc_obj_id); | 705 void OnAccessibilityDoDefaultAction(int acc_obj_id); |
| 702 void OnAccessibilityNotificationsAck(); | 706 void OnAccessibilityNotificationsAck(); |
| 703 void OnAllowBindings(int enabled_bindings_flags); | 707 void OnAllowBindings(int enabled_bindings_flags); |
| 704 void OnAllowScriptToClose(bool script_can_close); | 708 void OnAllowScriptToClose(bool script_can_close); |
| 705 void OnAsyncFileOpened(base::PlatformFileError error_code, | 709 void OnAsyncFileOpened(base::PlatformFileError error_code, |
| 706 IPC::PlatformFileForTransit file_for_transit, | 710 IPC::PlatformFileForTransit file_for_transit, |
| 707 int message_id); | 711 int message_id); |
| 708 void OnPpapiBrokerChannelCreated(int request_id, | 712 void OnPpapiBrokerChannelCreated(int request_id, |
| 709 base::ProcessHandle broker_process_handle, | 713 base::ProcessHandle broker_process_handle, |
| 710 IPC::ChannelHandle handle); | 714 IPC::ChannelHandle handle); |
| 711 void OnCancelDownload(int32 download_id); | 715 void OnCancelDownload(int32 download_id); |
| 712 void OnClearFocusedNode(); | 716 void OnClearFocusedNode(); |
| 713 void OnClosePage(const ViewMsg_ClosePage_Params& params); | 717 void OnClosePage(); |
| 714 #if defined(ENABLE_FLAPPER_HACKS) | 718 #if defined(ENABLE_FLAPPER_HACKS) |
| 715 void OnConnectTcpACK(int request_id, | 719 void OnConnectTcpACK(int request_id, |
| 716 IPC::PlatformFileForTransit socket_for_transit, | 720 IPC::PlatformFileForTransit socket_for_transit, |
| 717 const PP_Flash_NetAddress& local_addr, | 721 const PP_Flash_NetAddress& local_addr, |
| 718 const PP_Flash_NetAddress& remote_addr); | 722 const PP_Flash_NetAddress& remote_addr); |
| 719 #endif | 723 #endif |
| 720 void OnContextMenuClosed( | 724 void OnContextMenuClosed( |
| 721 const webkit_glue::CustomContextMenuContext& custom_context); | 725 const webkit_glue::CustomContextMenuContext& custom_context); |
| 722 void OnCopy(); | 726 void OnCopy(); |
| 723 void OnCopyImageAt(int x, int y); | 727 void OnCopyImageAt(int x, int y); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 void OnSetPageEncoding(const std::string& encoding_name); | 793 void OnSetPageEncoding(const std::string& encoding_name); |
| 790 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 794 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 791 #if defined(OS_MACOSX) | 795 #if defined(OS_MACOSX) |
| 792 void OnSetWindowVisibility(bool visible); | 796 void OnSetWindowVisibility(bool visible); |
| 793 #endif | 797 #endif |
| 794 void OnSetZoomLevel(double zoom_level); | 798 void OnSetZoomLevel(double zoom_level); |
| 795 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 799 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 796 void OnShouldClose(); | 800 void OnShouldClose(); |
| 797 void OnStop(); | 801 void OnStop(); |
| 798 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 802 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 803 void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
| 799 void OnThemeChanged(); | 804 void OnThemeChanged(); |
| 800 void OnUndo(); | 805 void OnUndo(); |
| 801 void OnUpdateTargetURLAck(); | 806 void OnUpdateTargetURLAck(); |
| 802 void OnUpdateWebPreferences(const WebPreferences& prefs); | 807 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 803 #if defined(OS_MACOSX) | 808 #if defined(OS_MACOSX) |
| 804 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 809 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
| 805 const gfx::Rect& view_frame); | 810 const gfx::Rect& view_frame); |
| 806 void OnSelectPopupMenuItem(int selected_index); | 811 void OnSelectPopupMenuItem(int selected_index); |
| 807 #endif | 812 #endif |
| 808 void OnZoom(PageZoom::Function function); | 813 void OnZoom(PageZoom::Function function); |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1147 // bunch of stuff, you should probably create a helper class and put your | 1152 // bunch of stuff, you should probably create a helper class and put your |
| 1148 // data and methods on that to avoid bloating RenderView more. You can use | 1153 // data and methods on that to avoid bloating RenderView more. You can use |
| 1149 // the Observer interface to filter IPC messages and receive frame change | 1154 // the Observer interface to filter IPC messages and receive frame change |
| 1150 // notifications. | 1155 // notifications. |
| 1151 // --------------------------------------------------------------------------- | 1156 // --------------------------------------------------------------------------- |
| 1152 | 1157 |
| 1153 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1158 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1154 }; | 1159 }; |
| 1155 | 1160 |
| 1156 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1161 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |