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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 9186021: Update chromium code to use WebIntentRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 8 years, 11 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
3153 title = webview()->mainFrame()->document().title(); 3154 title = webview()->mainFrame()->document().title();
3154 3155
3155 Send(new IntentsHostMsg_RegisterIntentService(routing_id_, 3156 Send(new IntentsHostMsg_RegisterIntentService(routing_id_,
3156 service.action(), 3157 service.action(),
3157 service.type(), 3158 service.type(),
3158 service.url().spec().utf16(), 3159 service.url().spec().utf16(),
3159 title, 3160 title,
3160 service.disposition())); 3161 service.disposition()));
3161 } 3162 }
3162 3163
3163 void RenderViewImpl::dispatchIntent(WebKit::WebFrame* frame, 3164 void RenderViewImpl::dispatchIntent(
3164 const WebKit::WebIntent& intent) { 3165 WebKit::WebFrame* frame, const WebKit::WebIntentRequest& intentRequest) {
darin (slow to review) 2012/01/19 07:23:57 nit: no need for WebKit:: prefix in front of WebFr
Greg Billock 2012/01/19 18:51:59 Done.
3165 webkit_glue::WebIntentData intent_data(intent); 3166 WebKit::WebIntentRequest request(intentRequest);
darin (slow to review) 2012/01/19 07:23:57 this temporary variable should be unnecessary.
Greg Billock 2012/01/19 18:51:59 Done.
3167 webkit_glue::WebIntentData intent_data(request.intent());
3168 int id = intents_host_->RegisterWebIntent(request);
3166 Send(new IntentsHostMsg_WebIntentDispatch( 3169 Send(new IntentsHostMsg_WebIntentDispatch(
3167 routing_id_, intent_data, intent.identifier())); 3170 routing_id_, intent_data, id));
3168 } 3171 }
3169 3172
3170 // WebKit::WebPageSerializerClient implementation ------------------------------ 3173 // WebKit::WebPageSerializerClient implementation ------------------------------
3171 3174
3172 void RenderViewImpl::didSerializeDataForFrame( 3175 void RenderViewImpl::didSerializeDataForFrame(
3173 const WebURL& frame_url, 3176 const WebURL& frame_url,
3174 const WebCString& data, 3177 const WebCString& data,
3175 WebPageSerializerClient::PageSerializationStatus status) { 3178 WebPageSerializerClient::PageSerializationStatus status) {
3176 Send(new ViewHostMsg_SendSerializedHtmlData( 3179 Send(new ViewHostMsg_SendSerializedHtmlData(
3177 routing_id(), 3180 routing_id(),
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
4867 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4870 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4868 return !!RenderThreadImpl::current()->compositor_thread(); 4871 return !!RenderThreadImpl::current()->compositor_thread();
4869 } 4872 }
4870 4873
4871 void RenderViewImpl::OnJavaBridgeInit() { 4874 void RenderViewImpl::OnJavaBridgeInit() {
4872 DCHECK(!java_bridge_dispatcher_.get()); 4875 DCHECK(!java_bridge_dispatcher_.get());
4873 #if defined(ENABLE_JAVA_BRIDGE) 4876 #if defined(ENABLE_JAVA_BRIDGE)
4874 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 4877 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
4875 #endif 4878 #endif
4876 } 4879 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698