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

Side by Side Diff: webkit/plugins/ppapi/ppapi_webplugin_impl.cc

Issue 11043022: plugins: Stub implementation for accepting dragged data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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 "webkit/plugins/ppapi/ppapi_webplugin_impl.h" 5 #include "webkit/plugins/ppapi/ppapi_webplugin_impl.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return true; 178 return true;
179 } 179 }
180 180
181 bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event, 181 bool WebPluginImpl::handleInputEvent(const WebKit::WebInputEvent& event,
182 WebKit::WebCursorInfo& cursor_info) { 182 WebKit::WebCursorInfo& cursor_info) {
183 if (instance_->FlashIsFullscreenOrPending()) 183 if (instance_->FlashIsFullscreenOrPending())
184 return false; 184 return false;
185 return instance_->HandleInputEvent(event, &cursor_info); 185 return instance_->HandleInputEvent(event, &cursor_info);
186 } 186 }
187 187
188 bool WebPluginImpl::handleDragStatusUpdate(
189 WebKit::WebDragStatus dragStatus,
190 const WebKit::WebDragData& drag_data,
191 WebKit::WebDragOperationsMask drag_mask,
192 const WebKit::WebPoint& position,
193 const WebKit::WebPoint& screenPosition) {
194 return false;
195 }
196
188 void WebPluginImpl::didReceiveResponse( 197 void WebPluginImpl::didReceiveResponse(
189 const WebKit::WebURLResponse& response) { 198 const WebKit::WebURLResponse& response) {
190 DCHECK(!document_loader_); 199 DCHECK(!document_loader_);
191 200
192 if (instance_->module()->is_crashed()) { 201 if (instance_->module()->is_crashed()) {
193 // Don't create a resource for a crashed plugin. 202 // Don't create a resource for a crashed plugin.
194 instance_->container()->element().document().frame()->stopLoading(); 203 instance_->container()->element().document().frame()->stopLoading();
195 return; 204 return;
196 } 205 }
197 206
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 void WebPluginImpl::rotateView(RotationType type) { 302 void WebPluginImpl::rotateView(RotationType type) {
294 instance_->RotateView(type); 303 instance_->RotateView(type);
295 } 304 }
296 305
297 bool WebPluginImpl::isPlaceholder() { 306 bool WebPluginImpl::isPlaceholder() {
298 return false; 307 return false;
299 } 308 }
300 309
301 } // namespace ppapi 310 } // namespace ppapi
302 } // namespace webkit 311 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698