| 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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 #include "content/renderer/p2p/socket_dispatcher.h" | 80 #include "content/renderer/p2p/socket_dispatcher.h" |
| 81 #include "content/renderer/plugin_channel_host.h" | 81 #include "content/renderer/plugin_channel_host.h" |
| 82 #include "content/renderer/browser_plugin/browser_plugin.h" | 82 #include "content/renderer/browser_plugin/browser_plugin.h" |
| 83 #include "content/renderer/browser_plugin/browser_plugin_constants.h" | 83 #include "content/renderer/browser_plugin/browser_plugin_constants.h" |
| 84 #include "content/renderer/render_process.h" | 84 #include "content/renderer/render_process.h" |
| 85 #include "content/renderer/render_thread_impl.h" | 85 #include "content/renderer/render_thread_impl.h" |
| 86 #include "content/renderer/render_widget_fullscreen_pepper.h" | 86 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 87 #include "content/renderer/renderer_accessibility.h" | 87 #include "content/renderer/renderer_accessibility.h" |
| 88 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 88 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 89 #include "content/renderer/renderer_webcolorchooser_impl.h" | 89 #include "content/renderer/renderer_webcolorchooser_impl.h" |
| 90 #include "content/renderer/speech_recognition_dispatcher.h" |
| 90 #include "content/renderer/text_input_client_observer.h" | 91 #include "content/renderer/text_input_client_observer.h" |
| 91 #include "content/renderer/v8_value_converter_impl.h" | 92 #include "content/renderer/v8_value_converter_impl.h" |
| 92 #include "content/renderer/web_intents_host.h" | 93 #include "content/renderer/web_intents_host.h" |
| 93 #include "content/renderer/web_ui_bindings.h" | 94 #include "content/renderer/web_ui_bindings.h" |
| 94 #include "content/renderer/webplugin_delegate_proxy.h" | 95 #include "content/renderer/webplugin_delegate_proxy.h" |
| 95 #include "content/renderer/websharedworker_proxy.h" | 96 #include "content/renderer/websharedworker_proxy.h" |
| 96 #include "media/base/filter_collection.h" | 97 #include "media/base/filter_collection.h" |
| 97 #include "media/base/media_switches.h" | 98 #include "media/base/media_switches.h" |
| 98 #include "media/base/message_loop_factory.h" | 99 #include "media/base/message_loop_factory.h" |
| 99 #include "media/filters/audio_renderer_impl.h" | 100 #include "media/filters/audio_renderer_impl.h" |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 cached_is_main_frame_pinned_to_left_(false), | 519 cached_is_main_frame_pinned_to_left_(false), |
| 519 cached_is_main_frame_pinned_to_right_(false), | 520 cached_is_main_frame_pinned_to_right_(false), |
| 520 cached_has_main_frame_horizontal_scrollbar_(false), | 521 cached_has_main_frame_horizontal_scrollbar_(false), |
| 521 cached_has_main_frame_vertical_scrollbar_(false), | 522 cached_has_main_frame_vertical_scrollbar_(false), |
| 522 context_has_swapbuffers_complete_callback_(false), | 523 context_has_swapbuffers_complete_callback_(false), |
| 523 queried_for_swapbuffers_complete_callback_(false), | 524 queried_for_swapbuffers_complete_callback_(false), |
| 524 context_is_web_graphics_context_3d_command_buffer_impl_(false), | 525 context_is_web_graphics_context_3d_command_buffer_impl_(false), |
| 525 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), | 526 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), |
| 526 geolocation_dispatcher_(NULL), | 527 geolocation_dispatcher_(NULL), |
| 527 input_tag_speech_dispatcher_(NULL), | 528 input_tag_speech_dispatcher_(NULL), |
| 529 speech_recognition_dispatcher_(NULL), |
| 528 device_orientation_dispatcher_(NULL), | 530 device_orientation_dispatcher_(NULL), |
| 529 media_stream_dispatcher_(NULL), | 531 media_stream_dispatcher_(NULL), |
| 530 media_stream_impl_(NULL), | 532 media_stream_impl_(NULL), |
| 531 p2p_socket_dispatcher_(NULL), | 533 p2p_socket_dispatcher_(NULL), |
| 532 devtools_agent_(NULL), | 534 devtools_agent_(NULL), |
| 533 renderer_accessibility_(NULL), | 535 renderer_accessibility_(NULL), |
| 534 java_bridge_dispatcher_(NULL), | 536 java_bridge_dispatcher_(NULL), |
| 535 mouse_lock_dispatcher_(NULL), | 537 mouse_lock_dispatcher_(NULL), |
| 536 session_storage_namespace_id_(session_storage_namespace_id), | 538 session_storage_namespace_id_(session_storage_namespace_id), |
| 537 handling_select_range_(false), | 539 handling_select_range_(false), |
| (...skipping 4809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5347 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( | 5349 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( |
| 5348 WebKit::WebSpeechInputListener* listener) { | 5350 WebKit::WebSpeechInputListener* listener) { |
| 5349 #if defined(ENABLE_INPUT_SPEECH) | 5351 #if defined(ENABLE_INPUT_SPEECH) |
| 5350 if (!input_tag_speech_dispatcher_) | 5352 if (!input_tag_speech_dispatcher_) |
| 5351 input_tag_speech_dispatcher_ = | 5353 input_tag_speech_dispatcher_ = |
| 5352 new InputTagSpeechDispatcher(this, listener); | 5354 new InputTagSpeechDispatcher(this, listener); |
| 5353 #endif | 5355 #endif |
| 5354 return input_tag_speech_dispatcher_; | 5356 return input_tag_speech_dispatcher_; |
| 5355 } | 5357 } |
| 5356 | 5358 |
| 5359 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() { |
| 5360 #if defined(ENABLE_INPUT_SPEECH) |
| 5361 if (!speech_recognition_dispatcher_) |
| 5362 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this); |
| 5363 #endif |
| 5364 return speech_recognition_dispatcher_; |
| 5365 } |
| 5366 |
| 5357 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { | 5367 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { |
| 5358 if (!device_orientation_dispatcher_) | 5368 if (!device_orientation_dispatcher_) |
| 5359 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); | 5369 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); |
| 5360 return device_orientation_dispatcher_; | 5370 return device_orientation_dispatcher_; |
| 5361 } | 5371 } |
| 5362 | 5372 |
| 5363 void RenderViewImpl::zoomLimitsChanged(double minimum_level, | 5373 void RenderViewImpl::zoomLimitsChanged(double minimum_level, |
| 5364 double maximum_level) { | 5374 double maximum_level) { |
| 5365 // For now, don't remember plugin zoom values. We don't want to mix them with | 5375 // For now, don't remember plugin zoom values. We don't want to mix them with |
| 5366 // normal web content (i.e. a fixed layout plugin would usually want them | 5376 // normal web content (i.e. a fixed layout plugin would usually want them |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5473 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5483 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5474 return !!RenderThreadImpl::current()->compositor_thread(); | 5484 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5475 } | 5485 } |
| 5476 | 5486 |
| 5477 void RenderViewImpl::OnJavaBridgeInit() { | 5487 void RenderViewImpl::OnJavaBridgeInit() { |
| 5478 DCHECK(!java_bridge_dispatcher_); | 5488 DCHECK(!java_bridge_dispatcher_); |
| 5479 #if defined(ENABLE_JAVA_BRIDGE) | 5489 #if defined(ENABLE_JAVA_BRIDGE) |
| 5480 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5490 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5481 #endif | 5491 #endif |
| 5482 } | 5492 } |
| OLD | NEW |