| 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 "webkit/plugins/npapi/webplugin_delegate_impl.h" | 5 #include "webkit/plugins/npapi/webplugin_delegate_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 return; | 179 return; |
| 180 #if !defined(OS_WIN) // See SetFocus above. | 180 #if !defined(OS_WIN) // See SetFocus above. |
| 181 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_); | 181 SetPluginHasFocus(containing_view_has_focus_ && has_webkit_focus_); |
| 182 #endif | 182 #endif |
| 183 } | 183 } |
| 184 | 184 |
| 185 NPObject* WebPluginDelegateImpl::GetPluginScriptableObject() { | 185 NPObject* WebPluginDelegateImpl::GetPluginScriptableObject() { |
| 186 return instance_->GetPluginScriptableObject(); | 186 return instance_->GetPluginScriptableObject(); |
| 187 } | 187 } |
| 188 | 188 |
| 189 NPP WebPluginDelegateImpl::GetPluginNPP() { |
| 190 return instance_->npp(); |
| 191 } |
| 192 |
| 189 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) { | 193 bool WebPluginDelegateImpl::GetFormValue(base::string16* value) { |
| 190 return instance_->GetFormValue(value); | 194 return instance_->GetFormValue(value); |
| 191 } | 195 } |
| 192 | 196 |
| 193 void WebPluginDelegateImpl::DidFinishLoadWithReason(const GURL& url, | 197 void WebPluginDelegateImpl::DidFinishLoadWithReason(const GURL& url, |
| 194 NPReason reason, | 198 NPReason reason, |
| 195 int notify_id) { | 199 int notify_id) { |
| 196 if (quirks_ & PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS && | 200 if (quirks_ & PLUGIN_QUIRK_ALWAYS_NOTIFY_SUCCESS && |
| 197 reason == NPRES_NETWORK_ERR) { | 201 reason == NPRES_NETWORK_ERR) { |
| 198 // Flash needs this or otherwise it unloads the launching swf object. | 202 // Flash needs this or otherwise it unloads the launching swf object. |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 resource_id, url, std::string(), notify_id); | 296 resource_id, url, std::string(), notify_id); |
| 293 } | 297 } |
| 294 | 298 |
| 295 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient( | 299 WebPluginResourceClient* WebPluginDelegateImpl::CreateSeekableResourceClient( |
| 296 unsigned long resource_id, int range_request_id) { | 300 unsigned long resource_id, int range_request_id) { |
| 297 return instance()->GetRangeRequest(range_request_id); | 301 return instance()->GetRangeRequest(range_request_id); |
| 298 } | 302 } |
| 299 | 303 |
| 300 } // namespace npapi | 304 } // namespace npapi |
| 301 } // namespace webkit | 305 } // namespace webkit |
| OLD | NEW |