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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 document_loader->didFinishLoading( | 244 document_loader->didFinishLoading( |
245 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); | 245 NULL, 0.0, blink::WebURLLoaderClient::kUnknownEncodedDataLength); |
246 } | 246 } |
247 | 247 |
248 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { | 248 void PepperWebPluginImpl::didFailLoading(const blink::WebURLError& error) { |
249 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); | 249 blink::WebURLLoaderClient* document_loader = instance_->document_loader(); |
250 if (document_loader) | 250 if (document_loader) |
251 document_loader->didFail(NULL, error); | 251 document_loader->didFail(NULL, error); |
252 } | 252 } |
253 | 253 |
254 void PepperWebPluginImpl::didFinishLoadingFrameRequest(const blink::WebURL& url, | |
255 void* notify_data) {} | |
256 | |
257 void PepperWebPluginImpl::didFailLoadingFrameRequest( | |
258 const blink::WebURL& url, | |
259 void* notify_data, | |
260 const blink::WebURLError& error) {} | |
261 | |
262 bool PepperWebPluginImpl::hasSelection() const { | 254 bool PepperWebPluginImpl::hasSelection() const { |
263 return !selectionAsText().isEmpty(); | 255 return !selectionAsText().isEmpty(); |
264 } | 256 } |
265 | 257 |
266 WebString PepperWebPluginImpl::selectionAsText() const { | 258 WebString PepperWebPluginImpl::selectionAsText() const { |
267 return instance_->GetSelectedText(false); | 259 return instance_->GetSelectedText(false); |
268 } | 260 } |
269 | 261 |
270 WebString PepperWebPluginImpl::selectionAsMarkup() const { | 262 WebString PepperWebPluginImpl::selectionAsMarkup() const { |
271 return instance_->GetSelectedText(true); | 263 return instance_->GetSelectedText(true); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 | 304 |
313 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } | 305 bool PepperWebPluginImpl::canRotateView() { return instance_->CanRotateView(); } |
314 | 306 |
315 void PepperWebPluginImpl::rotateView(RotationType type) { | 307 void PepperWebPluginImpl::rotateView(RotationType type) { |
316 instance_->RotateView(type); | 308 instance_->RotateView(type); |
317 } | 309 } |
318 | 310 |
319 bool PepperWebPluginImpl::isPlaceholder() { return false; } | 311 bool PepperWebPluginImpl::isPlaceholder() { return false; } |
320 | 312 |
321 } // namespace content | 313 } // namespace content |
OLD | NEW |