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 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3355 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); | 3355 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); |
3356 } | 3356 } |
3357 | 3357 |
3358 void RenderView::OnDragTargetDragLeave() { | 3358 void RenderView::OnDragTargetDragLeave() { |
3359 webview()->dragTargetDragLeave(); | 3359 webview()->dragTargetDragLeave(); |
3360 } | 3360 } |
3361 | 3361 |
3362 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, | 3362 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, |
3363 const gfx::Point& screen_point) { | 3363 const gfx::Point& screen_point) { |
3364 webview()->dragTargetDrop(client_point, screen_point); | 3364 webview()->dragTargetDrop(client_point, screen_point); |
| 3365 |
| 3366 Send(new DragHostMsg_TargetDrop_ACK(routing_id_)); |
3365 } | 3367 } |
3366 | 3368 |
3367 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 3369 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, |
3368 const gfx::Point& screen_point, | 3370 const gfx::Point& screen_point, |
3369 bool ended, | 3371 bool ended, |
3370 WebDragOperation op) { | 3372 WebDragOperation op) { |
3371 if (ended) { | 3373 if (ended) { |
3372 webview()->dragSourceEndedAt(client_point, screen_point, op); | 3374 webview()->dragSourceEndedAt(client_point, screen_point, op); |
3373 } else { | 3375 } else { |
3374 webview()->dragSourceMovedTo(client_point, screen_point, op); | 3376 webview()->dragSourceMovedTo(client_point, screen_point, op); |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4246 const webkit_glue::CustomContextMenuContext& custom_context) { | 4248 const webkit_glue::CustomContextMenuContext& custom_context) { |
4247 if (custom_context.is_pepper_menu) | 4249 if (custom_context.is_pepper_menu) |
4248 pepper_delegate_.OnContextMenuClosed(custom_context); | 4250 pepper_delegate_.OnContextMenuClosed(custom_context); |
4249 else | 4251 else |
4250 context_menu_node_.reset(); | 4252 context_menu_node_.reset(); |
4251 } | 4253 } |
4252 | 4254 |
4253 void RenderView::OnNetworkStateChanged(bool online) { | 4255 void RenderView::OnNetworkStateChanged(bool online) { |
4254 WebNetworkStateNotifier::setOnLine(online); | 4256 WebNetworkStateNotifier::setOnLine(online); |
4255 } | 4257 } |
OLD | NEW |