| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "chrome/renderer/webplugin_delegate_proxy.h" | 5 #include "chrome/renderer/webplugin_delegate_proxy.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/gfx/canvas.h" | 9 #include "app/gfx/canvas.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 957 if (render_view_) | 957 if (render_view_) |
| 958 webview = render_view_->webview(); | 958 webview = render_view_->webview(); |
| 959 if (!webview) | 959 if (!webview) |
| 960 return; | 960 return; |
| 961 | 961 |
| 962 NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer); | 962 NPObject* event = reinterpret_cast<NPObject*>(object.npobject_pointer); |
| 963 const int32 drag_id = webview->dragIdentity(); | 963 const int32 drag_id = webview->dragIdentity(); |
| 964 if (!drag_id || !WebBindings::isDragEvent(event)) | 964 if (!drag_id || !WebBindings::isDragEvent(event)) |
| 965 return; | 965 return; |
| 966 | 966 |
| 967 *success = webview->SetDropEffect(effect != 0); | 967 *success = webview->setDropEffect(effect != 0); |
| 968 } | 968 } |
| 969 | 969 |
| 970 void WebPluginDelegateProxy::OnMissingPluginStatus(int status) { | 970 void WebPluginDelegateProxy::OnMissingPluginStatus(int status) { |
| 971 if (render_view_) | 971 if (render_view_) |
| 972 render_view_->OnMissingPluginStatus(this, status); | 972 render_view_->OnMissingPluginStatus(this, status); |
| 973 } | 973 } |
| 974 | 974 |
| 975 void WebPluginDelegateProxy::OnGetCPBrowsingContext(uint32* context) { | 975 void WebPluginDelegateProxy::OnGetCPBrowsingContext(uint32* context) { |
| 976 *context = render_view_ ? render_view_->GetCPBrowsingContext() : 0; | 976 *context = render_view_ ? render_view_->GetCPBrowsingContext() : 0; |
| 977 } | 977 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { | 1059 intptr_t existing_stream, bool notify_needed, intptr_t notify_data) { |
| 1060 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), | 1060 plugin_->InitiateHTTPRangeRequest(url.c_str(), range_info.c_str(), |
| 1061 existing_stream, notify_needed, | 1061 existing_stream, notify_needed, |
| 1062 notify_data); | 1062 notify_data); |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, | 1065 void WebPluginDelegateProxy::OnDeferResourceLoading(int resource_id, |
| 1066 bool defer) { | 1066 bool defer) { |
| 1067 plugin_->SetDeferResourceLoading(resource_id, defer); | 1067 plugin_->SetDeferResourceLoading(resource_id, defer); |
| 1068 } | 1068 } |
| OLD | NEW |