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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 #include "content/renderer/plugin_channel_host.h" | 77 #include "content/renderer/plugin_channel_host.h" |
78 #include "content/renderer/browser_plugin/browser_plugin_constants.h" | 78 #include "content/renderer/browser_plugin/browser_plugin_constants.h" |
79 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h" | 79 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h" |
80 #include "content/renderer/render_process.h" | 80 #include "content/renderer/render_process.h" |
81 #include "content/renderer/render_thread_impl.h" | 81 #include "content/renderer/render_thread_impl.h" |
82 #include "content/renderer/render_widget_fullscreen_pepper.h" | 82 #include "content/renderer/render_widget_fullscreen_pepper.h" |
83 #include "content/renderer/renderer_accessibility.h" | 83 #include "content/renderer/renderer_accessibility.h" |
84 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 84 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
85 #include "content/renderer/renderer_webcolorchooser_impl.h" | 85 #include "content/renderer/renderer_webcolorchooser_impl.h" |
86 #include "content/renderer/renderer_webstoragenamespace_impl.h" | 86 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
| 87 #include "content/renderer/speech_recognition_dispatcher.h" |
87 #include "content/renderer/text_input_client_observer.h" | 88 #include "content/renderer/text_input_client_observer.h" |
88 #include "content/renderer/v8_value_converter_impl.h" | 89 #include "content/renderer/v8_value_converter_impl.h" |
89 #include "content/renderer/web_intents_host.h" | 90 #include "content/renderer/web_intents_host.h" |
90 #include "content/renderer/web_ui_bindings.h" | 91 #include "content/renderer/web_ui_bindings.h" |
91 #include "content/renderer/webplugin_delegate_proxy.h" | 92 #include "content/renderer/webplugin_delegate_proxy.h" |
92 #include "content/renderer/websharedworker_proxy.h" | 93 #include "content/renderer/websharedworker_proxy.h" |
93 #include "media/base/filter_collection.h" | 94 #include "media/base/filter_collection.h" |
94 #include "media/base/media_switches.h" | 95 #include "media/base/media_switches.h" |
95 #include "media/base/message_loop_factory.h" | 96 #include "media/base/message_loop_factory.h" |
96 #include "media/filters/audio_renderer_impl.h" | 97 #include "media/filters/audio_renderer_impl.h" |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 cached_is_main_frame_pinned_to_left_(false), | 460 cached_is_main_frame_pinned_to_left_(false), |
460 cached_is_main_frame_pinned_to_right_(false), | 461 cached_is_main_frame_pinned_to_right_(false), |
461 cached_has_main_frame_horizontal_scrollbar_(false), | 462 cached_has_main_frame_horizontal_scrollbar_(false), |
462 cached_has_main_frame_vertical_scrollbar_(false), | 463 cached_has_main_frame_vertical_scrollbar_(false), |
463 context_has_swapbuffers_complete_callback_(false), | 464 context_has_swapbuffers_complete_callback_(false), |
464 queried_for_swapbuffers_complete_callback_(false), | 465 queried_for_swapbuffers_complete_callback_(false), |
465 context_is_web_graphics_context_3d_command_buffer_impl_(false), | 466 context_is_web_graphics_context_3d_command_buffer_impl_(false), |
466 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), | 467 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), |
467 geolocation_dispatcher_(NULL), | 468 geolocation_dispatcher_(NULL), |
468 input_tag_speech_dispatcher_(NULL), | 469 input_tag_speech_dispatcher_(NULL), |
| 470 speech_recognition_dispatcher_(NULL), |
469 device_orientation_dispatcher_(NULL), | 471 device_orientation_dispatcher_(NULL), |
470 media_stream_dispatcher_(NULL), | 472 media_stream_dispatcher_(NULL), |
471 media_stream_impl_(NULL), | 473 media_stream_impl_(NULL), |
472 p2p_socket_dispatcher_(NULL), | 474 p2p_socket_dispatcher_(NULL), |
473 devtools_agent_(NULL), | 475 devtools_agent_(NULL), |
474 renderer_accessibility_(NULL), | 476 renderer_accessibility_(NULL), |
475 mouse_lock_dispatcher_(NULL), | 477 mouse_lock_dispatcher_(NULL), |
476 session_storage_namespace_id_(session_storage_namespace_id), | 478 session_storage_namespace_id_(session_storage_namespace_id), |
477 handling_select_range_(false), | 479 handling_select_range_(false), |
478 #if defined(OS_WIN) | 480 #if defined(OS_WIN) |
(...skipping 4615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5094 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( | 5096 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( |
5095 WebKit::WebSpeechInputListener* listener) { | 5097 WebKit::WebSpeechInputListener* listener) { |
5096 #if defined(ENABLE_INPUT_SPEECH) | 5098 #if defined(ENABLE_INPUT_SPEECH) |
5097 if (!input_tag_speech_dispatcher_) | 5099 if (!input_tag_speech_dispatcher_) |
5098 input_tag_speech_dispatcher_ = | 5100 input_tag_speech_dispatcher_ = |
5099 new InputTagSpeechDispatcher(this, listener); | 5101 new InputTagSpeechDispatcher(this, listener); |
5100 #endif | 5102 #endif |
5101 return input_tag_speech_dispatcher_; | 5103 return input_tag_speech_dispatcher_; |
5102 } | 5104 } |
5103 | 5105 |
| 5106 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() { |
| 5107 if (!speech_recognition_dispatcher_) |
| 5108 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this); |
| 5109 return speech_recognition_dispatcher_; |
| 5110 } |
| 5111 |
5104 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { | 5112 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { |
5105 if (!device_orientation_dispatcher_) | 5113 if (!device_orientation_dispatcher_) |
5106 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); | 5114 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); |
5107 return device_orientation_dispatcher_; | 5115 return device_orientation_dispatcher_; |
5108 } | 5116 } |
5109 | 5117 |
5110 void RenderViewImpl::zoomLimitsChanged(double minimum_level, | 5118 void RenderViewImpl::zoomLimitsChanged(double minimum_level, |
5111 double maximum_level) { | 5119 double maximum_level) { |
5112 // For now, don't remember plugin zoom values. We don't want to mix them with | 5120 // For now, don't remember plugin zoom values. We don't want to mix them with |
5113 // normal web content (i.e. a fixed layout plugin would usually want them | 5121 // normal web content (i.e. a fixed layout plugin would usually want them |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5257 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5265 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5258 return !!RenderThreadImpl::current()->compositor_thread(); | 5266 return !!RenderThreadImpl::current()->compositor_thread(); |
5259 } | 5267 } |
5260 | 5268 |
5261 void RenderViewImpl::OnJavaBridgeInit() { | 5269 void RenderViewImpl::OnJavaBridgeInit() { |
5262 DCHECK(!java_bridge_dispatcher_.get()); | 5270 DCHECK(!java_bridge_dispatcher_.get()); |
5263 #if defined(ENABLE_JAVA_BRIDGE) | 5271 #if defined(ENABLE_JAVA_BRIDGE) |
5264 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 5272 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
5265 #endif | 5273 #endif |
5266 } | 5274 } |
OLD | NEW |