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

Side by Side Diff: Source/core/rendering/RenderEmbeddedObject.h

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010, 2012 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 void setPluginUnavailabilityReason(PluginUnavailabilityReason); 47 void setPluginUnavailabilityReason(PluginUnavailabilityReason);
48 bool showsUnavailablePluginIndicator() const; 48 bool showsUnavailablePluginIndicator() const;
49 49
50 // FIXME: This belongs on HTMLObjectElement. 50 // FIXME: This belongs on HTMLObjectElement.
51 bool hasFallbackContent() const { return m_hasFallbackContent; } 51 bool hasFallbackContent() const { return m_hasFallbackContent; }
52 void setHasFallbackContent(bool hasFallbackContent) { m_hasFallbackContent = hasFallbackContent; } 52 void setHasFallbackContent(bool hasFallbackContent) { m_hasFallbackContent = hasFallbackContent; }
53 53
54 void handleUnavailablePluginIndicatorEvent(Event*); 54 void handleUnavailablePluginIndicatorEvent(Event*);
55 55
56 virtual bool allowsAcceleratedCompositing() const; 56 bool allowsAcceleratedCompositing() const;
57 57
58 protected: 58 protected:
59 virtual void paintReplaced(PaintInfo&, const LayoutPoint&); 59 virtual void paintReplaced(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
60 virtual void paint(PaintInfo&, const LayoutPoint&); 60 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
61 61
62 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const; 62 virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const OVERRID E FINAL;
63 63
64 const RenderObjectChildList* children() const { return &m_children; } 64 const RenderObjectChildList* children() const { return &m_children; }
65 RenderObjectChildList* children() { return &m_children; } 65 RenderObjectChildList* children() { return &m_children; }
66 66
67 protected: 67 protected:
68 virtual void layout() OVERRIDE; 68 virtual void layout() OVERRIDE FINAL;
69 69
70 private: 70 private:
71 virtual const char* renderName() const { return "RenderEmbeddedObject"; } 71 virtual const char* renderName() const { return "RenderEmbeddedObject"; }
72 virtual bool isEmbeddedObject() const { return true; } 72 virtual bool isEmbeddedObject() const OVERRIDE FINAL { return true; }
73 73
74 void paintSnapshotImage(PaintInfo&, const LayoutPoint&, Image*); 74 void paintSnapshotImage(PaintInfo&, const LayoutPoint&, Image*);
75 virtual void paintContents(PaintInfo&, const LayoutPoint&) OVERRIDE; 75 virtual void paintContents(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL;
76 76
77 virtual bool requiresLayer() const; 77 virtual bool requiresLayer() const OVERRIDE FINAL;
78 78
79 virtual void viewCleared(); 79 virtual void viewCleared() OVERRIDE FINAL;
80 80
81 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE; 81 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct ion) OVERRIDE FINAL;
82 82
83 virtual bool scroll(ScrollDirection, ScrollGranularity, float multiplier, No de** stopNode); 83 virtual bool scroll(ScrollDirection, ScrollGranularity, float multiplier, No de** stopNode) OVERRIDE FINAL;
84 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier, Node** stopNode); 84 virtual bool logicalScroll(ScrollLogicalDirection, ScrollGranularity, float multiplier, Node** stopNode) OVERRIDE FINAL;
85 85
86 void setUnavailablePluginIndicatorIsPressed(bool); 86 void setUnavailablePluginIndicatorIsPressed(bool);
87 bool isInUnavailablePluginIndicator(MouseEvent*) const; 87 bool isInUnavailablePluginIndicator(MouseEvent*) const;
88 bool isInUnavailablePluginIndicator(const LayoutPoint&) const; 88 bool isInUnavailablePluginIndicator(const LayoutPoint&) const;
89 bool getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatR ect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth) const; 89 bool getReplacementTextGeometry(const LayoutPoint& accumulatedOffset, FloatR ect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth) const;
90 90
91 virtual bool canHaveChildren() const; 91 virtual bool canHaveChildren() const OVERRIDE FINAL;
92 virtual RenderObjectChildList* virtualChildren() { return children(); } 92 virtual RenderObjectChildList* virtualChildren() OVERRIDE FINAL { return chi ldren(); }
93 virtual const RenderObjectChildList* virtualChildren() const { return childr en(); } 93 virtual const RenderObjectChildList* virtualChildren() const OVERRIDE FINAL { return children(); }
94 94
95 virtual bool canHaveWidget() const { return true; }
96
97 bool m_hasFallbackContent; // FIXME: This belongs on HTMLObjectElement. 95 bool m_hasFallbackContent; // FIXME: This belongs on HTMLObjectElement.
98 96
99 bool m_showsUnavailablePluginIndicator; 97 bool m_showsUnavailablePluginIndicator;
100 PluginUnavailabilityReason m_pluginUnavailabilityReason; 98 PluginUnavailabilityReason m_pluginUnavailabilityReason;
101 String m_unavailablePluginReplacementText; 99 String m_unavailablePluginReplacementText;
102 bool m_unavailablePluginIndicatorIsPressed; 100 bool m_unavailablePluginIndicatorIsPressed;
103 bool m_mouseDownWasInUnavailablePluginIndicator; 101 bool m_mouseDownWasInUnavailablePluginIndicator;
104 RenderObjectChildList m_children; 102 RenderObjectChildList m_children;
105 }; 103 };
106 104
107 inline RenderEmbeddedObject* toRenderEmbeddedObject(RenderObject* object) 105 inline RenderEmbeddedObject* toRenderEmbeddedObject(RenderObject* object)
108 { 106 {
109 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isEmbeddedObject()); 107 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isEmbeddedObject());
110 return static_cast<RenderEmbeddedObject*>(object); 108 return static_cast<RenderEmbeddedObject*>(object);
111 } 109 }
112 110
113 // This will catch anyone doing an unnecessary cast. 111 // This will catch anyone doing an unnecessary cast.
114 void toRenderEmbeddedObject(const RenderEmbeddedObject*); 112 void toRenderEmbeddedObject(const RenderEmbeddedObject*);
115 113
116 } // namespace WebCore 114 } // namespace WebCore
117 115
118 #endif // RenderEmbeddedObject_h 116 #endif // RenderEmbeddedObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderDetailsMarker.h ('k') | Source/core/rendering/RenderEmbeddedObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698