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

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: Small fix (forgot break in switch) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #include "content/renderer/p2p/socket_dispatcher.h" 78 #include "content/renderer/p2p/socket_dispatcher.h"
79 #include "content/renderer/plugin_channel_host.h" 79 #include "content/renderer/plugin_channel_host.h"
80 #include "content/renderer/browser_plugin/browser_plugin_constants.h" 80 #include "content/renderer/browser_plugin/browser_plugin_constants.h"
81 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h" 81 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h"
82 #include "content/renderer/render_process.h" 82 #include "content/renderer/render_process.h"
83 #include "content/renderer/render_thread_impl.h" 83 #include "content/renderer/render_thread_impl.h"
84 #include "content/renderer/render_widget_fullscreen_pepper.h" 84 #include "content/renderer/render_widget_fullscreen_pepper.h"
85 #include "content/renderer/renderer_accessibility.h" 85 #include "content/renderer/renderer_accessibility.h"
86 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 86 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
87 #include "content/renderer/renderer_webcolorchooser_impl.h" 87 #include "content/renderer/renderer_webcolorchooser_impl.h"
88 #include "content/renderer/speech_recognition_dispatcher.h"
88 #include "content/renderer/text_input_client_observer.h" 89 #include "content/renderer/text_input_client_observer.h"
89 #include "content/renderer/v8_value_converter_impl.h" 90 #include "content/renderer/v8_value_converter_impl.h"
90 #include "content/renderer/web_intents_host.h" 91 #include "content/renderer/web_intents_host.h"
91 #include "content/renderer/web_ui_bindings.h" 92 #include "content/renderer/web_ui_bindings.h"
92 #include "content/renderer/webplugin_delegate_proxy.h" 93 #include "content/renderer/webplugin_delegate_proxy.h"
93 #include "content/renderer/websharedworker_proxy.h" 94 #include "content/renderer/websharedworker_proxy.h"
94 #include "media/base/filter_collection.h" 95 #include "media/base/filter_collection.h"
95 #include "media/base/media_switches.h" 96 #include "media/base/media_switches.h"
96 #include "media/base/message_loop_factory.h" 97 #include "media/base/message_loop_factory.h"
97 #include "media/filters/audio_renderer_impl.h" 98 #include "media/filters/audio_renderer_impl.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 cached_is_main_frame_pinned_to_left_(false), 475 cached_is_main_frame_pinned_to_left_(false),
475 cached_is_main_frame_pinned_to_right_(false), 476 cached_is_main_frame_pinned_to_right_(false),
476 cached_has_main_frame_horizontal_scrollbar_(false), 477 cached_has_main_frame_horizontal_scrollbar_(false),
477 cached_has_main_frame_vertical_scrollbar_(false), 478 cached_has_main_frame_vertical_scrollbar_(false),
478 context_has_swapbuffers_complete_callback_(false), 479 context_has_swapbuffers_complete_callback_(false),
479 queried_for_swapbuffers_complete_callback_(false), 480 queried_for_swapbuffers_complete_callback_(false),
480 context_is_web_graphics_context_3d_command_buffer_impl_(false), 481 context_is_web_graphics_context_3d_command_buffer_impl_(false),
481 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), 482 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)),
482 geolocation_dispatcher_(NULL), 483 geolocation_dispatcher_(NULL),
483 input_tag_speech_dispatcher_(NULL), 484 input_tag_speech_dispatcher_(NULL),
485 speech_recognition_dispatcher_(NULL),
484 device_orientation_dispatcher_(NULL), 486 device_orientation_dispatcher_(NULL),
485 media_stream_dispatcher_(NULL), 487 media_stream_dispatcher_(NULL),
486 media_stream_impl_(NULL), 488 media_stream_impl_(NULL),
487 p2p_socket_dispatcher_(NULL), 489 p2p_socket_dispatcher_(NULL),
488 devtools_agent_(NULL), 490 devtools_agent_(NULL),
489 renderer_accessibility_(NULL), 491 renderer_accessibility_(NULL),
490 java_bridge_dispatcher_(NULL), 492 java_bridge_dispatcher_(NULL),
491 mouse_lock_dispatcher_(NULL), 493 mouse_lock_dispatcher_(NULL),
492 session_storage_namespace_id_(session_storage_namespace_id), 494 session_storage_namespace_id_(session_storage_namespace_id),
493 handling_select_range_(false), 495 handling_select_range_(false),
(...skipping 4735 matching lines...) Expand 10 before | Expand all | Expand 10 after
5229 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( 5231 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController(
5230 WebKit::WebSpeechInputListener* listener) { 5232 WebKit::WebSpeechInputListener* listener) {
5231 #if defined(ENABLE_INPUT_SPEECH) 5233 #if defined(ENABLE_INPUT_SPEECH)
5232 if (!input_tag_speech_dispatcher_) 5234 if (!input_tag_speech_dispatcher_)
5233 input_tag_speech_dispatcher_ = 5235 input_tag_speech_dispatcher_ =
5234 new InputTagSpeechDispatcher(this, listener); 5236 new InputTagSpeechDispatcher(this, listener);
5235 #endif 5237 #endif
5236 return input_tag_speech_dispatcher_; 5238 return input_tag_speech_dispatcher_;
5237 } 5239 }
5238 5240
5241 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() {
5242 #if defined(ENABLE_INPUT_SPEECH)
5243 if (!speech_recognition_dispatcher_)
5244 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this);
5245 #endif
5246 return speech_recognition_dispatcher_;
5247 }
5248
5239 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { 5249 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() {
5240 if (!device_orientation_dispatcher_) 5250 if (!device_orientation_dispatcher_)
5241 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); 5251 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this);
5242 return device_orientation_dispatcher_; 5252 return device_orientation_dispatcher_;
5243 } 5253 }
5244 5254
5245 void RenderViewImpl::zoomLimitsChanged(double minimum_level, 5255 void RenderViewImpl::zoomLimitsChanged(double minimum_level,
5246 double maximum_level) { 5256 double maximum_level) {
5247 // For now, don't remember plugin zoom values. We don't want to mix them with 5257 // For now, don't remember plugin zoom values. We don't want to mix them with
5248 // normal web content (i.e. a fixed layout plugin would usually want them 5258 // 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
5390 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5400 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5391 return !!RenderThreadImpl::current()->compositor_thread(); 5401 return !!RenderThreadImpl::current()->compositor_thread();
5392 } 5402 }
5393 5403
5394 void RenderViewImpl::OnJavaBridgeInit() { 5404 void RenderViewImpl::OnJavaBridgeInit() {
5395 DCHECK(!java_bridge_dispatcher_); 5405 DCHECK(!java_bridge_dispatcher_);
5396 #if defined(ENABLE_JAVA_BRIDGE) 5406 #if defined(ENABLE_JAVA_BRIDGE)
5397 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5407 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5398 #endif 5408 #endif
5399 } 5409 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698