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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "webkit/media/webmediaplayer_delegate.h" | 54 #include "webkit/media/webmediaplayer_delegate.h" |
55 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 55 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
56 | 56 |
57 #if defined(COMPILER_MSVC) | 57 #if defined(COMPILER_MSVC) |
58 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 58 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
59 // root. VS warns when we inherit the WebWidgetClient method implementations | 59 // root. VS warns when we inherit the WebWidgetClient method implementations |
60 // from RenderWidget. It's safe to ignore that warning. | 60 // from RenderWidget. It's safe to ignore that warning. |
61 #pragma warning(disable: 4250) | 61 #pragma warning(disable: 4250) |
62 #endif | 62 #endif |
63 | 63 |
| 64 class AudioDeviceFactoryInterface; |
64 class CommandLine; | 65 class CommandLine; |
65 class DeviceOrientationDispatcher; | 66 class DeviceOrientationDispatcher; |
66 class DevToolsAgent; | 67 class DevToolsAgent; |
67 class DomAutomationController; | 68 class DomAutomationController; |
68 class ExternalPopupMenu; | 69 class ExternalPopupMenu; |
69 class GeolocationDispatcher; | 70 class GeolocationDispatcher; |
70 class GURL; | 71 class GURL; |
71 class JavaBridgeDispatcher; | 72 class JavaBridgeDispatcher; |
72 class LoadProgressTracker; | 73 class LoadProgressTracker; |
73 class MediaStreamDispatcher; | 74 class MediaStreamDispatcher; |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // WebGraphicsContext3DSwapBuffersClient implementation. | 222 // WebGraphicsContext3DSwapBuffersClient implementation. |
222 | 223 |
223 // Called by a GraphicsContext associated with this view when swapbuffers | 224 // Called by a GraphicsContext associated with this view when swapbuffers |
224 // is posted, completes or is aborted. | 225 // is posted, completes or is aborted. |
225 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; | 226 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; |
226 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; | 227 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; |
227 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; | 228 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; |
228 | 229 |
229 int history_list_offset() const { return history_list_offset_; } | 230 int history_list_offset() const { return history_list_offset_; } |
230 | 231 |
| 232 AudioDeviceFactoryInterface* audio_device_factory() const { |
| 233 return audio_device_factory_.get(); |
| 234 } |
| 235 |
231 const webkit_glue::WebPreferences& webkit_preferences() const { | 236 const webkit_glue::WebPreferences& webkit_preferences() const { |
232 return webkit_preferences_; | 237 return webkit_preferences_; |
233 } | 238 } |
234 | 239 |
235 void set_send_content_state_immediately(bool value) { | 240 void set_send_content_state_immediately(bool value) { |
236 send_content_state_immediately_ = value; | 241 send_content_state_immediately_ = value; |
237 } | 242 } |
238 | 243 |
239 MediaStreamDispatcher* media_stream_dispatcher() { | 244 MediaStreamDispatcher* media_stream_dispatcher() { |
240 return media_stream_dispatcher_; | 245 return media_stream_dispatcher_; |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 content::RendererAccessibility* renderer_accessibility_; | 1330 content::RendererAccessibility* renderer_accessibility_; |
1326 | 1331 |
1327 // Java Bridge dispatcher attached to this view; lazily initialized. | 1332 // Java Bridge dispatcher attached to this view; lazily initialized. |
1328 JavaBridgeDispatcher* java_bridge_dispatcher_; | 1333 JavaBridgeDispatcher* java_bridge_dispatcher_; |
1329 | 1334 |
1330 // Mouse Lock dispatcher attached to this view. | 1335 // Mouse Lock dispatcher attached to this view. |
1331 MouseLockDispatcher* mouse_lock_dispatcher_; | 1336 MouseLockDispatcher* mouse_lock_dispatcher_; |
1332 | 1337 |
1333 // Misc ---------------------------------------------------------------------- | 1338 // Misc ---------------------------------------------------------------------- |
1334 | 1339 |
| 1340 // Allows users to create media::AudioRendererSink objects with different |
| 1341 // implementations. |
| 1342 scoped_ptr<AudioDeviceFactoryInterface> audio_device_factory_; |
| 1343 |
1335 // The current and pending file chooser completion objects. If the queue is | 1344 // The current and pending file chooser completion objects. If the queue is |
1336 // nonempty, the first item represents the currently running file chooser | 1345 // nonempty, the first item represents the currently running file chooser |
1337 // callback, and the remaining elements are the other file chooser completion | 1346 // callback, and the remaining elements are the other file chooser completion |
1338 // still waiting to be run (in order). | 1347 // still waiting to be run (in order). |
1339 struct PendingFileChooser; | 1348 struct PendingFileChooser; |
1340 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1349 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1341 | 1350 |
1342 // The current directory enumeration callback | 1351 // The current directory enumeration callback |
1343 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; | 1352 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; |
1344 int enumeration_completion_id_; | 1353 int enumeration_completion_id_; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 // bunch of stuff, you should probably create a helper class and put your | 1448 // bunch of stuff, you should probably create a helper class and put your |
1440 // data and methods on that to avoid bloating RenderView more. You can | 1449 // data and methods on that to avoid bloating RenderView more. You can |
1441 // use the Observer interface to filter IPC messages and receive frame change | 1450 // use the Observer interface to filter IPC messages and receive frame change |
1442 // notifications. | 1451 // notifications. |
1443 // --------------------------------------------------------------------------- | 1452 // --------------------------------------------------------------------------- |
1444 | 1453 |
1445 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1454 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1446 }; | 1455 }; |
1447 | 1456 |
1448 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1457 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |