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 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 void OnAllowBindings(int enabled_bindings_flags); | 717 void OnAllowBindings(int enabled_bindings_flags); |
718 void OnAllowScriptToClose(bool script_can_close); | 718 void OnAllowScriptToClose(bool script_can_close); |
719 void OnAsyncFileOpened(base::PlatformFileError error_code, | 719 void OnAsyncFileOpened(base::PlatformFileError error_code, |
720 IPC::PlatformFileForTransit file_for_transit, | 720 IPC::PlatformFileForTransit file_for_transit, |
721 int message_id); | 721 int message_id); |
722 void OnPpapiBrokerChannelCreated(int request_id, | 722 void OnPpapiBrokerChannelCreated(int request_id, |
723 base::ProcessHandle broker_process_handle, | 723 base::ProcessHandle broker_process_handle, |
724 IPC::ChannelHandle handle); | 724 IPC::ChannelHandle handle); |
725 void OnCancelDownload(int32 download_id); | 725 void OnCancelDownload(int32 download_id); |
726 void OnClearFocusedNode(); | 726 void OnClearFocusedNode(); |
727 void OnClosePage(const ViewMsg_ClosePage_Params& params); | 727 void OnClosePage(); |
728 #if defined(ENABLE_FLAPPER_HACKS) | 728 #if defined(ENABLE_FLAPPER_HACKS) |
729 void OnConnectTcpACK(int request_id, | 729 void OnConnectTcpACK(int request_id, |
730 IPC::PlatformFileForTransit socket_for_transit, | 730 IPC::PlatformFileForTransit socket_for_transit, |
731 const PP_Flash_NetAddress& local_addr, | 731 const PP_Flash_NetAddress& local_addr, |
732 const PP_Flash_NetAddress& remote_addr); | 732 const PP_Flash_NetAddress& remote_addr); |
733 #endif | 733 #endif |
734 void OnContextMenuClosed( | 734 void OnContextMenuClosed( |
735 const webkit_glue::CustomContextMenuContext& custom_context); | 735 const webkit_glue::CustomContextMenuContext& custom_context); |
736 void OnCopy(); | 736 void OnCopy(); |
737 void OnCopyImageAt(int x, int y); | 737 void OnCopyImageAt(int x, int y); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 void OnSetPageEncoding(const std::string& encoding_name); | 804 void OnSetPageEncoding(const std::string& encoding_name); |
805 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 805 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
806 #if defined(OS_MACOSX) | 806 #if defined(OS_MACOSX) |
807 void OnSetWindowVisibility(bool visible); | 807 void OnSetWindowVisibility(bool visible); |
808 #endif | 808 #endif |
809 void OnSetZoomLevel(double zoom_level); | 809 void OnSetZoomLevel(double zoom_level); |
810 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 810 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
811 void OnShouldClose(); | 811 void OnShouldClose(); |
812 void OnStop(); | 812 void OnStop(); |
813 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 813 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 814 void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
814 void OnThemeChanged(); | 815 void OnThemeChanged(); |
815 void OnUndo(); | 816 void OnUndo(); |
816 void OnUpdateTargetURLAck(); | 817 void OnUpdateTargetURLAck(); |
817 void OnUpdateWebPreferences(const WebPreferences& prefs); | 818 void OnUpdateWebPreferences(const WebPreferences& prefs); |
818 #if defined(OS_MACOSX) | 819 #if defined(OS_MACOSX) |
819 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 820 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
820 const gfx::Rect& view_frame); | 821 const gfx::Rect& view_frame); |
821 void OnSelectPopupMenuItem(int selected_index); | 822 void OnSelectPopupMenuItem(int selected_index); |
822 #endif | 823 #endif |
823 void OnZoom(PageZoom::Function function); | 824 void OnZoom(PageZoom::Function function); |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 // bunch of stuff, you should probably create a helper class and put your | 1166 // bunch of stuff, you should probably create a helper class and put your |
1166 // data and methods on that to avoid bloating RenderView more. You can use | 1167 // data and methods on that to avoid bloating RenderView more. You can use |
1167 // the Observer interface to filter IPC messages and receive frame change | 1168 // the Observer interface to filter IPC messages and receive frame change |
1168 // notifications. | 1169 // notifications. |
1169 // --------------------------------------------------------------------------- | 1170 // --------------------------------------------------------------------------- |
1170 | 1171 |
1171 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1172 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1172 }; | 1173 }; |
1173 | 1174 |
1174 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1175 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |