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

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: 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" 93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams. h" 94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileChooserParams. h"
95 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h" 95 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFileSystemCallback s.h"
96 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 96 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
97 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h" 97 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormControlElement .h"
98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" 98 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h"
99 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 99 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
100 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h" 100 #include "third_party/WebKit/Source/WebKit/chromium/public/WebHistoryItem.h"
101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h" 101 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputElement.h"
102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 102 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntent.h" 103 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentRequest.h"
104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo. h" 104 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIntentServiceInfo. h"
105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 105 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h" 106 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNodeList.h"
107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h" 107 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageSerializer.h"
108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" 108 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h"
109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 109 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" 110 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h"
111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 111 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" 112 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h"
113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 113 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
(...skipping 3013 matching lines...) Expand 10 before | Expand all | Expand 10 after
3127 3127
3128 Send(new IntentsHostMsg_RegisterIntentService(routing_id_, 3128 Send(new IntentsHostMsg_RegisterIntentService(routing_id_,
3129 service.action(), 3129 service.action(),
3130 service.type(), 3130 service.type(),
3131 service.url().spec().utf16(), 3131 service.url().spec().utf16(),
3132 title, 3132 title,
3133 service.disposition())); 3133 service.disposition()));
3134 } 3134 }
3135 3135
3136 void RenderViewImpl::dispatchIntent(WebKit::WebFrame* frame, 3136 void RenderViewImpl::dispatchIntent(WebKit::WebFrame* frame,
3137 const WebKit::WebIntent& intent) { 3137 WebKit::WebIntentRequest* intent) {
3138 webkit_glue::WebIntentData intent_data(intent); 3138 webkit_glue::WebIntentData intent_data(*intent);
3139 int id = intents_host_->RegisterWebIntent(intent);
3139 Send(new IntentsHostMsg_WebIntentDispatch( 3140 Send(new IntentsHostMsg_WebIntentDispatch(
3140 routing_id_, intent_data, intent.identifier())); 3141 routing_id_, intent_data, id));
3141 } 3142 }
3142 3143
3143 // WebKit::WebPageSerializerClient implementation ------------------------------ 3144 // WebKit::WebPageSerializerClient implementation ------------------------------
3144 3145
3145 void RenderViewImpl::didSerializeDataForFrame( 3146 void RenderViewImpl::didSerializeDataForFrame(
3146 const WebURL& frame_url, 3147 const WebURL& frame_url,
3147 const WebCString& data, 3148 const WebCString& data,
3148 WebPageSerializerClient::PageSerializationStatus status) { 3149 WebPageSerializerClient::PageSerializationStatus status) {
3149 Send(new ViewHostMsg_SendSerializedHtmlData( 3150 Send(new ViewHostMsg_SendSerializedHtmlData(
3150 routing_id(), 3151 routing_id(),
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
4819 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 4820 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
4820 return !!RenderThreadImpl::current()->compositor_thread(); 4821 return !!RenderThreadImpl::current()->compositor_thread();
4821 } 4822 }
4822 4823
4823 void RenderViewImpl::OnJavaBridgeInit() { 4824 void RenderViewImpl::OnJavaBridgeInit() {
4824 DCHECK(!java_bridge_dispatcher_.get()); 4825 DCHECK(!java_bridge_dispatcher_.get());
4825 #if defined(ENABLE_JAVA_BRIDGE) 4826 #if defined(ENABLE_JAVA_BRIDGE)
4826 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 4827 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
4827 #endif 4828 #endif
4828 } 4829 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698