Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10273006: Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continu… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fixed + Satish nits. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #include "content/renderer/p2p/socket_dispatcher.h" 79 #include "content/renderer/p2p/socket_dispatcher.h"
80 #include "content/renderer/plugin_channel_host.h" 80 #include "content/renderer/plugin_channel_host.h"
81 #include "content/renderer/browser_plugin/browser_plugin_constants.h" 81 #include "content/renderer/browser_plugin/browser_plugin_constants.h"
82 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h" 82 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h"
83 #include "content/renderer/render_process.h" 83 #include "content/renderer/render_process.h"
84 #include "content/renderer/render_thread_impl.h" 84 #include "content/renderer/render_thread_impl.h"
85 #include "content/renderer/render_widget_fullscreen_pepper.h" 85 #include "content/renderer/render_widget_fullscreen_pepper.h"
86 #include "content/renderer/renderer_accessibility.h" 86 #include "content/renderer/renderer_accessibility.h"
87 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 87 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
88 #include "content/renderer/renderer_webcolorchooser_impl.h" 88 #include "content/renderer/renderer_webcolorchooser_impl.h"
89 #include "content/renderer/speech_recognition_dispatcher.h"
89 #include "content/renderer/text_input_client_observer.h" 90 #include "content/renderer/text_input_client_observer.h"
90 #include "content/renderer/v8_value_converter_impl.h" 91 #include "content/renderer/v8_value_converter_impl.h"
91 #include "content/renderer/web_intents_host.h" 92 #include "content/renderer/web_intents_host.h"
92 #include "content/renderer/web_ui_bindings.h" 93 #include "content/renderer/web_ui_bindings.h"
93 #include "content/renderer/webplugin_delegate_proxy.h" 94 #include "content/renderer/webplugin_delegate_proxy.h"
94 #include "content/renderer/websharedworker_proxy.h" 95 #include "content/renderer/websharedworker_proxy.h"
95 #include "media/base/filter_collection.h" 96 #include "media/base/filter_collection.h"
96 #include "media/base/media_switches.h" 97 #include "media/base/media_switches.h"
97 #include "media/base/message_loop_factory.h" 98 #include "media/base/message_loop_factory.h"
98 #include "media/filters/audio_renderer_impl.h" 99 #include "media/filters/audio_renderer_impl.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 cached_is_main_frame_pinned_to_left_(false), 477 cached_is_main_frame_pinned_to_left_(false),
477 cached_is_main_frame_pinned_to_right_(false), 478 cached_is_main_frame_pinned_to_right_(false),
478 cached_has_main_frame_horizontal_scrollbar_(false), 479 cached_has_main_frame_horizontal_scrollbar_(false),
479 cached_has_main_frame_vertical_scrollbar_(false), 480 cached_has_main_frame_vertical_scrollbar_(false),
480 context_has_swapbuffers_complete_callback_(false), 481 context_has_swapbuffers_complete_callback_(false),
481 queried_for_swapbuffers_complete_callback_(false), 482 queried_for_swapbuffers_complete_callback_(false),
482 context_is_web_graphics_context_3d_command_buffer_impl_(false), 483 context_is_web_graphics_context_3d_command_buffer_impl_(false),
483 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), 484 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)),
484 geolocation_dispatcher_(NULL), 485 geolocation_dispatcher_(NULL),
485 input_tag_speech_dispatcher_(NULL), 486 input_tag_speech_dispatcher_(NULL),
487 speech_recognition_dispatcher_(NULL),
486 device_orientation_dispatcher_(NULL), 488 device_orientation_dispatcher_(NULL),
487 media_stream_dispatcher_(NULL), 489 media_stream_dispatcher_(NULL),
488 media_stream_impl_(NULL), 490 media_stream_impl_(NULL),
489 p2p_socket_dispatcher_(NULL), 491 p2p_socket_dispatcher_(NULL),
490 devtools_agent_(NULL), 492 devtools_agent_(NULL),
491 renderer_accessibility_(NULL), 493 renderer_accessibility_(NULL),
492 java_bridge_dispatcher_(NULL), 494 java_bridge_dispatcher_(NULL),
493 mouse_lock_dispatcher_(NULL), 495 mouse_lock_dispatcher_(NULL),
494 session_storage_namespace_id_(session_storage_namespace_id), 496 session_storage_namespace_id_(session_storage_namespace_id),
495 handling_select_range_(false), 497 handling_select_range_(false),
(...skipping 4768 matching lines...) Expand 10 before | Expand all | Expand 10 after
5264 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( 5266 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController(
5265 WebKit::WebSpeechInputListener* listener) { 5267 WebKit::WebSpeechInputListener* listener) {
5266 #if defined(ENABLE_INPUT_SPEECH) 5268 #if defined(ENABLE_INPUT_SPEECH)
5267 if (!input_tag_speech_dispatcher_) 5269 if (!input_tag_speech_dispatcher_)
5268 input_tag_speech_dispatcher_ = 5270 input_tag_speech_dispatcher_ =
5269 new InputTagSpeechDispatcher(this, listener); 5271 new InputTagSpeechDispatcher(this, listener);
5270 #endif 5272 #endif
5271 return input_tag_speech_dispatcher_; 5273 return input_tag_speech_dispatcher_;
5272 } 5274 }
5273 5275
5276 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() {
5277 #if defined(ENABLE_INPUT_SPEECH)
5278 if (!speech_recognition_dispatcher_)
5279 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this);
5280 #endif
5281 return speech_recognition_dispatcher_;
5282 }
5283
5274 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { 5284 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() {
5275 if (!device_orientation_dispatcher_) 5285 if (!device_orientation_dispatcher_)
5276 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); 5286 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this);
5277 return device_orientation_dispatcher_; 5287 return device_orientation_dispatcher_;
5278 } 5288 }
5279 5289
5280 void RenderViewImpl::zoomLimitsChanged(double minimum_level, 5290 void RenderViewImpl::zoomLimitsChanged(double minimum_level,
5281 double maximum_level) { 5291 double maximum_level) {
5282 // For now, don't remember plugin zoom values. We don't want to mix them with 5292 // For now, don't remember plugin zoom values. We don't want to mix them with
5283 // normal web content (i.e. a fixed layout plugin would usually want them 5293 // normal web content (i.e. a fixed layout plugin would usually want them
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
5425 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5435 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5426 return !!RenderThreadImpl::current()->compositor_thread(); 5436 return !!RenderThreadImpl::current()->compositor_thread();
5427 } 5437 }
5428 5438
5429 void RenderViewImpl::OnJavaBridgeInit() { 5439 void RenderViewImpl::OnJavaBridgeInit() {
5430 DCHECK(!java_bridge_dispatcher_); 5440 DCHECK(!java_bridge_dispatcher_);
5431 #if defined(ENABLE_JAVA_BRIDGE) 5441 #if defined(ENABLE_JAVA_BRIDGE)
5432 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5442 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5433 #endif 5443 #endif
5434 } 5444 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698