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

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: Fixed gyp rules for avoiding excluding TTS extensions 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 4808 matching lines...) Expand 10 before | Expand all | Expand 10 after
5346 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( 5348 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController(
5347 WebKit::WebSpeechInputListener* listener) { 5349 WebKit::WebSpeechInputListener* listener) {
5348 #if defined(ENABLE_INPUT_SPEECH) 5350 #if defined(ENABLE_INPUT_SPEECH)
5349 if (!input_tag_speech_dispatcher_) 5351 if (!input_tag_speech_dispatcher_)
5350 input_tag_speech_dispatcher_ = 5352 input_tag_speech_dispatcher_ =
5351 new InputTagSpeechDispatcher(this, listener); 5353 new InputTagSpeechDispatcher(this, listener);
5352 #endif 5354 #endif
5353 return input_tag_speech_dispatcher_; 5355 return input_tag_speech_dispatcher_;
5354 } 5356 }
5355 5357
5358 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() {
5359 #if defined(ENABLE_INPUT_SPEECH)
5360 if (!speech_recognition_dispatcher_)
5361 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this);
5362 #endif
5363 return speech_recognition_dispatcher_;
5364 }
5365
5356 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { 5366 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() {
5357 if (!device_orientation_dispatcher_) 5367 if (!device_orientation_dispatcher_)
5358 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); 5368 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this);
5359 return device_orientation_dispatcher_; 5369 return device_orientation_dispatcher_;
5360 } 5370 }
5361 5371
5362 void RenderViewImpl::zoomLimitsChanged(double minimum_level, 5372 void RenderViewImpl::zoomLimitsChanged(double minimum_level,
5363 double maximum_level) { 5373 double maximum_level) {
5364 // For now, don't remember plugin zoom values. We don't want to mix them with 5374 // For now, don't remember plugin zoom values. We don't want to mix them with
5365 // normal web content (i.e. a fixed layout plugin would usually want them 5375 // 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
5472 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5482 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5473 return !!RenderThreadImpl::current()->compositor_thread(); 5483 return !!RenderThreadImpl::current()->compositor_thread();
5474 } 5484 }
5475 5485
5476 void RenderViewImpl::OnJavaBridgeInit() { 5486 void RenderViewImpl::OnJavaBridgeInit() {
5477 DCHECK(!java_bridge_dispatcher_); 5487 DCHECK(!java_bridge_dispatcher_);
5478 #if defined(ENABLE_JAVA_BRIDGE) 5488 #if defined(ENABLE_JAVA_BRIDGE)
5479 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5489 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5480 #endif 5490 #endif
5481 } 5491 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698