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_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 class LoadProgressTracker; | 65 class LoadProgressTracker; |
66 class MediaStreamImpl; | 66 class MediaStreamImpl; |
67 class NotificationProvider; | 67 class NotificationProvider; |
68 class PepperDeviceTest; | 68 class PepperDeviceTest; |
69 struct PP_NetAddress_Private; | 69 struct PP_NetAddress_Private; |
70 class RenderWidgetFullscreenPepper; | 70 class RenderWidgetFullscreenPepper; |
71 class RendererAccessibility; | 71 class RendererAccessibility; |
72 class SkBitmap; | 72 class SkBitmap; |
73 class SpeechInputDispatcher; | 73 class SpeechInputDispatcher; |
74 struct ViewMsg_Navigate_Params; | 74 struct ViewMsg_Navigate_Params; |
| 75 struct ViewMsg_PostMessage_Params; |
| 76 struct ViewMsg_SetOpenerProxy_Params; |
75 struct ViewMsg_StopFinding_Params; | 77 struct ViewMsg_StopFinding_Params; |
76 struct ViewMsg_SwapOut_Params; | 78 struct ViewMsg_SwapOut_Params; |
77 struct WebDropData; | 79 struct WebDropData; |
78 class WebPluginDelegateProxy; | 80 class WebPluginDelegateProxy; |
79 class WebUIBindings; | 81 class WebUIBindings; |
80 | 82 |
81 namespace content { | 83 namespace content { |
82 class DocumentState; | 84 class DocumentState; |
83 class P2PSocketDispatcher; | 85 class P2PSocketDispatcher; |
84 class RenderViewObserver; | 86 class RenderViewObserver; |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 void OnMediaPlayerActionAt(const gfx::Point& location, | 795 void OnMediaPlayerActionAt(const gfx::Point& location, |
794 const WebKit::WebMediaPlayerAction& action); | 796 const WebKit::WebMediaPlayerAction& action); |
795 void OnMouseLockLost(); | 797 void OnMouseLockLost(); |
796 void OnMoveOrResizeStarted(); | 798 void OnMoveOrResizeStarted(); |
797 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); | 799 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); |
798 void OnPaste(); | 800 void OnPaste(); |
799 void OnPasteAndMatchStyle(); | 801 void OnPasteAndMatchStyle(); |
800 #if defined(OS_MACOSX) | 802 #if defined(OS_MACOSX) |
801 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 803 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
802 #endif | 804 #endif |
| 805 void OnPostMessage(int64 frame_id, const ViewMsg_PostMessage_Params& params); |
803 void OnRedo(); | 806 void OnRedo(); |
804 void OnReloadFrame(); | 807 void OnReloadFrame(); |
805 void OnReplace(const string16& text); | 808 void OnReplace(const string16& text); |
806 void OnReservePageIDRange(int size_of_range); | 809 void OnReservePageIDRange(int size_of_range); |
807 void OnResetPageEncodingToDefault(); | 810 void OnResetPageEncodingToDefault(); |
808 void OnScriptEvalRequest(const string16& frame_xpath, | 811 void OnScriptEvalRequest(const string16& frame_xpath, |
809 const string16& jscript, | 812 const string16& jscript, |
810 int id, | 813 int id, |
811 bool notify_result); | 814 bool notify_result); |
812 void OnSelectAll(); | 815 void OnSelectAll(); |
813 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 816 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
814 void OnSetActive(bool active); | 817 void OnSetActive(bool active); |
815 void OnSetAltErrorPageURL(const GURL& gurl); | 818 void OnSetAltErrorPageURL(const GURL& gurl); |
816 void OnSetBackground(const SkBitmap& background); | 819 void OnSetBackground(const SkBitmap& background); |
817 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 820 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
818 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); | 821 void OnSetEditCommandsForNextKeyEvent(const EditCommands& edit_commands); |
819 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, | 822 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, |
820 int32 minimum_page_id); | 823 int32 minimum_page_id); |
821 void OnSetInitialFocus(bool reverse); | 824 void OnSetInitialFocus(bool reverse); |
822 #if defined(OS_MACOSX) | 825 #if defined(OS_MACOSX) |
823 void OnSetInLiveResize(bool in_live_resize); | 826 void OnSetInLiveResize(bool in_live_resize); |
824 #endif | 827 #endif |
825 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 828 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| 829 void OnSetOpenerProxy(const ViewMsg_SetOpenerProxy_Params& params); |
826 void OnSetPageEncoding(const std::string& encoding_name); | 830 void OnSetPageEncoding(const std::string& encoding_name); |
827 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs); | 831 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs); |
828 #if defined(OS_MACOSX) | 832 #if defined(OS_MACOSX) |
829 void OnSetWindowVisibility(bool visible); | 833 void OnSetWindowVisibility(bool visible); |
830 #endif | 834 #endif |
831 void OnSetZoomLevel(double zoom_level); | 835 void OnSetZoomLevel(double zoom_level); |
832 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 836 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
833 void OnExitFullscreen(); | 837 void OnExitFullscreen(); |
834 void OnShouldClose(); | 838 void OnShouldClose(); |
835 void OnStop(); | 839 void OnStop(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 // Returns true if the |params| navigation is to an entry that has been | 902 // Returns true if the |params| navigation is to an entry that has been |
899 // cropped due to a recent navigation the browser did not know about. | 903 // cropped due to a recent navigation the browser did not know about. |
900 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, | 904 bool IsBackForwardToStaleEntry(const ViewMsg_Navigate_Params& params, |
901 bool is_reload); | 905 bool is_reload); |
902 | 906 |
903 // Returns false unless this is a top-level navigation that crosses origins. | 907 // Returns false unless this is a top-level navigation that crosses origins. |
904 bool IsNonLocalTopLevelNavigation(const GURL& url, | 908 bool IsNonLocalTopLevelNavigation(const GURL& url, |
905 WebKit::WebFrame* frame, | 909 WebKit::WebFrame* frame, |
906 WebKit::WebNavigationType type); | 910 WebKit::WebNavigationType type); |
907 | 911 |
| 912 void InstallDOMProxy(WebKit::WebFrame *frame, |
| 913 int64 browsing_instance_frame_id); |
| 914 |
908 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, | 915 bool MaybeLoadAlternateErrorPage(WebKit::WebFrame* frame, |
909 const WebKit::WebURLError& error, | 916 const WebKit::WebURLError& error, |
910 bool replace); | 917 bool replace); |
911 | 918 |
912 // If we initiated a navigation, this function will populate |document_state| | 919 // If we initiated a navigation, this function will populate |document_state| |
913 // with the navigation information saved in OnNavigate(). | 920 // with the navigation information saved in OnNavigate(). |
914 void PopulateStateFromPendingNavigationParams( | 921 void PopulateStateFromPendingNavigationParams( |
915 content::DocumentState* document_state); | 922 content::DocumentState* document_state); |
916 | 923 |
917 // Starts nav_state_sync_timer_ if it isn't already running. | 924 // Starts nav_state_sync_timer_ if it isn't already running. |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1219 // bunch of stuff, you should probably create a helper class and put your | 1226 // bunch of stuff, you should probably create a helper class and put your |
1220 // data and methods on that to avoid bloating RenderView more. You can | 1227 // data and methods on that to avoid bloating RenderView more. You can |
1221 // use the Observer interface to filter IPC messages and receive frame change | 1228 // use the Observer interface to filter IPC messages and receive frame change |
1222 // notifications. | 1229 // notifications. |
1223 // --------------------------------------------------------------------------- | 1230 // --------------------------------------------------------------------------- |
1224 | 1231 |
1225 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1232 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1226 }; | 1233 }; |
1227 | 1234 |
1228 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1235 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |