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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 void OnAllowBindings(int enabled_bindings_flags); | 703 void OnAllowBindings(int enabled_bindings_flags); |
704 void OnAllowScriptToClose(bool script_can_close); | 704 void OnAllowScriptToClose(bool script_can_close); |
705 void OnAsyncFileOpened(base::PlatformFileError error_code, | 705 void OnAsyncFileOpened(base::PlatformFileError error_code, |
706 IPC::PlatformFileForTransit file_for_transit, | 706 IPC::PlatformFileForTransit file_for_transit, |
707 int message_id); | 707 int message_id); |
708 void OnPpapiBrokerChannelCreated(int request_id, | 708 void OnPpapiBrokerChannelCreated(int request_id, |
709 base::ProcessHandle broker_process_handle, | 709 base::ProcessHandle broker_process_handle, |
710 IPC::ChannelHandle handle); | 710 IPC::ChannelHandle handle); |
711 void OnCancelDownload(int32 download_id); | 711 void OnCancelDownload(int32 download_id); |
712 void OnClearFocusedNode(); | 712 void OnClearFocusedNode(); |
713 void OnClosePage(const ViewMsg_ClosePage_Params& params); | 713 void OnClosePage(); |
714 #if defined(ENABLE_FLAPPER_HACKS) | 714 #if defined(ENABLE_FLAPPER_HACKS) |
715 void OnConnectTcpACK(int request_id, | 715 void OnConnectTcpACK(int request_id, |
716 IPC::PlatformFileForTransit socket_for_transit, | 716 IPC::PlatformFileForTransit socket_for_transit, |
717 const PP_Flash_NetAddress& local_addr, | 717 const PP_Flash_NetAddress& local_addr, |
718 const PP_Flash_NetAddress& remote_addr); | 718 const PP_Flash_NetAddress& remote_addr); |
719 #endif | 719 #endif |
720 void OnContextMenuClosed( | 720 void OnContextMenuClosed( |
721 const webkit_glue::CustomContextMenuContext& custom_context); | 721 const webkit_glue::CustomContextMenuContext& custom_context); |
722 void OnCopy(); | 722 void OnCopy(); |
723 void OnCopyImageAt(int x, int y); | 723 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); | 789 void OnSetPageEncoding(const std::string& encoding_name); |
790 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 790 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
791 #if defined(OS_MACOSX) | 791 #if defined(OS_MACOSX) |
792 void OnSetWindowVisibility(bool visible); | 792 void OnSetWindowVisibility(bool visible); |
793 #endif | 793 #endif |
794 void OnSetZoomLevel(double zoom_level); | 794 void OnSetZoomLevel(double zoom_level); |
795 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 795 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
796 void OnShouldClose(); | 796 void OnShouldClose(); |
797 void OnStop(); | 797 void OnStop(); |
798 void OnStopFinding(const ViewMsg_StopFinding_Params& params); | 798 void OnStopFinding(const ViewMsg_StopFinding_Params& params); |
| 799 void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
799 void OnThemeChanged(); | 800 void OnThemeChanged(); |
800 void OnUndo(); | 801 void OnUndo(); |
801 void OnUpdateTargetURLAck(); | 802 void OnUpdateTargetURLAck(); |
802 void OnUpdateWebPreferences(const WebPreferences& prefs); | 803 void OnUpdateWebPreferences(const WebPreferences& prefs); |
803 #if defined(OS_MACOSX) | 804 #if defined(OS_MACOSX) |
804 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 805 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
805 const gfx::Rect& view_frame); | 806 const gfx::Rect& view_frame); |
806 void OnSelectPopupMenuItem(int selected_index); | 807 void OnSelectPopupMenuItem(int selected_index); |
807 #endif | 808 #endif |
808 void OnZoom(PageZoom::Function function); | 809 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 | 1148 // 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 | 1149 // 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 | 1150 // the Observer interface to filter IPC messages and receive frame change |
1150 // notifications. | 1151 // notifications. |
1151 // --------------------------------------------------------------------------- | 1152 // --------------------------------------------------------------------------- |
1152 | 1153 |
1153 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1154 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1154 }; | 1155 }; |
1155 | 1156 |
1156 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1157 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |