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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 5281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5292 WebDragOperation op) { | 5292 WebDragOperation op) { |
5293 if (ended) { | 5293 if (ended) { |
5294 webview()->dragSourceEndedAt(client_point, screen_point, op); | 5294 webview()->dragSourceEndedAt(client_point, screen_point, op); |
5295 } else { | 5295 } else { |
5296 webview()->dragSourceMovedTo(client_point, screen_point, op); | 5296 webview()->dragSourceMovedTo(client_point, screen_point, op); |
5297 } | 5297 } |
5298 } | 5298 } |
5299 | 5299 |
5300 void RenderViewImpl::OnDragSourceSystemDragEnded() { | 5300 void RenderViewImpl::OnDragSourceSystemDragEnded() { |
5301 webview()->dragSourceSystemDragEnded(); | 5301 webview()->dragSourceSystemDragEnded(); |
| 5302 Send(new DragHostMsg_DragStopped(routing_id_)); |
5302 } | 5303 } |
5303 | 5304 |
5304 void RenderViewImpl::OnUpdateWebPreferences(const WebPreferences& prefs) { | 5305 void RenderViewImpl::OnUpdateWebPreferences(const WebPreferences& prefs) { |
5305 webkit_preferences_ = prefs; | 5306 webkit_preferences_ = prefs; |
5306 webkit_preferences_.Apply(webview()); | 5307 webkit_preferences_.Apply(webview()); |
5307 } | 5308 } |
5308 | 5309 |
5309 void RenderViewImpl::OnUpdateTimezone() { | 5310 void RenderViewImpl::OnUpdateTimezone() { |
5310 if (webview()) | 5311 if (webview()) |
5311 NotifyTimezoneChange(webview()->mainFrame()); | 5312 NotifyTimezoneChange(webview()->mainFrame()); |
(...skipping 1308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6620 } | 6621 } |
6621 #endif | 6622 #endif |
6622 | 6623 |
6623 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6624 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6624 TransportDIB::Handle dib_handle) { | 6625 TransportDIB::Handle dib_handle) { |
6625 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6626 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6626 RenderProcess::current()->ReleaseTransportDIB(dib); | 6627 RenderProcess::current()->ReleaseTransportDIB(dib); |
6627 } | 6628 } |
6628 | 6629 |
6629 } // namespace content | 6630 } // namespace content |
OLD | NEW |