| 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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "content/renderer/notification_provider.h" | 90 #include "content/renderer/notification_provider.h" |
| 91 #include "content/renderer/plugin_channel_host.h" | 91 #include "content/renderer/plugin_channel_host.h" |
| 92 #include "content/renderer/render_process.h" | 92 #include "content/renderer/render_process.h" |
| 93 #include "content/renderer/render_thread_impl.h" | 93 #include "content/renderer/render_thread_impl.h" |
| 94 #include "content/renderer/render_view_impl_params.h" | 94 #include "content/renderer/render_view_impl_params.h" |
| 95 #include "content/renderer/render_view_mouse_lock_dispatcher.h" | 95 #include "content/renderer/render_view_mouse_lock_dispatcher.h" |
| 96 #include "content/renderer/render_widget_fullscreen_pepper.h" | 96 #include "content/renderer/render_widget_fullscreen_pepper.h" |
| 97 #include "content/renderer/renderer_accessibility.h" | 97 #include "content/renderer/renderer_accessibility.h" |
| 98 #include "content/renderer/renderer_accessibility_complete.h" | 98 #include "content/renderer/renderer_accessibility_complete.h" |
| 99 #include "content/renderer/renderer_accessibility_focus_only.h" | 99 #include "content/renderer/renderer_accessibility_focus_only.h" |
| 100 #include "content/renderer/renderer_date_time_picker_impl.h" |
| 100 #include "content/renderer/renderer_webapplicationcachehost_impl.h" | 101 #include "content/renderer/renderer_webapplicationcachehost_impl.h" |
| 101 #include "content/renderer/renderer_webcolorchooser_impl.h" | 102 #include "content/renderer/renderer_webcolorchooser_impl.h" |
| 102 #include "content/renderer/speech_recognition_dispatcher.h" | 103 #include "content/renderer/speech_recognition_dispatcher.h" |
| 103 #include "content/renderer/text_input_client_observer.h" | 104 #include "content/renderer/text_input_client_observer.h" |
| 104 #include "content/renderer/v8_value_converter_impl.h" | 105 #include "content/renderer/v8_value_converter_impl.h" |
| 105 #include "content/renderer/web_intents_host.h" | 106 #include "content/renderer/web_intents_host.h" |
| 106 #include "content/renderer/web_ui_extension.h" | 107 #include "content/renderer/web_ui_extension.h" |
| 107 #include "content/renderer/web_ui_extension_data.h" | 108 #include "content/renderer/web_ui_extension_data.h" |
| 108 #include "content/renderer/webplugin_delegate_proxy.h" | 109 #include "content/renderer/webplugin_delegate_proxy.h" |
| 109 #include "content/renderer/websharedworker_proxy.h" | 110 #include "content/renderer/websharedworker_proxy.h" |
| 110 #include "media/base/filter_collection.h" | 111 #include "media/base/filter_collection.h" |
| 111 #include "media/base/media_switches.h" | 112 #include "media/base/media_switches.h" |
| 112 #include "media/base/message_loop_factory.h" | 113 #include "media/base/message_loop_factory.h" |
| 113 #include "media/filters/audio_renderer_impl.h" | 114 #include "media/filters/audio_renderer_impl.h" |
| 114 #include "media/filters/gpu_video_decoder.h" | 115 #include "media/filters/gpu_video_decoder.h" |
| 115 #include "net/base/data_url.h" | 116 #include "net/base/data_url.h" |
| 116 #include "net/base/escape.h" | 117 #include "net/base/escape.h" |
| 117 #include "net/base/net_errors.h" | 118 #include "net/base/net_errors.h" |
| 118 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 119 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 119 #include "net/http/http_util.h" | 120 #include "net/http/http_util.h" |
| 120 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutput
Surface.h" | 121 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutput
Surface.h" |
| 121 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" | 122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityObjec
t.h" |
| 122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" | 123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" |
| 123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMEvent.h" | 124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMEvent.h" |
| 124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" | 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDOMMessageEvent.h" |
| 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" | 126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDataSource.h" |
| 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserCom
pletion.h" |
| 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDateTimeChooserPar
ams.h" |
| 126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
| 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
| 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
| 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
| 132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 136 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" | 137 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHelperPlugin.h" |
| 135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 138 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
| (...skipping 6139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6275 size_t request_id) { | 6278 size_t request_id) { |
| 6276 if (request_id != expected_content_intent_id_) | 6279 if (request_id != expected_content_intent_id_) |
| 6277 return; | 6280 return; |
| 6278 | 6281 |
| 6279 // Remove the content highlighting if any. | 6282 // Remove the content highlighting if any. |
| 6280 scheduleComposite(); | 6283 scheduleComposite(); |
| 6281 | 6284 |
| 6282 if (!intent.is_empty()) | 6285 if (!intent.is_empty()) |
| 6283 Send(new ViewHostMsg_StartContentIntent(routing_id_, intent)); | 6286 Send(new ViewHostMsg_StartContentIntent(routing_id_, intent)); |
| 6284 } | 6287 } |
| 6288 |
| 6289 bool RenderViewImpl::openDateTimeChooser( |
| 6290 const WebKit::WebDateTimeChooserParams& params, |
| 6291 WebKit::WebDateTimeChooserCompletion* completion) { |
| 6292 date_time_picker_client_.reset( |
| 6293 new RendererDateTimePickerImpl(this, params, completion)); |
| 6294 return date_time_picker_client_->Open(); |
| 6295 } |
| 6296 |
| 6285 #endif | 6297 #endif |
| 6286 | 6298 |
| 6287 void RenderViewImpl::OnAsyncFileOpened( | 6299 void RenderViewImpl::OnAsyncFileOpened( |
| 6288 base::PlatformFileError error_code, | 6300 base::PlatformFileError error_code, |
| 6289 IPC::PlatformFileForTransit file_for_transit, | 6301 IPC::PlatformFileForTransit file_for_transit, |
| 6290 int message_id) { | 6302 int message_id) { |
| 6291 pepper_delegate_.OnAsyncFileOpened( | 6303 pepper_delegate_.OnAsyncFileOpened( |
| 6292 error_code, | 6304 error_code, |
| 6293 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), | 6305 IPC::PlatformFileForTransitToPlatformFile(file_for_transit), |
| 6294 message_id); | 6306 message_id); |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6438 } | 6450 } |
| 6439 #endif | 6451 #endif |
| 6440 | 6452 |
| 6441 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6453 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6442 TransportDIB::Handle dib_handle) { | 6454 TransportDIB::Handle dib_handle) { |
| 6443 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6455 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6444 RenderProcess::current()->ReleaseTransportDIB(dib); | 6456 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6445 } | 6457 } |
| 6446 | 6458 |
| 6447 } // namespace content | 6459 } // namespace content |
| OLD | NEW |