| 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 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 #include "content/renderer/render_frame_impl.h" | 107 #include "content/renderer/render_frame_impl.h" |
| 108 #include "content/renderer/render_process.h" | 108 #include "content/renderer/render_process.h" |
| 109 #include "content/renderer/render_thread_impl.h" | 109 #include "content/renderer/render_thread_impl.h" |
| 110 #include "content/renderer/render_view_impl_params.h" | 110 #include "content/renderer/render_view_impl_params.h" |
| 111 #include "content/renderer/render_view_mouse_lock_dispatcher.h" | 111 #include "content/renderer/render_view_mouse_lock_dispatcher.h" |
| 112 #include "content/renderer/render_widget_fullscreen_pepper.h" | 112 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 113 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 113 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 114 #include "content/renderer/renderer_webcolorchooser_impl.h" | 114 #include "content/renderer/renderer_webcolorchooser_impl.h" |
| 115 #include "content/renderer/resizing_mode_selector.h" | 115 #include "content/renderer/resizing_mode_selector.h" |
| 116 #include "content/renderer/savable_resources.h" | 116 #include "content/renderer/savable_resources.h" |
| 117 #include "content/renderer/screen_orientation_dispatcher.h" |
| 117 #include "content/renderer/skia_benchmarking_extension.h" | 118 #include "content/renderer/skia_benchmarking_extension.h" |
| 118 #include "content/renderer/speech_recognition_dispatcher.h" | 119 #include "content/renderer/speech_recognition_dispatcher.h" |
| 119 #include "content/renderer/stats_collection_controller.h" | 120 #include "content/renderer/stats_collection_controller.h" |
| 120 #include "content/renderer/stats_collection_observer.h" | 121 #include "content/renderer/stats_collection_observer.h" |
| 121 #include "content/renderer/text_input_client_observer.h" | 122 #include "content/renderer/text_input_client_observer.h" |
| 122 #include "content/renderer/v8_value_converter_impl.h" | 123 #include "content/renderer/v8_value_converter_impl.h" |
| 123 #include "content/renderer/web_ui_extension.h" | 124 #include "content/renderer/web_ui_extension.h" |
| 124 #include "content/renderer/web_ui_extension_data.h" | 125 #include "content/renderer/web_ui_extension_data.h" |
| 125 #include "content/renderer/websharedworker_proxy.h" | 126 #include "content/renderer/websharedworker_proxy.h" |
| 126 #include "media/audio/audio_output_device.h" | 127 #include "media/audio/audio_output_device.h" |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 820 speech_recognition_dispatcher_(NULL), | 821 speech_recognition_dispatcher_(NULL), |
| 821 media_stream_dispatcher_(NULL), | 822 media_stream_dispatcher_(NULL), |
| 822 browser_plugin_manager_(NULL), | 823 browser_plugin_manager_(NULL), |
| 823 media_stream_client_(NULL), | 824 media_stream_client_(NULL), |
| 824 web_user_media_client_(NULL), | 825 web_user_media_client_(NULL), |
| 825 midi_dispatcher_(NULL), | 826 midi_dispatcher_(NULL), |
| 826 devtools_agent_(NULL), | 827 devtools_agent_(NULL), |
| 827 accessibility_mode_(AccessibilityModeOff), | 828 accessibility_mode_(AccessibilityModeOff), |
| 828 renderer_accessibility_(NULL), | 829 renderer_accessibility_(NULL), |
| 829 mouse_lock_dispatcher_(NULL), | 830 mouse_lock_dispatcher_(NULL), |
| 831 screen_orientation_dispatcher_(NULL), |
| 830 #if defined(OS_ANDROID) | 832 #if defined(OS_ANDROID) |
| 831 body_background_color_(SK_ColorWHITE), | 833 body_background_color_(SK_ColorWHITE), |
| 832 expected_content_intent_id_(0), | 834 expected_content_intent_id_(0), |
| 833 media_player_manager_(NULL), | 835 media_player_manager_(NULL), |
| 834 #endif | 836 #endif |
| 835 #if defined(OS_WIN) | 837 #if defined(OS_WIN) |
| 836 focused_plugin_id_(-1), | 838 focused_plugin_id_(-1), |
| 837 #endif | 839 #endif |
| 838 #if defined(ENABLE_PLUGINS) | 840 #if defined(ENABLE_PLUGINS) |
| 839 focused_pepper_plugin_(NULL), | 841 focused_pepper_plugin_(NULL), |
| (...skipping 4805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5645 } | 5647 } |
| 5646 return true; | 5648 return true; |
| 5647 } | 5649 } |
| 5648 | 5650 |
| 5649 blink::WebGeolocationClient* RenderViewImpl::geolocationClient() { | 5651 blink::WebGeolocationClient* RenderViewImpl::geolocationClient() { |
| 5650 if (!geolocation_dispatcher_) | 5652 if (!geolocation_dispatcher_) |
| 5651 geolocation_dispatcher_ = new GeolocationDispatcher(this); | 5653 geolocation_dispatcher_ = new GeolocationDispatcher(this); |
| 5652 return geolocation_dispatcher_; | 5654 return geolocation_dispatcher_; |
| 5653 } | 5655 } |
| 5654 | 5656 |
| 5657 blink::WebScreenOrientationClient* RenderViewImpl::screenOrientationClient() { |
| 5658 |
| 5659 if (!screen_orientation_dispatcher_) |
| 5660 screen_orientation_dispatcher_ = new ScreenOrientationDispatcher(this); |
| 5661 |
| 5662 return screen_orientation_dispatcher_; |
| 5663 } |
| 5664 |
| 5655 blink::WebSpeechInputController* RenderViewImpl::speechInputController( | 5665 blink::WebSpeechInputController* RenderViewImpl::speechInputController( |
| 5656 blink::WebSpeechInputListener* listener) { | 5666 blink::WebSpeechInputListener* listener) { |
| 5657 #if defined(ENABLE_INPUT_SPEECH) | 5667 #if defined(ENABLE_INPUT_SPEECH) |
| 5658 if (!input_tag_speech_dispatcher_) | 5668 if (!input_tag_speech_dispatcher_) |
| 5659 input_tag_speech_dispatcher_ = | 5669 input_tag_speech_dispatcher_ = |
| 5660 new InputTagSpeechDispatcher(this, listener); | 5670 new InputTagSpeechDispatcher(this, listener); |
| 5661 #endif | 5671 #endif |
| 5662 return input_tag_speech_dispatcher_; | 5672 return input_tag_speech_dispatcher_; |
| 5663 } | 5673 } |
| 5664 | 5674 |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6098 for (size_t i = 0; i < icon_urls.size(); i++) { | 6108 for (size_t i = 0; i < icon_urls.size(); i++) { |
| 6099 WebURL url = icon_urls[i].iconURL(); | 6109 WebURL url = icon_urls[i].iconURL(); |
| 6100 if (!url.isEmpty()) | 6110 if (!url.isEmpty()) |
| 6101 urls.push_back(FaviconURL(url, | 6111 urls.push_back(FaviconURL(url, |
| 6102 ToFaviconType(icon_urls[i].iconType()))); | 6112 ToFaviconType(icon_urls[i].iconType()))); |
| 6103 } | 6113 } |
| 6104 SendUpdateFaviconURL(urls); | 6114 SendUpdateFaviconURL(urls); |
| 6105 } | 6115 } |
| 6106 | 6116 |
| 6107 } // namespace content | 6117 } // namespace content |
| OLD | NEW |