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

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

Issue 12086095: Fixed drag and drop into and out of Browser Plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Drag and drop enabled for linux only Created 7 years, 8 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
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/browser_plugin/browser_plugin.h" 5 #include "content/renderer/browser_plugin/browser_plugin.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/json/json_string_value_serializer.h" 8 #include "base/json/json_string_value_serializer.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 if (guest_crashed_ || !HasGuest()) 1448 if (guest_crashed_ || !HasGuest())
1449 return false; 1449 return false;
1450 browser_plugin_manager()->Send( 1450 browser_plugin_manager()->Send(
1451 new BrowserPluginHostMsg_DragStatusUpdate( 1451 new BrowserPluginHostMsg_DragStatusUpdate(
1452 render_view_routing_id_, 1452 render_view_routing_id_,
1453 instance_id_, 1453 instance_id_,
1454 drag_status, 1454 drag_status,
1455 WebDropData(drag_data), 1455 WebDropData(drag_data),
1456 mask, 1456 mask,
1457 position)); 1457 position));
1458 return false; 1458 return true;
1459 } 1459 }
1460 1460
1461 void BrowserPlugin::didReceiveResponse( 1461 void BrowserPlugin::didReceiveResponse(
1462 const WebKit::WebURLResponse& response) { 1462 const WebKit::WebURLResponse& response) {
1463 } 1463 }
1464 1464
1465 void BrowserPlugin::didReceiveData(const char* data, int data_length) { 1465 void BrowserPlugin::didReceiveData(const char* data, int data_length) {
1466 } 1466 }
1467 1467
1468 void BrowserPlugin::didFinishLoading() { 1468 void BrowserPlugin::didFinishLoading() {
(...skipping 29 matching lines...) Expand all
1498 const WebKit::WebMouseEvent& event) { 1498 const WebKit::WebMouseEvent& event) {
1499 browser_plugin_manager()->Send( 1499 browser_plugin_manager()->Send(
1500 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_, 1500 new BrowserPluginHostMsg_HandleInputEvent(render_view_routing_id_,
1501 instance_id_, 1501 instance_id_,
1502 plugin_rect_, 1502 plugin_rect_,
1503 &event)); 1503 &event));
1504 return true; 1504 return true;
1505 } 1505 }
1506 1506
1507 } // namespace content 1507 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698