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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.cpp

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, 7 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 unified diff | Download patch
OLDNEW
1 /** 1 /**
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 } 476 }
477 477
478 bool HTMLPlugInElement::HasCustomFocusLogic() const { 478 bool HTMLPlugInElement::HasCustomFocusLogic() const {
479 return !UseFallbackContent(); 479 return !UseFallbackContent();
480 } 480 }
481 481
482 bool HTMLPlugInElement::IsPluginElement() const { 482 bool HTMLPlugInElement::IsPluginElement() const {
483 return true; 483 return true;
484 } 484 }
485 485
486 bool HTMLPlugInElement::IsErrorplaceholder() {
487 if (PluginWidget() && PluginWidget()->IsPluginContainer() &&
488 PluginWidget()->IsErrorplaceholder())
489 return true;
490 return false;
491 }
492
486 void HTMLPlugInElement::DisconnectContentFrame() { 493 void HTMLPlugInElement::DisconnectContentFrame() {
487 HTMLFrameOwnerElement::DisconnectContentFrame(); 494 HTMLFrameOwnerElement::DisconnectContentFrame();
488 SetPersistedPlugin(nullptr); 495 SetPersistedPlugin(nullptr);
489 } 496 }
490 497
491 bool HTMLPlugInElement::LayoutObjectIsFocusable() const { 498 bool HTMLPlugInElement::LayoutObjectIsFocusable() const {
492 if (HTMLFrameOwnerElement::SupportsFocus() && 499 if (HTMLFrameOwnerElement::SupportsFocus() &&
493 HTMLFrameOwnerElement::LayoutObjectIsFocusable()) 500 HTMLFrameOwnerElement::LayoutObjectIsFocusable())
494 return true; 501 return true;
495 502
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 714
708 void HTMLPlugInElement::LazyReattachIfNeeded() { 715 void HTMLPlugInElement::LazyReattachIfNeeded() {
709 if (!UseFallbackContent() && NeedsPluginUpdate() && GetLayoutObject() && 716 if (!UseFallbackContent() && NeedsPluginUpdate() && GetLayoutObject() &&
710 !IsImageType()) { 717 !IsImageType()) {
711 LazyReattachIfAttached(); 718 LazyReattachIfAttached();
712 SetPersistedPlugin(nullptr); 719 SetPersistedPlugin(nullptr);
713 } 720 }
714 } 721 }
715 722
716 } // namespace blink 723 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLPlugInElement.h ('k') | third_party/WebKit/Source/core/plugins/PluginView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698