| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 WebDragOperationsMask operations_allowed, | 692 WebDragOperationsMask operations_allowed, |
| 693 int key_modifiers) { | 693 int key_modifiers) { |
| 694 Send(new DragMsg_TargetDragOver(GetRoutingID(), client_pt, screen_pt, | 694 Send(new DragMsg_TargetDragOver(GetRoutingID(), client_pt, screen_pt, |
| 695 operations_allowed, key_modifiers)); | 695 operations_allowed, key_modifiers)); |
| 696 } | 696 } |
| 697 | 697 |
| 698 void RenderViewHostImpl::DragTargetDragLeave() { | 698 void RenderViewHostImpl::DragTargetDragLeave() { |
| 699 Send(new DragMsg_TargetDragLeave(GetRoutingID())); | 699 Send(new DragMsg_TargetDragLeave(GetRoutingID())); |
| 700 } | 700 } |
| 701 | 701 |
| 702 void RenderViewHostImpl::DragTargetDrop( | 702 void RenderViewHostImpl::DragTargetDrop(const DropData& drop_data, |
| 703 const gfx::Point& client_pt, | 703 const gfx::Point& client_pt, |
| 704 const gfx::Point& screen_pt, | 704 const gfx::Point& screen_pt, |
| 705 int key_modifiers) { | 705 int key_modifiers) { |
| 706 Send(new DragMsg_TargetDrop(GetRoutingID(), client_pt, screen_pt, | 706 // TODO(hush): filter the drop_data like what's done in DragTargetDragEnter if |
| 707 key_modifiers)); | 707 // drop data is valid. |
| 708 Send(new DragMsg_TargetDrop(GetRoutingID(), drop_data, client_pt, |
| 709 screen_pt, key_modifiers)); |
| 708 } | 710 } |
| 709 | 711 |
| 710 void RenderViewHostImpl::DragSourceEndedAt( | 712 void RenderViewHostImpl::DragSourceEndedAt( |
| 711 int client_x, int client_y, int screen_x, int screen_y, | 713 int client_x, int client_y, int screen_x, int screen_y, |
| 712 WebDragOperation operation) { | 714 WebDragOperation operation) { |
| 713 Send(new DragMsg_SourceEnded(GetRoutingID(), | 715 Send(new DragMsg_SourceEnded(GetRoutingID(), |
| 714 gfx::Point(client_x, client_y), | 716 gfx::Point(client_x, client_y), |
| 715 gfx::Point(screen_x, screen_y), | 717 gfx::Point(screen_x, screen_y), |
| 716 operation)); | 718 operation)); |
| 717 } | 719 } |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 } else { | 1354 } else { |
| 1353 render_view_ready_on_process_launch_ = true; | 1355 render_view_ready_on_process_launch_ = true; |
| 1354 } | 1356 } |
| 1355 } | 1357 } |
| 1356 | 1358 |
| 1357 void RenderViewHostImpl::RenderViewReady() { | 1359 void RenderViewHostImpl::RenderViewReady() { |
| 1358 delegate_->RenderViewReady(this); | 1360 delegate_->RenderViewReady(this); |
| 1359 } | 1361 } |
| 1360 | 1362 |
| 1361 } // namespace content | 1363 } // namespace content |
| OLD | NEW |