| 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 3335 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3346   Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); | 3346   Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); | 
| 3347 } | 3347 } | 
| 3348 | 3348 | 
| 3349 void RenderView::OnDragTargetDragLeave() { | 3349 void RenderView::OnDragTargetDragLeave() { | 
| 3350   webview()->dragTargetDragLeave(); | 3350   webview()->dragTargetDragLeave(); | 
| 3351 } | 3351 } | 
| 3352 | 3352 | 
| 3353 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, | 3353 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, | 
| 3354                                   const gfx::Point& screen_point) { | 3354                                   const gfx::Point& screen_point) { | 
| 3355   webview()->dragTargetDrop(client_point, screen_point); | 3355   webview()->dragTargetDrop(client_point, screen_point); | 
|  | 3356 | 
|  | 3357   Send(new DragHostMsg_TargetDrop_ACK(routing_id_)); | 
| 3356 } | 3358 } | 
| 3357 | 3359 | 
| 3358 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 3360 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, | 
| 3359                                           const gfx::Point& screen_point, | 3361                                           const gfx::Point& screen_point, | 
| 3360                                           bool ended, | 3362                                           bool ended, | 
| 3361                                           WebDragOperation op) { | 3363                                           WebDragOperation op) { | 
| 3362   if (ended) { | 3364   if (ended) { | 
| 3363     webview()->dragSourceEndedAt(client_point, screen_point, op); | 3365     webview()->dragSourceEndedAt(client_point, screen_point, op); | 
| 3364   } else { | 3366   } else { | 
| 3365     webview()->dragSourceMovedTo(client_point, screen_point, op); | 3367     webview()->dragSourceMovedTo(client_point, screen_point, op); | 
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4242     const webkit_glue::CustomContextMenuContext& custom_context) { | 4244     const webkit_glue::CustomContextMenuContext& custom_context) { | 
| 4243   if (custom_context.is_pepper_menu) | 4245   if (custom_context.is_pepper_menu) | 
| 4244     pepper_delegate_.OnContextMenuClosed(custom_context); | 4246     pepper_delegate_.OnContextMenuClosed(custom_context); | 
| 4245   else | 4247   else | 
| 4246     context_menu_node_.reset(); | 4248     context_menu_node_.reset(); | 
| 4247 } | 4249 } | 
| 4248 | 4250 | 
| 4249 void RenderView::OnNetworkStateChanged(bool online) { | 4251 void RenderView::OnNetworkStateChanged(bool online) { | 
| 4250   WebNetworkStateNotifier::setOnLine(online); | 4252   WebNetworkStateNotifier::setOnLine(online); | 
| 4251 } | 4253 } | 
| OLD | NEW | 
|---|