| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 class PluginInstance; | 112 class PluginInstance; |
| 113 } // namespace ppapi | 113 } // namespace ppapi |
| 114 | 114 |
| 115 } // namespace webkit | 115 } // namespace webkit |
| 116 | 116 |
| 117 namespace webkit_glue { | 117 namespace webkit_glue { |
| 118 class ImageResourceFetcher; | 118 class ImageResourceFetcher; |
| 119 class ResourceFetcher; | 119 class ResourceFetcher; |
| 120 } | 120 } |
| 121 | 121 |
| 122 #if defined(OS_ANDROID) |
| 123 namespace webkit_media { |
| 124 class WebMediaPlayerManagerAndroid; |
| 125 } |
| 126 #endif |
| 127 |
| 122 namespace WebKit { | 128 namespace WebKit { |
| 123 class WebApplicationCacheHost; | 129 class WebApplicationCacheHost; |
| 124 class WebApplicationCacheHostClient; | 130 class WebApplicationCacheHostClient; |
| 125 class WebDOMMessageEvent; | 131 class WebDOMMessageEvent; |
| 126 class WebDataSource; | 132 class WebDataSource; |
| 127 class WebDragData; | 133 class WebDragData; |
| 128 class WebGeolocationClient; | 134 class WebGeolocationClient; |
| 129 class WebIconURL; | 135 class WebIconURL; |
| 130 class WebImage; | 136 class WebImage; |
| 131 class WebPeerConnection00Handler; | 137 class WebPeerConnection00Handler; |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 virtual void ShowContextMenu(WebKit::WebFrame* frame, | 641 virtual void ShowContextMenu(WebKit::WebFrame* frame, |
| 636 const WebKit::WebContextMenuData& data) OVERRIDE; | 642 const WebKit::WebContextMenuData& data) OVERRIDE; |
| 637 virtual WebKit::WebPageVisibilityState GetVisibilityState() const OVERRIDE; | 643 virtual WebKit::WebPageVisibilityState GetVisibilityState() const OVERRIDE; |
| 638 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, | 644 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, |
| 639 const WebKit::WebString& message) OVERRIDE; | 645 const WebKit::WebString& message) OVERRIDE; |
| 640 virtual void LoadURLExternally( | 646 virtual void LoadURLExternally( |
| 641 WebKit::WebFrame* frame, | 647 WebKit::WebFrame* frame, |
| 642 const WebKit::WebURLRequest& request, | 648 const WebKit::WebURLRequest& request, |
| 643 WebKit::WebNavigationPolicy policy) OVERRIDE; | 649 WebKit::WebNavigationPolicy policy) OVERRIDE; |
| 644 | 650 |
| 651 #if defined(OS_ANDROID) |
| 652 virtual webkit_media::WebMediaPlayerManagerAndroid* |
| 653 GetWebMediaPlayerManager() OVERRIDE; |
| 654 #endif |
| 655 |
| 645 // webkit_glue::WebPluginPageDelegate implementation ------------------------- | 656 // webkit_glue::WebPluginPageDelegate implementation ------------------------- |
| 646 | 657 |
| 647 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( | 658 virtual webkit::npapi::WebPluginDelegate* CreatePluginDelegate( |
| 648 const FilePath& file_path, | 659 const FilePath& file_path, |
| 649 const std::string& mime_type) OVERRIDE; | 660 const std::string& mime_type) OVERRIDE; |
| 650 virtual WebKit::WebPlugin* CreatePluginReplacement( | 661 virtual WebKit::WebPlugin* CreatePluginReplacement( |
| 651 const FilePath& file_path) OVERRIDE; | 662 const FilePath& file_path) OVERRIDE; |
| 652 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; | 663 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
| 653 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; | 664 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) OVERRIDE; |
| 654 virtual void DidMovePlugin( | 665 virtual void DidMovePlugin( |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1314 // is fine. | 1325 // is fine. |
| 1315 ObserverList<content::RenderViewObserver> observers_; | 1326 ObserverList<content::RenderViewObserver> observers_; |
| 1316 | 1327 |
| 1317 // Used to inform didChangeSelection() when it is called in the context | 1328 // Used to inform didChangeSelection() when it is called in the context |
| 1318 // of handling a ViewMsg_SelectRange IPC. | 1329 // of handling a ViewMsg_SelectRange IPC. |
| 1319 bool handling_select_range_; | 1330 bool handling_select_range_; |
| 1320 | 1331 |
| 1321 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. | 1332 // Wraps the |webwidget_| as a MouseLockDispatcher::LockTarget interface. |
| 1322 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; | 1333 scoped_ptr<MouseLockDispatcher::LockTarget> webwidget_mouse_lock_target_; |
| 1323 | 1334 |
| 1335 #if defined(OS_ANDROID) |
| 1336 // The media player manager for managing all the media players on this view. |
| 1337 scoped_ptr<webkit_media::WebMediaPlayerManagerAndroid> media_player_manager_; |
| 1338 #endif |
| 1339 |
| 1324 // Plugins ------------------------------------------------------------------- | 1340 // Plugins ------------------------------------------------------------------- |
| 1325 | 1341 |
| 1326 // All the currently active plugin delegates for this RenderView; kept so | 1342 // All the currently active plugin delegates for this RenderView; kept so |
| 1327 // that we can enumerate them to send updates about things like window | 1343 // that we can enumerate them to send updates about things like window |
| 1328 // location or tab focus and visibily. These are non-owning references. | 1344 // location or tab focus and visibily. These are non-owning references. |
| 1329 std::set<WebPluginDelegateProxy*> plugin_delegates_; | 1345 std::set<WebPluginDelegateProxy*> plugin_delegates_; |
| 1330 | 1346 |
| 1331 #if defined(OS_WIN) | 1347 #if defined(OS_WIN) |
| 1332 // The ID of the focused NPAPI plug-in. | 1348 // The ID of the focused NPAPI plug-in. |
| 1333 int focused_plugin_id_; | 1349 int focused_plugin_id_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1353 // bunch of stuff, you should probably create a helper class and put your | 1369 // bunch of stuff, you should probably create a helper class and put your |
| 1354 // data and methods on that to avoid bloating RenderView more. You can | 1370 // data and methods on that to avoid bloating RenderView more. You can |
| 1355 // use the Observer interface to filter IPC messages and receive frame change | 1371 // use the Observer interface to filter IPC messages and receive frame change |
| 1356 // notifications. | 1372 // notifications. |
| 1357 // --------------------------------------------------------------------------- | 1373 // --------------------------------------------------------------------------- |
| 1358 | 1374 |
| 1359 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1375 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1360 }; | 1376 }; |
| 1361 | 1377 |
| 1362 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1378 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |