OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "content/renderer/render_view.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 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3349 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); | 3349 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); |
3350 } | 3350 } |
3351 | 3351 |
3352 void RenderView::OnDragTargetDragLeave() { | 3352 void RenderView::OnDragTargetDragLeave() { |
3353 webview()->dragTargetDragLeave(); | 3353 webview()->dragTargetDragLeave(); |
3354 } | 3354 } |
3355 | 3355 |
3356 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, | 3356 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, |
3357 const gfx::Point& screen_point) { | 3357 const gfx::Point& screen_point) { |
3358 webview()->dragTargetDrop(client_point, screen_point); | 3358 webview()->dragTargetDrop(client_point, screen_point); |
| 3359 |
| 3360 Send(new DragHostMsg_TargetDrop_ACK(routing_id_)); |
3359 } | 3361 } |
3360 | 3362 |
3361 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 3363 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
3362 const gfx::Point& screen_point, | 3364 const gfx::Point& screen_point, |
3363 bool ended, | 3365 bool ended, |
3364 WebDragOperation op) { | 3366 WebDragOperation op) { |
3365 if (ended) { | 3367 if (ended) { |
3366 webview()->dragSourceEndedAt(client_point, screen_point, op); | 3368 webview()->dragSourceEndedAt(client_point, screen_point, op); |
3367 } else { | 3369 } else { |
3368 webview()->dragSourceMovedTo(client_point, screen_point, op); | 3370 webview()->dragSourceMovedTo(client_point, screen_point, op); |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4255 const webkit_glue::CustomContextMenuContext& custom_context) { | 4257 const webkit_glue::CustomContextMenuContext& custom_context) { |
4256 if (custom_context.is_pepper_menu) | 4258 if (custom_context.is_pepper_menu) |
4257 pepper_delegate_.OnContextMenuClosed(custom_context); | 4259 pepper_delegate_.OnContextMenuClosed(custom_context); |
4258 else | 4260 else |
4259 context_menu_node_.reset(); | 4261 context_menu_node_.reset(); |
4260 } | 4262 } |
4261 | 4263 |
4262 void RenderView::OnNetworkStateChanged(bool online) { | 4264 void RenderView::OnNetworkStateChanged(bool online) { |
4263 WebNetworkStateNotifier::setOnLine(online); | 4265 WebNetworkStateNotifier::setOnLine(online); |
4264 } | 4266 } |
OLD | NEW |