| 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 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" | 96 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams.
h" |
| 97 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" | 97 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback
s.h" |
| 98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 99 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" | 99 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement
.h" |
| 100 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 100 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" | 102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" |
| 103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" | 103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" |
| 104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" | 105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" |
| 106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentRequest.h" |
| 106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo.
h" | 107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo.
h" |
| 107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" | 109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" |
| 109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" | 110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" |
| 110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
| 111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" | 112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" |
| 112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" | 114 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" |
| 114 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" | 115 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" |
| 115 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" | 116 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" |
| (...skipping 3041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3157 title = webview()->mainFrame()->document().title(); | 3158 title = webview()->mainFrame()->document().title(); |
| 3158 | 3159 |
| 3159 Send(new IntentsHostMsg_RegisterIntentService(routing_id_, | 3160 Send(new IntentsHostMsg_RegisterIntentService(routing_id_, |
| 3160 service.action(), | 3161 service.action(), |
| 3161 service.type(), | 3162 service.type(), |
| 3162 service.url().spec().utf16(), | 3163 service.url().spec().utf16(), |
| 3163 title, | 3164 title, |
| 3164 service.disposition())); | 3165 service.disposition())); |
| 3165 } | 3166 } |
| 3166 | 3167 |
| 3167 void RenderViewImpl::dispatchIntent(WebKit::WebFrame* frame, | 3168 void RenderViewImpl::dispatchIntent( |
| 3168 const WebKit::WebIntent& intent) { | 3169 WebKit::WebFrame* frame, const WebKit::WebIntentRequest& intentRequest) { |
| 3169 webkit_glue::WebIntentData intent_data(intent); | 3170 WebKit::WebIntentRequest request(intentRequest); |
| 3171 webkit_glue::WebIntentData intent_data(request.intent()); |
| 3172 int id = intents_host_->RegisterWebIntent(request); |
| 3170 Send(new IntentsHostMsg_WebIntentDispatch( | 3173 Send(new IntentsHostMsg_WebIntentDispatch( |
| 3171 routing_id_, intent_data, intent.identifier())); | 3174 routing_id_, intent_data, id)); |
| 3172 } | 3175 } |
| 3173 | 3176 |
| 3174 // WebKit::WebPageSerializerClient implementation ------------------------------ | 3177 // WebKit::WebPageSerializerClient implementation ------------------------------ |
| 3175 | 3178 |
| 3176 void RenderViewImpl::didSerializeDataForFrame( | 3179 void RenderViewImpl::didSerializeDataForFrame( |
| 3177 const WebURL& frame_url, | 3180 const WebURL& frame_url, |
| 3178 const WebCString& data, | 3181 const WebCString& data, |
| 3179 WebPageSerializerClient::PageSerializationStatus status) { | 3182 WebPageSerializerClient::PageSerializationStatus status) { |
| 3180 Send(new ViewHostMsg_SendSerializedHtmlData( | 3183 Send(new ViewHostMsg_SendSerializedHtmlData( |
| 3181 routing_id(), | 3184 routing_id(), |
| (...skipping 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4864 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 4867 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 4865 return !!RenderThreadImpl::current()->compositor_thread(); | 4868 return !!RenderThreadImpl::current()->compositor_thread(); |
| 4866 } | 4869 } |
| 4867 | 4870 |
| 4868 void RenderViewImpl::OnJavaBridgeInit() { | 4871 void RenderViewImpl::OnJavaBridgeInit() { |
| 4869 DCHECK(!java_bridge_dispatcher_.get()); | 4872 DCHECK(!java_bridge_dispatcher_.get()); |
| 4870 #if defined(ENABLE_JAVA_BRIDGE) | 4873 #if defined(ENABLE_JAVA_BRIDGE) |
| 4871 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); | 4874 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); |
| 4872 #endif | 4875 #endif |
| 4873 } | 4876 } |
| OLD | NEW |