| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); | 897 bool SendAndRunNestedMessageLoop(IPC::SyncMessage* message); |
| 898 | 898 |
| 899 // Called when the "pinned to left/right edge" state needs to be updated. | 899 // Called when the "pinned to left/right edge" state needs to be updated. |
| 900 void UpdateScrollState(WebKit::WebFrame* frame); | 900 void UpdateScrollState(WebKit::WebFrame* frame); |
| 901 | 901 |
| 902 // IPC message handlers ------------------------------------------------------ | 902 // IPC message handlers ------------------------------------------------------ |
| 903 // | 903 // |
| 904 // The documentation for these functions should be in | 904 // The documentation for these functions should be in |
| 905 // render_messages_internal.h for the message that the function is handling. | 905 // render_messages_internal.h for the message that the function is handling. |
| 906 | 906 |
| 907 #if defined(OS_ANDROID) | |
| 908 void OnActivateNearestFindResult(int request_id, float x, float y); | |
| 909 #endif | |
| 910 CONTENT_EXPORT void OnAllowBindings(int enabled_bindings_flags); | 907 CONTENT_EXPORT void OnAllowBindings(int enabled_bindings_flags); |
| 911 void OnAllowScriptToClose(bool script_can_close); | 908 void OnAllowScriptToClose(bool script_can_close); |
| 912 void OnAsyncFileOpened(base::PlatformFileError error_code, | 909 void OnAsyncFileOpened(base::PlatformFileError error_code, |
| 913 IPC::PlatformFileForTransit file_for_transit, | 910 IPC::PlatformFileForTransit file_for_transit, |
| 914 int message_id); | 911 int message_id); |
| 915 void OnPpapiBrokerChannelCreated(int request_id, | 912 void OnPpapiBrokerChannelCreated(int request_id, |
| 916 const IPC::ChannelHandle& handle); | 913 const IPC::ChannelHandle& handle); |
| 917 void OnPpapiBrokerPermissionResult(int request_id, bool result); | 914 void OnPpapiBrokerPermissionResult(int request_id, bool result); |
| 918 void OnCancelDownload(int32 download_id); | 915 void OnCancelDownload(int32 download_id); |
| 919 void OnClearFocusedNode(); | 916 void OnClearFocusedNode(); |
| 920 void OnClosePage(); | 917 void OnClosePage(); |
| 921 void OnContextMenuClosed( | 918 void OnContextMenuClosed( |
| 922 const content::CustomContextMenuContext& custom_context); | 919 const content::CustomContextMenuContext& custom_context); |
| 923 void OnCopy(); | 920 void OnCopy(); |
| 924 void OnCopyImageAt(int x, int y); | 921 void OnCopyImageAt(int x, int y); |
| 925 #if defined(OS_MACOSX) | |
| 926 void OnCopyToFindPboard(); | |
| 927 #endif | |
| 928 void OnCut(); | 922 void OnCut(); |
| 929 void OnCSSInsertRequest(const string16& frame_xpath, | 923 void OnCSSInsertRequest(const string16& frame_xpath, |
| 930 const std::string& css); | 924 const std::string& css); |
| 931 void OnCustomContextMenuAction( | 925 void OnCustomContextMenuAction( |
| 932 const content::CustomContextMenuContext& custom_context, | 926 const content::CustomContextMenuContext& custom_context, |
| 933 unsigned action); | 927 unsigned action); |
| 934 void OnDelete(); | 928 void OnDelete(); |
| 935 void OnDeterminePageLanguage(); | 929 void OnDeterminePageLanguage(); |
| 936 void OnDisableScrollbarsForSmallWindows( | 930 void OnDisableScrollbarsForSmallWindows( |
| 937 const gfx::Size& disable_scrollbars_size_limit); | 931 const gfx::Size& disable_scrollbars_size_limit); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 957 void OnEnablePreferredSizeChangedMode(); | 951 void OnEnablePreferredSizeChangedMode(); |
| 958 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); | 952 void OnEnableAutoResize(const gfx::Size& min_size, const gfx::Size& max_size); |
| 959 void OnDisableAutoResize(const gfx::Size& new_size); | 953 void OnDisableAutoResize(const gfx::Size& new_size); |
| 960 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); | 954 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); |
| 961 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 955 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 962 CONTENT_EXPORT void OnExtendSelectionAndDelete(int before, int after); | 956 CONTENT_EXPORT void OnExtendSelectionAndDelete(int before, int after); |
| 963 void OnFileChooserResponse( | 957 void OnFileChooserResponse( |
| 964 const std::vector<ui::SelectedFileInfo>& files); | 958 const std::vector<ui::SelectedFileInfo>& files); |
| 965 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 959 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
| 966 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 960 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
| 967 #if defined(OS_ANDROID) | |
| 968 void OnFindMatchRects(int current_version); | |
| 969 #endif | |
| 970 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 961 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
| 971 const std::vector<GURL>& links, | 962 const std::vector<GURL>& links, |
| 972 const std::vector<FilePath>& local_paths, | 963 const std::vector<FilePath>& local_paths, |
| 973 const FilePath& local_directory_name); | 964 const FilePath& local_directory_name); |
| 974 void OnMediaPlayerActionAt(const gfx::Point& location, | 965 void OnMediaPlayerActionAt(const gfx::Point& location, |
| 975 const WebKit::WebMediaPlayerAction& action); | 966 const WebKit::WebMediaPlayerAction& action); |
| 976 | 967 |
| 977 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. | 968 // Screen has rotated. 0 = default (portrait), 90 = one turn right, and so on. |
| 978 void OnOrientationChangeEvent(int orientation); | 969 void OnOrientationChangeEvent(int orientation); |
| 979 | 970 |
| 980 void OnPluginActionAt(const gfx::Point& location, | 971 void OnPluginActionAt(const gfx::Point& location, |
| 981 const WebKit::WebPluginAction& action); | 972 const WebKit::WebPluginAction& action); |
| 982 void OnMoveOrResizeStarted(); | 973 void OnMoveOrResizeStarted(); |
| 983 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); | 974 CONTENT_EXPORT void OnNavigate(const ViewMsg_Navigate_Params& params); |
| 984 void OnPaste(); | 975 void OnPaste(); |
| 985 void OnPasteAndMatchStyle(); | 976 void OnPasteAndMatchStyle(); |
| 986 #if defined(OS_MACOSX) | |
| 987 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | |
| 988 #endif | |
| 989 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 977 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
| 990 void OnRedo(); | 978 void OnRedo(); |
| 991 void OnReloadFrame(); | 979 void OnReloadFrame(); |
| 992 void OnReplace(const string16& text); | 980 void OnReplace(const string16& text); |
| 993 CONTENT_EXPORT void OnReplaceAll(const string16& text); | 981 CONTENT_EXPORT void OnReplaceAll(const string16& text); |
| 994 void OnResetPageEncodingToDefault(); | 982 void OnResetPageEncodingToDefault(); |
| 995 void OnScriptEvalRequest(const string16& frame_xpath, | 983 void OnScriptEvalRequest(const string16& frame_xpath, |
| 996 const string16& jscript, | 984 const string16& jscript, |
| 997 int id, | 985 int id, |
| 998 bool notify_result); | 986 bool notify_result); |
| 999 void OnSelectAll(); | 987 void OnSelectAll(); |
| 1000 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 988 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
| 1001 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); | 989 CONTENT_EXPORT void OnSetAccessibilityMode(AccessibilityMode new_mode); |
| 1002 void OnSetActive(bool active); | 990 void OnSetActive(bool active); |
| 1003 void OnSetAltErrorPageURL(const GURL& gurl); | 991 void OnSetAltErrorPageURL(const GURL& gurl); |
| 1004 void OnSetBackground(const SkBitmap& background); | 992 void OnSetBackground(const SkBitmap& background); |
| 1005 CONTENT_EXPORT void OnSetCompositionFromExistingText( | 993 CONTENT_EXPORT void OnSetCompositionFromExistingText( |
| 1006 int start, int end, | 994 int start, int end, |
| 1007 const std::vector<WebKit::WebCompositionUnderline>& underlines); | 995 const std::vector<WebKit::WebCompositionUnderline>& underlines); |
| 1008 CONTENT_EXPORT void OnSetEditableSelectionOffsets(int start, int end); | 996 CONTENT_EXPORT void OnSetEditableSelectionOffsets(int start, int end); |
| 1009 void OnSetNavigationStartTime( | 997 void OnSetNavigationStartTime( |
| 1010 const base::TimeTicks& browser_navigation_start); | 998 const base::TimeTicks& browser_navigation_start); |
| 1011 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 999 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 1012 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( | 1000 CONTENT_EXPORT void OnSetEditCommandsForNextKeyEvent( |
| 1013 const EditCommands& edit_commands); | 1001 const EditCommands& edit_commands); |
| 1014 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, | 1002 CONTENT_EXPORT void OnSetHistoryLengthAndPrune(int history_length, |
| 1015 int32 minimum_page_id); | 1003 int32 minimum_page_id); |
| 1016 void OnSetInitialFocus(bool reverse); | 1004 void OnSetInitialFocus(bool reverse); |
| 1017 #if defined(OS_MACOSX) | |
| 1018 void OnSetInLiveResize(bool in_live_resize); | |
| 1019 #endif | |
| 1020 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); | 1005 void OnScrollFocusedEditableNodeIntoRect(const gfx::Rect& rect); |
| 1021 void OnSetPageEncoding(const std::string& encoding_name); | 1006 void OnSetPageEncoding(const std::string& encoding_name); |
| 1022 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs); | 1007 void OnSetRendererPrefs(const content::RendererPreferences& renderer_prefs); |
| 1023 #if defined(OS_MACOSX) | |
| 1024 void OnSetWindowVisibility(bool visible); | |
| 1025 #endif | |
| 1026 void OnSetZoomLevel(double zoom_level); | 1008 void OnSetZoomLevel(double zoom_level); |
| 1027 CONTENT_EXPORT void OnSetZoomLevelForLoadingURL(const GURL& url, | 1009 CONTENT_EXPORT void OnSetZoomLevelForLoadingURL(const GURL& url, |
| 1028 double zoom_level); | 1010 double zoom_level); |
| 1029 void OnExitFullscreen(); | 1011 void OnExitFullscreen(); |
| 1030 void OnShouldClose(); | 1012 void OnShouldClose(); |
| 1031 void OnStop(); | 1013 void OnStop(); |
| 1032 void OnStopFinding(content::StopFindAction action); | 1014 void OnStopFinding(content::StopFindAction action); |
| 1033 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params); | 1015 CONTENT_EXPORT void OnSwapOut(const ViewMsg_SwapOut_Params& params); |
| 1034 void OnThemeChanged(); | 1016 void OnThemeChanged(); |
| 1035 void OnUndo(); | 1017 void OnUndo(); |
| 1036 void OnUpdateTargetURLAck(); | 1018 void OnUpdateTargetURLAck(); |
| 1037 CONTENT_EXPORT void OnUpdateWebPreferences( | 1019 CONTENT_EXPORT void OnUpdateWebPreferences( |
| 1038 const webkit_glue::WebPreferences& prefs); | 1020 const webkit_glue::WebPreferences& prefs); |
| 1039 CONTENT_EXPORT void OnUnselect(); | 1021 CONTENT_EXPORT void OnUnselect(); |
| 1040 | 1022 |
| 1041 #if defined(OS_MACOSX) | |
| 1042 void OnWindowFrameChanged(const gfx::Rect& window_frame, | |
| 1043 const gfx::Rect& view_frame); | |
| 1044 CONTENT_EXPORT void OnSelectPopupMenuItem(int selected_index); | |
| 1045 #endif | |
| 1046 | |
| 1047 #if defined(OS_ANDROID) | |
| 1048 void OnSelectPopupMenuItems(bool canceled, | |
| 1049 const std::vector<int>& selected_indices); | |
| 1050 #endif | |
| 1051 | |
| 1052 void OnZoom(content::PageZoom zoom); | 1023 void OnZoom(content::PageZoom zoom); |
| 1053 void OnZoomFactor(content::PageZoom zoom, int zoom_center_x, | 1024 void OnZoomFactor(content::PageZoom zoom, int zoom_center_x, |
| 1054 int zoom_center_y); | 1025 int zoom_center_y); |
| 1055 | 1026 |
| 1056 void OnEnableViewSourceMode(); | 1027 void OnEnableViewSourceMode(); |
| 1057 | 1028 |
| 1058 void OnJavaBridgeInit(); | 1029 void OnJavaBridgeInit(); |
| 1059 | 1030 |
| 1060 void OnUpdatedFrameTree(int process_id, | 1031 void OnUpdatedFrameTree(int process_id, |
| 1061 int route_id, | 1032 int route_id, |
| 1062 const std::string& frame_tree); | 1033 const std::string& frame_tree); |
| 1063 | 1034 |
| 1035 #if defined(OS_ANDROID) |
| 1036 void OnActivateNearestFindResult(int request_id, float x, float y); |
| 1037 void OnFindMatchRects(int current_version); |
| 1038 void OnSelectPopupMenuItems(bool canceled, |
| 1039 const std::vector<int>& selected_indices); |
| 1040 void OnSynchronousFind(int request_id, |
| 1041 const string16& search_string, |
| 1042 const WebKit::WebFindOptions& options, |
| 1043 IPC::Message* reply_msg); |
| 1044 #elif defined(OS_MACOSX) |
| 1045 void OnCopyToFindPboard(); |
| 1046 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
| 1047 CONTENT_EXPORT void OnSelectPopupMenuItem(int selected_index); |
| 1048 void OnSetInLiveResize(bool in_live_resize); |
| 1049 void OnSetWindowVisibility(bool visible); |
| 1050 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
| 1051 const gfx::Rect& view_frame); |
| 1052 #endif |
| 1053 |
| 1054 |
| 1064 // Adding a new message handler? Please add it in alphabetical order above | 1055 // Adding a new message handler? Please add it in alphabetical order above |
| 1065 // and put it in the same position in the .cc file. | 1056 // and put it in the same position in the .cc file. |
| 1066 | 1057 |
| 1067 // Misc private functions ---------------------------------------------------- | 1058 // Misc private functions ---------------------------------------------------- |
| 1068 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x, | 1059 void ZoomFactorHelper(content::PageZoom zoom, int zoom_center_x, |
| 1069 int zoom_center_y, float scaling_increment); | 1060 int zoom_center_y, float scaling_increment); |
| 1070 | 1061 |
| 1071 void AltErrorPageFinished(WebKit::WebFrame* frame, | 1062 void AltErrorPageFinished(WebKit::WebFrame* frame, |
| 1072 const WebKit::WebURLError& original_error, | 1063 const WebKit::WebURLError& original_error, |
| 1073 const std::string& html); | 1064 const std::string& html); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 const SkBitmap& image); | 1099 const SkBitmap& image); |
| 1109 | 1100 |
| 1110 // Requests to download a favicon image. When done, the RenderView is notified | 1101 // Requests to download a favicon image. When done, the RenderView is notified |
| 1111 // by way of DidDownloadFavicon. Returns true if the request was successfully | 1102 // by way of DidDownloadFavicon. Returns true if the request was successfully |
| 1112 // started, false otherwise. id is used to uniquely identify the request and | 1103 // started, false otherwise. id is used to uniquely identify the request and |
| 1113 // passed back to the DidDownloadFavicon method. If the image has multiple | 1104 // passed back to the DidDownloadFavicon method. If the image has multiple |
| 1114 // frames, the frame whose size is image_size is returned. If the image | 1105 // frames, the frame whose size is image_size is returned. If the image |
| 1115 // doesn't have a frame at the specified size, the first is returned. | 1106 // doesn't have a frame at the specified size, the first is returned. |
| 1116 bool DownloadFavicon(int id, const GURL& image_url, int image_size); | 1107 bool DownloadFavicon(int id, const GURL& image_url, int image_size); |
| 1117 | 1108 |
| 1109 // Starts a new find-in-page search or looks for the next match. |
| 1110 void Find(int request_id, |
| 1111 const string16& search_text, |
| 1112 const WebKit::WebFindOptions& options); |
| 1113 |
| 1118 GURL GetAlternateErrorPageURL(const GURL& failed_url, | 1114 GURL GetAlternateErrorPageURL(const GURL& failed_url, |
| 1119 ErrorPageType error_type); | 1115 ErrorPageType error_type); |
| 1120 | 1116 |
| 1121 // Locates a sub frame with given xpath | 1117 // Locates a sub frame with given xpath |
| 1122 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; | 1118 WebKit::WebFrame* GetChildFrame(const string16& frame_xpath) const; |
| 1123 | 1119 |
| 1124 // Returns the opener url if present, else an empty url. | 1120 // Returns the opener url if present, else an empty url. |
| 1125 GURL GetOpenerUrl() const; | 1121 GURL GetOpenerUrl() const; |
| 1126 | 1122 |
| 1127 // Returns the URL being loaded by the given frame's request. | 1123 // Returns the URL being loaded by the given frame's request. |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1154 void PopulateDocumentStateFromPending(content::DocumentState* document_state); | 1150 void PopulateDocumentStateFromPending(content::DocumentState* document_state); |
| 1155 | 1151 |
| 1156 // Returns a new NavigationState populated with the navigation information | 1152 // Returns a new NavigationState populated with the navigation information |
| 1157 // saved in OnNavigate(). | 1153 // saved in OnNavigate(). |
| 1158 content::NavigationState* CreateNavigationStateFromPending(); | 1154 content::NavigationState* CreateNavigationStateFromPending(); |
| 1159 | 1155 |
| 1160 // Processes the command-line flags --enable-viewport and | 1156 // Processes the command-line flags --enable-viewport and |
| 1161 // --enable-fixed-layout[=w,h]. | 1157 // --enable-fixed-layout[=w,h]. |
| 1162 void ProcessViewLayoutFlags(const CommandLine& command_line); | 1158 void ProcessViewLayoutFlags(const CommandLine& command_line); |
| 1163 | 1159 |
| 1160 // Sends a reply to the current find operation handling if it was a |
| 1161 // synchronous find request. |
| 1162 void SendFindReply(int request_id, |
| 1163 int match_count, |
| 1164 int ordinal, |
| 1165 const WebKit::WebRect& selection_rect, |
| 1166 bool final_status_update); |
| 1167 |
| 1164 // Starts nav_state_sync_timer_ if it isn't already running. | 1168 // Starts nav_state_sync_timer_ if it isn't already running. |
| 1165 void StartNavStateSyncTimerIfNecessary(); | 1169 void StartNavStateSyncTimerIfNecessary(); |
| 1166 | 1170 |
| 1171 // Stops the current find-in-page search. |
| 1172 void StopFinding(content::StopFindAction action); |
| 1173 |
| 1167 // Dispatches the current navigation state to the browser. Called on a | 1174 // Dispatches the current navigation state to the browser. Called on a |
| 1168 // periodic timer so we don't send too many messages. | 1175 // periodic timer so we don't send too many messages. |
| 1169 void SyncNavigationState(); | 1176 void SyncNavigationState(); |
| 1170 | 1177 |
| 1171 // Dispatches the current state of selection on the webpage to the browser if | 1178 // Dispatches the current state of selection on the webpage to the browser if |
| 1172 // it has changed. | 1179 // it has changed. |
| 1173 // TODO(varunjain): delete this method once we figure out how to keep | 1180 // TODO(varunjain): delete this method once we figure out how to keep |
| 1174 // selection handles in sync with the webpage. | 1181 // selection handles in sync with the webpage. |
| 1175 void SyncSelectionIfRequired(); | 1182 void SyncSelectionIfRequired(); |
| 1176 | 1183 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 // Proxy class for WebMediaPlayer to communicate with the real media player | 1422 // Proxy class for WebMediaPlayer to communicate with the real media player |
| 1416 // objects in browser process. | 1423 // objects in browser process. |
| 1417 content::WebMediaPlayerProxyImplAndroid* media_player_proxy_; | 1424 content::WebMediaPlayerProxyImplAndroid* media_player_proxy_; |
| 1418 | 1425 |
| 1419 // The media player manager for managing all the media players on this view. | 1426 // The media player manager for managing all the media players on this view. |
| 1420 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; | 1427 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; |
| 1421 | 1428 |
| 1422 // Resource manager for all the android media player objects if they are | 1429 // Resource manager for all the android media player objects if they are |
| 1423 // created in the renderer process. | 1430 // created in the renderer process. |
| 1424 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; | 1431 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; |
| 1432 |
| 1433 // Holds the message used to return find results to the browser during |
| 1434 // synchronous find-in-page requests. Only non-null during these requests. |
| 1435 scoped_ptr<IPC::Message> synchronous_find_reply_message_; |
| 1436 |
| 1437 // The active find-in-page match ordinal during synchronous requests. |
| 1438 // Needed to be remembered across WebKit callbacks. |
| 1439 int synchronous_find_active_match_ordinal_; |
| 1425 #endif | 1440 #endif |
| 1426 | 1441 |
| 1427 // Misc ---------------------------------------------------------------------- | 1442 // Misc ---------------------------------------------------------------------- |
| 1428 | 1443 |
| 1429 // The current and pending file chooser completion objects. If the queue is | 1444 // The current and pending file chooser completion objects. If the queue is |
| 1430 // nonempty, the first item represents the currently running file chooser | 1445 // nonempty, the first item represents the currently running file chooser |
| 1431 // callback, and the remaining elements are the other file chooser completion | 1446 // callback, and the remaining elements are the other file chooser completion |
| 1432 // still waiting to be run (in order). | 1447 // still waiting to be run (in order). |
| 1433 struct PendingFileChooser; | 1448 struct PendingFileChooser; |
| 1434 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1449 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1552 // bunch of stuff, you should probably create a helper class and put your | 1567 // bunch of stuff, you should probably create a helper class and put your |
| 1553 // data and methods on that to avoid bloating RenderView more. You can | 1568 // data and methods on that to avoid bloating RenderView more. You can |
| 1554 // use the Observer interface to filter IPC messages and receive frame change | 1569 // use the Observer interface to filter IPC messages and receive frame change |
| 1555 // notifications. | 1570 // notifications. |
| 1556 // --------------------------------------------------------------------------- | 1571 // --------------------------------------------------------------------------- |
| 1557 | 1572 |
| 1558 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1573 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1559 }; | 1574 }; |
| 1560 | 1575 |
| 1561 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1576 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |