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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 public WebKit::WebPageSerializerClient, | 170 public WebKit::WebPageSerializerClient, |
171 public webkit::npapi::WebPluginPageDelegate, | 171 public webkit::npapi::WebPluginPageDelegate, |
172 public base::SupportsWeakPtr<RenderView> { | 172 public base::SupportsWeakPtr<RenderView> { |
173 public: | 173 public: |
174 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the | 174 // Creates a new RenderView. The parent_hwnd specifies a HWND to use as the |
175 // parent of the WebView HWND that will be created. If this is a constrained | 175 // parent of the WebView HWND that will be created. If this is a constrained |
176 // popup or as a new tab, opener_id is the routing ID of the RenderView | 176 // popup or as a new tab, opener_id is the routing ID of the RenderView |
177 // responsible for creating this RenderView (corresponding to parent_hwnd). | 177 // responsible for creating this RenderView (corresponding to parent_hwnd). |
178 // |counter| is either a currently initialized counter, or NULL (in which case | 178 // |counter| is either a currently initialized counter, or NULL (in which case |
179 // we treat this RenderView as a top level window). | 179 // we treat this RenderView as a top level window). |
180 static RenderView* Create( | 180 CONTENT_EXPORT static RenderView* Create( |
181 RenderThreadBase* render_thread, | 181 RenderThreadBase* render_thread, |
182 gfx::NativeViewId parent_hwnd, | 182 gfx::NativeViewId parent_hwnd, |
183 int32 opener_id, | 183 int32 opener_id, |
184 const RendererPreferences& renderer_prefs, | 184 const RendererPreferences& renderer_prefs, |
185 const WebPreferences& webkit_prefs, | 185 const WebPreferences& webkit_prefs, |
186 SharedRenderViewCounter* counter, | 186 SharedRenderViewCounter* counter, |
187 int32 routing_id, | 187 int32 routing_id, |
188 int64 session_storage_namespace_id, | 188 int64 session_storage_namespace_id, |
189 const string16& frame_name); | 189 const string16& frame_name); |
190 | 190 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 809 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
810 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 810 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
811 const std::vector<GURL>& links, | 811 const std::vector<GURL>& links, |
812 const std::vector<FilePath>& local_paths, | 812 const std::vector<FilePath>& local_paths, |
813 const FilePath& local_directory_name); | 813 const FilePath& local_directory_name); |
814 void OnLockMouseACK(bool succeeded); | 814 void OnLockMouseACK(bool succeeded); |
815 void OnMediaPlayerActionAt(const gfx::Point& location, | 815 void OnMediaPlayerActionAt(const gfx::Point& location, |
816 const WebKit::WebMediaPlayerAction& action); | 816 const WebKit::WebMediaPlayerAction& action); |
817 void OnMouseLockLost(); | 817 void OnMouseLockLost(); |
818 void OnMoveOrResizeStarted(); | 818 void OnMoveOrResizeStarted(); |
819 void OnNavigate(const ViewMsg_Navigate_Params& params); | 819 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); |
820 void OnPaste(); | 820 void OnPaste(); |
821 #if defined(OS_MACOSX) | 821 #if defined(OS_MACOSX) |
822 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 822 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
823 #endif | 823 #endif |
824 void OnRedo(); | 824 void OnRedo(); |
825 void OnReloadFrame(); | 825 void OnReloadFrame(); |
826 void OnReplace(const string16& text); | 826 void OnReplace(const string16& text); |
827 void OnReservePageIDRange(int size_of_range); | 827 void OnReservePageIDRange(int size_of_range); |
828 void OnResetPageEncodingToDefault(); | 828 void OnResetPageEncodingToDefault(); |
829 void OnScriptEvalRequest(const string16& frame_xpath, | 829 void OnScriptEvalRequest(const string16& frame_xpath, |
830 const string16& jscript, | 830 const string16& jscript, |
831 int id, | 831 int id, |
832 bool notify_result); | 832 bool notify_result); |
833 void OnSelectAll(); | 833 void OnSelectAll(); |
834 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 834 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
835 void OnSetActive(bool active); | 835 void OnSetActive(bool active); |
836 void OnSetAltErrorPageURL(const GURL& gurl); | 836 void OnSetAltErrorPageURL(const GURL& gurl); |
837 void OnSetBackground(const SkBitmap& background); | 837 void OnSetBackground(const SkBitmap& background); |
838 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 838 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
839 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 839 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
840 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 840 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, |
| 841 int32 minimum_page_id); |
841 void OnSetInitialFocus(bool reverse); | 842 void OnSetInitialFocus(bool reverse); |
842 #if defined(OS_MACOSX) | 843 #if defined(OS_MACOSX) |
843 void OnSetInLiveResize(bool in_live_resize); | 844 void OnSetInLiveResize(bool in_live_resize); |
844 #endif | 845 #endif |
845 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 846 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
846 void OnSetPageEncoding(const std::string& encoding_name); | 847 void OnSetPageEncoding(const std::string& encoding_name); |
847 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 848 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
848 #if defined(OS_MACOSX) | 849 #if defined(OS_MACOSX) |
849 void OnSetWindowVisibility(bool visible); | 850 void OnSetWindowVisibility(bool visible); |
850 #endif | 851 #endif |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 // bunch of stuff, you should probably create a helper class and put your | 1225 // bunch of stuff, you should probably create a helper class and put your |
1225 // data and methods on that to avoid bloating RenderView more. You can use | 1226 // data and methods on that to avoid bloating RenderView more. You can use |
1226 // the Observer interface to filter IPC messages and receive frame change | 1227 // the Observer interface to filter IPC messages and receive frame change |
1227 // notifications. | 1228 // notifications. |
1228 // --------------------------------------------------------------------------- | 1229 // --------------------------------------------------------------------------- |
1229 | 1230 |
1230 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1231 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1231 }; | 1232 }; |
1232 | 1233 |
1233 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1234 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |