Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Unified Diff: components/plugins/renderer/webview_plugin.cc

Issue 2733083004: Emit error events if the loading of an object element failed (Closed)
Patch Set: Emit error events if the loading of an object element failed Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/plugins/renderer/webview_plugin.cc
diff --git a/components/plugins/renderer/webview_plugin.cc b/components/plugins/renderer/webview_plugin.cc
index bb9eecff628892a020511304c3f55d31cca64c38..79cf4453e5edadbb9f651db70d13a0a37e171e61 100644
--- a/components/plugins/renderer/webview_plugin.cc
+++ b/components/plugins/renderer/webview_plugin.cc
@@ -148,6 +148,12 @@ void WebViewPlugin::UpdateAllLifecyclePhases() {
web_view()->UpdateAllLifecyclePhases();
}
+bool WebViewPlugin::IsErrorPlaceholder() {
+ if (!delegate_)
+ return false;
+ return delegate_->IsErrorPlaceholder();
+}
+
void WebViewPlugin::Paint(WebCanvas* canvas, const WebRect& rect) {
gfx::Rect paint_rect = gfx::IntersectRects(rect_, rect);
if (paint_rect.IsEmpty())
« no previous file with comments | « components/plugins/renderer/webview_plugin.h ('k') | third_party/WebKit/LayoutTests/plugins/object-onerror-placeholder.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698