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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 const char* GetName() const override { return "LayoutEmbeddedObject"; } | 46 const char* GetName() const override { return "LayoutEmbeddedObject"; } |
47 | 47 |
48 const String& UnavailablePluginReplacementText() const { | 48 const String& UnavailablePluginReplacementText() const { |
49 return unavailable_plugin_replacement_text_; | 49 return unavailable_plugin_replacement_text_; |
50 } | 50 } |
51 | 51 |
52 private: | 52 private: |
53 void PaintContents(const PaintInfo&, const LayoutPoint&) const final; | 53 void PaintContents(const PaintInfo&, const LayoutPoint&) const final; |
54 void PaintReplaced(const PaintInfo&, const LayoutPoint&) const final; | 54 void PaintReplaced(const PaintInfo&, const LayoutPoint&) const final; |
55 void Paint(const PaintInfo&, const LayoutPoint&) const final; | 55 void Paint(const PaintInfo&, const LayoutPoint&) const final; |
56 PaintInvalidationReason InvalidatePaintIfNeeded( | 56 PaintInvalidationReason InvalidatePaint( |
57 const PaintInvalidatorContext&) const final; | 57 const PaintInvalidatorContext&) const final; |
58 | 58 |
59 void UpdateLayout() final; | 59 void UpdateLayout() final; |
60 | 60 |
61 bool IsOfType(LayoutObjectType type) const override { | 61 bool IsOfType(LayoutObjectType type) const override { |
62 return type == kLayoutObjectEmbeddedObject || LayoutPart::IsOfType(type); | 62 return type == kLayoutObjectEmbeddedObject || LayoutPart::IsOfType(type); |
63 } | 63 } |
64 LayoutReplaced* EmbeddedReplacedContent() const final; | 64 LayoutReplaced* EmbeddedReplacedContent() const final; |
65 | 65 |
66 PaintLayerType LayerTypeRequired() const final; | 66 PaintLayerType LayerTypeRequired() const final; |
67 | 67 |
68 ScrollResult Scroll(ScrollGranularity, const FloatSize&) final; | 68 ScrollResult Scroll(ScrollGranularity, const FloatSize&) final; |
69 | 69 |
70 CompositingReasons AdditionalCompositingReasons() const override; | 70 CompositingReasons AdditionalCompositingReasons() const override; |
71 | 71 |
72 PluginAvailability plugin_availability_ = kPluginAvailable; | 72 PluginAvailability plugin_availability_ = kPluginAvailable; |
73 String unavailable_plugin_replacement_text_; | 73 String unavailable_plugin_replacement_text_; |
74 }; | 74 }; |
75 | 75 |
76 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, IsEmbeddedObject()); | 76 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutEmbeddedObject, IsEmbeddedObject()); |
77 | 77 |
78 } // namespace blink | 78 } // namespace blink |
79 | 79 |
80 #endif // LayoutEmbeddedObject_h | 80 #endif // LayoutEmbeddedObject_h |
OLD | NEW |