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/pepper/pepper_webplugin_impl.h" | 5 #include "content/renderer/pepper/pepper_webplugin_impl.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/debug/crash_logging.h" | 9 #include "base/debug/crash_logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 document_loader->didFinishLoading( | 247 document_loader->didFinishLoading( |
248 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); | 248 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); |
249 } | 249 } |
250 | 250 |
251 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { | 251 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { |
252 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); | 252 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); |
253 if (document_loader) | 253 if (document_loader) |
254 document_loader->didFail(NULL, error); | 254 document_loader->didFail(NULL, error); |
255 } | 255 } |
256 | 256 |
257 void PepperWebPluginImpl::didFinishLoadingFrameRequest(const blink::WebURL& url, | |
258 void* notify_data) {} | |
259 | |
260 void PepperWebPluginImpl::didFailLoadingFrameRequest( | |
261 const blink::WebURL& url, | |
262 void* notify_data, | |
263 const blink::WebURLError& error) {} | |
264 | |
265 bool PepperWebPluginImpl::hasSelection() const { | 257 bool PepperWebPluginImpl::hasSelection() const { |
266 return !selectionAsText().isEmpty(); | 258 return !selectionAsText().isEmpty(); |
267 } | 259 } |
268 | 260 |
269 WebString PepperWebPluginImpl::selectionAsText() const { | 261 WebString PepperWebPluginImpl::selectionAsText() const { |
270 return instance_->GetSelectedText(false); | 262 return instance_->GetSelectedText(false); |
271 } | 263 } |
272 | 264 |
273 WebString PepperWebPluginImpl::selectionAsMarkup() const { | 265 WebString PepperWebPluginImpl::selectionAsMarkup() const { |
274 return instance_->GetSelectedText(true); | 266 return instance_->GetSelectedText(true); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 | 307 |
316 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 308 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
317 | 309 |
318 void PepperWebPluginImpl::rotateView(RotationType type) { | 310 void PepperWebPluginImpl::rotateView(RotationType type) { |
319 instance_->RotateView(type); | 311 instance_->RotateView(type); |
320 } | 312 } |
321 | 313 |
322 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 314 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
323 | 315 |
324 } // namespace content | 316 } // namespace content |
OLD | NEW |