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 <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 struct WebPluginAction; | 130 struct WebPluginAction; |
131 struct WebPoint; | 131 struct WebPoint; |
132 struct WebWindowFeatures; | 132 struct WebWindowFeatures; |
133 | 133 |
134 #if defined(OS_ANDROID) | 134 #if defined(OS_ANDROID) |
135 class WebHitTestResult; | 135 class WebHitTestResult; |
136 #endif | 136 #endif |
137 } | 137 } |
138 | 138 |
139 namespace content { | 139 namespace content { |
140 class BrowserPluginManager; | |
140 class DeviceOrientationDispatcher; | 141 class DeviceOrientationDispatcher; |
141 class DevToolsAgent; | 142 class DevToolsAgent; |
142 class DocumentState; | 143 class DocumentState; |
143 class DomAutomationController; | 144 class DomAutomationController; |
144 class ExternalPopupMenu; | 145 class ExternalPopupMenu; |
145 class GeolocationDispatcher; | 146 class GeolocationDispatcher; |
146 class InputTagSpeechDispatcher; | 147 class InputTagSpeechDispatcher; |
147 class JavaBridgeDispatcher; | 148 class JavaBridgeDispatcher; |
148 class LoadProgressTracker; | 149 class LoadProgressTracker; |
149 class MediaStreamDispatcher; | 150 class MediaStreamDispatcher; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
257 MouseLockDispatcher* mouse_lock_dispatcher() { | 258 MouseLockDispatcher* mouse_lock_dispatcher() { |
258 return mouse_lock_dispatcher_; | 259 return mouse_lock_dispatcher_; |
259 } | 260 } |
260 | 261 |
261 #if defined(OS_ANDROID) | 262 #if defined(OS_ANDROID) |
262 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { | 263 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { |
263 return media_player_manager_.get(); | 264 return media_player_manager_.get(); |
264 } | 265 } |
265 #endif | 266 #endif |
266 | 267 |
268 // Lazily initialize this view's BrowserPluginManager and return it. | |
269 BrowserPluginManager* browser_plugin_manager(); | |
270 | |
267 // Functions to add and remove observers for this object. | 271 // Functions to add and remove observers for this object. |
268 void AddObserver(RenderViewObserver* observer); | 272 void AddObserver(RenderViewObserver* observer); |
269 void RemoveObserver(RenderViewObserver* observer); | 273 void RemoveObserver(RenderViewObserver* observer); |
270 | 274 |
271 // Adds the given file chooser request to the file_chooser_completion_ queue | 275 // Adds the given file chooser request to the file_chooser_completion_ queue |
272 // (see that var for more) and requests the chooser be displayed if there are | 276 // (see that var for more) and requests the chooser be displayed if there are |
273 // no other waiting items in the queue. | 277 // no other waiting items in the queue. |
274 // | 278 // |
275 // Returns true if the chooser was successfully scheduled. False means we | 279 // Returns true if the chooser was successfully scheduled. False means we |
276 // didn't schedule anything. | 280 // didn't schedule anything. |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1034 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 1038 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
1035 | 1039 |
1036 // This method walks the entire frame tree for this RenderView and sends an | 1040 // This method walks the entire frame tree for this RenderView and sends an |
1037 // update to the browser process as described in the | 1041 // update to the browser process as described in the |
1038 // ViewHostMsg_FrameTreeUpdated comments. If |exclude_frame_subtree| | 1042 // ViewHostMsg_FrameTreeUpdated comments. If |exclude_frame_subtree| |
1039 // frame is non-NULL, the subtree starting at that frame not included in the | 1043 // frame is non-NULL, the subtree starting at that frame not included in the |
1040 // serialized form. | 1044 // serialized form. |
1041 // This is used when a frame is going to be removed from the tree. | 1045 // This is used when a frame is going to be removed from the tree. |
1042 void SendUpdatedFrameTree(WebKit::WebFrame* exclude_frame_subtree); | 1046 void SendUpdatedFrameTree(WebKit::WebFrame* exclude_frame_subtree); |
1043 | 1047 |
1048 bool has_browser_plugin_manager() const { return browser_plugin_manager_; } | |
Charlie Reis
2012/11/20 00:33:34
return !!browser_plugin_manager_;
Fady Samuel
2012/11/20 02:04:15
Deleted.
| |
1049 | |
1044 // Recursively creates a DOM frame tree starting with |frame|, based on | 1050 // Recursively creates a DOM frame tree starting with |frame|, based on |
1045 // |frame_tree|. For each node, the frame is navigated to the swapped out URL, | 1051 // |frame_tree|. For each node, the frame is navigated to the swapped out URL, |
1046 // the name (if present) is set on it, and all the subframes are created | 1052 // the name (if present) is set on it, and all the subframes are created |
1047 // and added to the DOM. | 1053 // and added to the DOM. |
1048 void CreateFrameTree(WebKit::WebFrame* frame, DictionaryValue* frame_tree); | 1054 void CreateFrameTree(WebKit::WebFrame* frame, DictionaryValue* frame_tree); |
1049 | 1055 |
1050 // If this is a swapped out RenderView, which maintains a copy of the frame | 1056 // If this is a swapped out RenderView, which maintains a copy of the frame |
1051 // tree of an active RenderView, we keep a map from frame ids in this view to | 1057 // tree of an active RenderView, we keep a map from frame ids in this view to |
1052 // the frame ids of the active view for each corresponding frame. | 1058 // the frame ids of the active view for each corresponding frame. |
1053 // This method returns the frame in this RenderView that corresponds to the | 1059 // This method returns the frame in this RenderView that corresponds to the |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1367 // The speech recognition dispatcher attached to this view, lazily | 1373 // The speech recognition dispatcher attached to this view, lazily |
1368 // initialized. | 1374 // initialized. |
1369 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 1375 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
1370 | 1376 |
1371 // Device orientation dispatcher attached to this view; lazily initialized. | 1377 // Device orientation dispatcher attached to this view; lazily initialized. |
1372 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1378 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1373 | 1379 |
1374 // MediaStream dispatcher attached to this view; lazily initialized. | 1380 // MediaStream dispatcher attached to this view; lazily initialized. |
1375 MediaStreamDispatcher* media_stream_dispatcher_; | 1381 MediaStreamDispatcher* media_stream_dispatcher_; |
1376 | 1382 |
1383 // BrowserPluginManager attached to this view; lazily initialized. | |
1384 scoped_refptr<BrowserPluginManager> browser_plugin_manager_; | |
1385 | |
1377 // MediaStreamImpl attached to this view; lazily initialized. | 1386 // MediaStreamImpl attached to this view; lazily initialized. |
1378 MediaStreamImpl* media_stream_impl_; | 1387 MediaStreamImpl* media_stream_impl_; |
1379 | 1388 |
1380 DevToolsAgent* devtools_agent_; | 1389 DevToolsAgent* devtools_agent_; |
1381 | 1390 |
1382 // The current accessibility mode. | 1391 // The current accessibility mode. |
1383 AccessibilityMode accessibility_mode_; | 1392 AccessibilityMode accessibility_mode_; |
1384 | 1393 |
1385 // Only valid if |accessibility_mode_| is anything other than | 1394 // Only valid if |accessibility_mode_| is anything other than |
1386 // AccessibilityModeOff. | 1395 // AccessibilityModeOff. |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1548 // use the Observer interface to filter IPC messages and receive frame change | 1557 // use the Observer interface to filter IPC messages and receive frame change |
1549 // notifications. | 1558 // notifications. |
1550 // --------------------------------------------------------------------------- | 1559 // --------------------------------------------------------------------------- |
1551 | 1560 |
1552 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1561 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1553 }; | 1562 }; |
1554 | 1563 |
1555 } // namespace content | 1564 } // namespace content |
1556 | 1565 |
1557 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1566 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |