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