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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 const WebKit::WebURLError& error, | 278 const WebKit::WebURLError& error, |
279 const std::string& html, | 279 const std::string& html, |
280 bool replace); | 280 bool replace); |
281 | 281 |
282 // Plugin-related functions -------------------------------------------------- | 282 // Plugin-related functions -------------------------------------------------- |
283 // (See also WebPluginPageDelegate implementation.) | 283 // (See also WebPluginPageDelegate implementation.) |
284 | 284 |
285 // Notification that the given plugin has crashed. | 285 // Notification that the given plugin has crashed. |
286 void PluginCrashed(const FilePath& plugin_path); | 286 void PluginCrashed(const FilePath& plugin_path); |
287 | 287 |
288 // Notification that the default plugin has done something about a missing | |
289 // plugin. See default_plugin_shared.h for possible values of |status|. | |
290 void OnMissingPluginStatus(WebPluginDelegateProxy* delegate, | |
291 int status); | |
292 | |
293 // Create a new NPAPI plugin. | 288 // Create a new NPAPI plugin. |
294 WebKit::WebPlugin* CreateNPAPIPlugin(WebKit::WebFrame* frame, | 289 WebKit::WebPlugin* CreateNPAPIPlugin(WebKit::WebFrame* frame, |
295 const WebKit::WebPluginParams& params, | 290 const WebKit::WebPluginParams& params, |
296 const FilePath& path, | 291 const FilePath& path, |
297 const std::string& mime_type); | 292 const std::string& mime_type); |
298 | 293 |
299 // Create a new Pepper plugin. | 294 // Create a new Pepper plugin. |
300 WebKit::WebPlugin* CreatePepperPlugin( | 295 WebKit::WebPlugin* CreatePepperPlugin( |
301 WebKit::WebFrame* frame, | 296 WebKit::WebFrame* frame, |
302 const WebKit::WebPluginParams& params, | 297 const WebKit::WebPluginParams& params, |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 803 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
809 void OnFileChooserResponse(const std::vector<FilePath>& paths); | 804 void OnFileChooserResponse(const std::vector<FilePath>& paths); |
810 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 805 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
811 void OnFindReplyAck(); | 806 void OnFindReplyAck(); |
812 void OnEnableAccessibility(); | 807 void OnEnableAccessibility(); |
813 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 808 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
814 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 809 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
815 const std::vector<GURL>& links, | 810 const std::vector<GURL>& links, |
816 const std::vector<FilePath>& local_paths, | 811 const std::vector<FilePath>& local_paths, |
817 const FilePath& local_directory_name); | 812 const FilePath& local_directory_name); |
818 void OnInstallMissingPlugin(); | |
819 void OnMediaPlayerActionAt(const gfx::Point& location, | 813 void OnMediaPlayerActionAt(const gfx::Point& location, |
820 const WebKit::WebMediaPlayerAction& action); | 814 const WebKit::WebMediaPlayerAction& action); |
821 void OnMoveOrResizeStarted(); | 815 void OnMoveOrResizeStarted(); |
822 void OnNavigate(const ViewMsg_Navigate_Params& params); | 816 void OnNavigate(const ViewMsg_Navigate_Params& params); |
823 void OnPaste(); | 817 void OnPaste(); |
824 #if defined(OS_MACOSX) | 818 #if defined(OS_MACOSX) |
825 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); | 819 void OnPluginImeCompositionCompleted(const string16& text, int plugin_id); |
826 #endif | 820 #endif |
827 void OnRedo(); | 821 void OnRedo(); |
828 void OnReloadFrame(); | 822 void OnReloadFrame(); |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 | 1111 |
1118 #if defined(OS_MACOSX) | 1112 #if defined(OS_MACOSX) |
1119 // Track the fake plugin window handles allocated on the browser side for | 1113 // Track the fake plugin window handles allocated on the browser side for |
1120 // the accelerated compositor and (currently) accelerated plugins so that | 1114 // the accelerated compositor and (currently) accelerated plugins so that |
1121 // we can discard them when the view goes away. | 1115 // we can discard them when the view goes away. |
1122 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; | 1116 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; |
1123 #endif | 1117 #endif |
1124 | 1118 |
1125 // Plugins ------------------------------------------------------------------- | 1119 // Plugins ------------------------------------------------------------------- |
1126 | 1120 |
1127 // Remember the first uninstalled plugin, so that we can ask the plugin | |
1128 // to install itself when user clicks on the info bar. | |
1129 base::WeakPtr<webkit::npapi::WebPluginDelegate> first_default_plugin_; | |
1130 | |
1131 PepperPluginDelegateImpl pepper_delegate_; | 1121 PepperPluginDelegateImpl pepper_delegate_; |
1132 | 1122 |
1133 // All the currently active plugin delegates for this RenderView; kept so that | 1123 // All the currently active plugin delegates for this RenderView; kept so that |
1134 // we can enumerate them to send updates about things like window location | 1124 // we can enumerate them to send updates about things like window location |
1135 // or tab focus and visibily. These are non-owning references. | 1125 // or tab focus and visibily. These are non-owning references. |
1136 std::set<WebPluginDelegateProxy*> plugin_delegates_; | 1126 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
1137 | 1127 |
1138 // Helper objects ------------------------------------------------------------ | 1128 // Helper objects ------------------------------------------------------------ |
1139 | 1129 |
1140 ScopedRunnableMethodFactory<RenderView> accessibility_method_factory_; | 1130 ScopedRunnableMethodFactory<RenderView> accessibility_method_factory_; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 // bunch of stuff, you should probably create a helper class and put your | 1231 // bunch of stuff, you should probably create a helper class and put your |
1242 // data and methods on that to avoid bloating RenderView more. You can use | 1232 // data and methods on that to avoid bloating RenderView more. You can use |
1243 // the Observer interface to filter IPC messages and receive frame change | 1233 // the Observer interface to filter IPC messages and receive frame change |
1244 // notifications. | 1234 // notifications. |
1245 // --------------------------------------------------------------------------- | 1235 // --------------------------------------------------------------------------- |
1246 | 1236 |
1247 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1237 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1248 }; | 1238 }; |
1249 | 1239 |
1250 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1240 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |