| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 3 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
| 4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. | 4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. |
| 5 * All rights reserved. | 5 * All rights reserved. |
| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 enum PluginAvailability { | 38 enum PluginAvailability { |
| 39 PluginAvailable, | 39 PluginAvailable, |
| 40 PluginMissing, | 40 PluginMissing, |
| 41 PluginBlockedByContentSecurityPolicy, | 41 PluginBlockedByContentSecurityPolicy, |
| 42 }; | 42 }; |
| 43 void setPluginAvailability(PluginAvailability); | 43 void setPluginAvailability(PluginAvailability); |
| 44 bool showsUnavailablePluginIndicator() const; | 44 bool showsUnavailablePluginIndicator() const; |
| 45 | 45 |
| 46 const char* name() const override { return "LayoutEmbeddedObject"; } | 46 const char* name() const override { return "LayoutEmbeddedObject"; } |
| 47 char objectSize() const override { return sizeof(this); } |
| 47 | 48 |
| 48 const String& unavailablePluginReplacementText() const { | 49 const String& unavailablePluginReplacementText() const { |
| 49 return m_unavailablePluginReplacementText; | 50 return m_unavailablePluginReplacementText; |
| 50 } | 51 } |
| 51 | 52 |
| 52 private: | 53 private: |
| 53 void paintContents(const PaintInfo&, const LayoutPoint&) const final; | 54 void paintContents(const PaintInfo&, const LayoutPoint&) const final; |
| 54 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final; | 55 void paintReplaced(const PaintInfo&, const LayoutPoint&) const final; |
| 55 void paint(const PaintInfo&, const LayoutPoint&) const final; | 56 void paint(const PaintInfo&, const LayoutPoint&) const final; |
| 56 PaintInvalidationReason invalidatePaintIfNeeded( | 57 PaintInvalidationReason invalidatePaintIfNeeded( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 71 | 72 |
| 72 PluginAvailability m_pluginAvailability = PluginAvailable; | 73 PluginAvailability m_pluginAvailability = PluginAvailable; |
| 73 String m_unavailablePluginReplacementText; | 74 String m_unavailablePluginReplacementText; |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject()); | 77 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, isEmbeddedObject()); |
| 77 | 78 |
| 78 } // namespace blink | 79 } // namespace blink |
| 79 | 80 |
| 80 #endif // LayoutEmbeddedObject_h | 81 #endif // LayoutEmbeddedObject_h |
| OLD | NEW |