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

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 according to Hans review. 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 cached_is_main_frame_pinned_to_left_(false), 464 cached_is_main_frame_pinned_to_left_(false),
464 cached_is_main_frame_pinned_to_right_(false), 465 cached_is_main_frame_pinned_to_right_(false),
465 cached_has_main_frame_horizontal_scrollbar_(false), 466 cached_has_main_frame_horizontal_scrollbar_(false),
466 cached_has_main_frame_vertical_scrollbar_(false), 467 cached_has_main_frame_vertical_scrollbar_(false),
467 context_has_swapbuffers_complete_callback_(false), 468 context_has_swapbuffers_complete_callback_(false),
468 queried_for_swapbuffers_complete_callback_(false), 469 queried_for_swapbuffers_complete_callback_(false),
469 context_is_web_graphics_context_3d_command_buffer_impl_(false), 470 context_is_web_graphics_context_3d_command_buffer_impl_(false),
470 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), 471 ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)),
471 geolocation_dispatcher_(NULL), 472 geolocation_dispatcher_(NULL),
472 input_tag_speech_dispatcher_(NULL), 473 input_tag_speech_dispatcher_(NULL),
474 speech_recognition_dispatcher_(NULL),
473 device_orientation_dispatcher_(NULL), 475 device_orientation_dispatcher_(NULL),
474 media_stream_dispatcher_(NULL), 476 media_stream_dispatcher_(NULL),
475 media_stream_impl_(NULL), 477 media_stream_impl_(NULL),
476 p2p_socket_dispatcher_(NULL), 478 p2p_socket_dispatcher_(NULL),
477 devtools_agent_(NULL), 479 devtools_agent_(NULL),
478 renderer_accessibility_(NULL), 480 renderer_accessibility_(NULL),
479 mouse_lock_dispatcher_(NULL), 481 mouse_lock_dispatcher_(NULL),
480 session_storage_namespace_id_(session_storage_namespace_id), 482 session_storage_namespace_id_(session_storage_namespace_id),
481 handling_select_range_(false), 483 handling_select_range_(false),
482 #if defined(OS_WIN) 484 #if defined(OS_WIN)
(...skipping 4676 matching lines...) Expand 10 before | Expand all | Expand 10 after
5159 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController( 5161 WebKit::WebSpeechInputController* RenderViewImpl::speechInputController(
5160 WebKit::WebSpeechInputListener* listener) { 5162 WebKit::WebSpeechInputListener* listener) {
5161 #if defined(ENABLE_INPUT_SPEECH) 5163 #if defined(ENABLE_INPUT_SPEECH)
5162 if (!input_tag_speech_dispatcher_) 5164 if (!input_tag_speech_dispatcher_)
5163 input_tag_speech_dispatcher_ = 5165 input_tag_speech_dispatcher_ =
5164 new InputTagSpeechDispatcher(this, listener); 5166 new InputTagSpeechDispatcher(this, listener);
5165 #endif 5167 #endif
5166 return input_tag_speech_dispatcher_; 5168 return input_tag_speech_dispatcher_;
5167 } 5169 }
5168 5170
5171 WebKit::WebSpeechRecognizer* RenderViewImpl::speechRecognizer() {
5172 if (!speech_recognition_dispatcher_)
5173 speech_recognition_dispatcher_ = new SpeechRecognitionDispatcher(this);
5174 return speech_recognition_dispatcher_;
5175 }
5176
5169 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() { 5177 WebKit::WebDeviceOrientationClient* RenderViewImpl::deviceOrientationClient() {
5170 if (!device_orientation_dispatcher_) 5178 if (!device_orientation_dispatcher_)
5171 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this); 5179 device_orientation_dispatcher_ = new DeviceOrientationDispatcher(this);
5172 return device_orientation_dispatcher_; 5180 return device_orientation_dispatcher_;
5173 } 5181 }
5174 5182
5175 void RenderViewImpl::zoomLimitsChanged(double minimum_level, 5183 void RenderViewImpl::zoomLimitsChanged(double minimum_level,
5176 double maximum_level) { 5184 double maximum_level) {
5177 // For now, don't remember plugin zoom values. We don't want to mix them with 5185 // For now, don't remember plugin zoom values. We don't want to mix them with
5178 // normal web content (i.e. a fixed layout plugin would usually want them 5186 // 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
5320 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5328 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5321 return !!RenderThreadImpl::current()->compositor_thread(); 5329 return !!RenderThreadImpl::current()->compositor_thread();
5322 } 5330 }
5323 5331
5324 void RenderViewImpl::OnJavaBridgeInit() { 5332 void RenderViewImpl::OnJavaBridgeInit() {
5325 DCHECK(!java_bridge_dispatcher_.get()); 5333 DCHECK(!java_bridge_dispatcher_.get());
5326 #if defined(ENABLE_JAVA_BRIDGE) 5334 #if defined(ENABLE_JAVA_BRIDGE)
5327 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5335 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5328 #endif 5336 #endif
5329 } 5337 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698