OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "wtf/Allocator.h" | 36 #include "wtf/Allocator.h" |
37 #include "wtf/Noncopyable.h" | 37 #include "wtf/Noncopyable.h" |
38 #include "wtf/OwnPtr.h" | 38 #include "wtf/OwnPtr.h" |
39 #include "wtf/PassOwnPtr.h" | 39 #include "wtf/PassOwnPtr.h" |
40 #include "wtf/text/AtomicString.h" | 40 #include "wtf/text/AtomicString.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
44 class ChromeClient; | 44 class ChromeClient; |
45 class ConsoleMessageStorage; | 45 class ConsoleMessageStorage; |
| 46 class CustomElementReactionStack; |
46 class Deprecation; | 47 class Deprecation; |
47 class EventHandlerRegistry; | 48 class EventHandlerRegistry; |
48 class OverscrollController; | 49 class OverscrollController; |
49 class Page; | 50 class Page; |
50 struct PageScaleConstraints; | 51 struct PageScaleConstraints; |
51 class PageScaleConstraintsSet; | 52 class PageScaleConstraintsSet; |
52 class RootScroller; | 53 class RootScroller; |
53 class Settings; | 54 class Settings; |
54 class TopControls; | 55 class TopControls; |
55 class UseCounter; | 56 class UseCounter; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 115 |
115 EventHandlerRegistry& eventHandlerRegistry(); | 116 EventHandlerRegistry& eventHandlerRegistry(); |
116 const EventHandlerRegistry& eventHandlerRegistry() const; | 117 const EventHandlerRegistry& eventHandlerRegistry() const; |
117 | 118 |
118 const AtomicString& overrideEncoding() const { return m_overrideEncoding; } | 119 const AtomicString& overrideEncoding() const { return m_overrideEncoding; } |
119 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncoding
= encoding; } | 120 void setOverrideEncoding(const AtomicString& encoding) { m_overrideEncoding
= encoding; } |
120 | 121 |
121 ConsoleMessageStorage& consoleMessageStorage(); | 122 ConsoleMessageStorage& consoleMessageStorage(); |
122 const ConsoleMessageStorage& consoleMessageStorage() const; | 123 const ConsoleMessageStorage& consoleMessageStorage() const; |
123 | 124 |
| 125 CustomElementReactionStack& customElementReactionStack(); |
| 126 const CustomElementReactionStack& customElementReactionStack() const; |
| 127 |
124 DECLARE_TRACE(); | 128 DECLARE_TRACE(); |
125 | 129 |
126 // Don't allow more than a certain number of frames in a page. | 130 // Don't allow more than a certain number of frames in a page. |
127 // This seems like a reasonable upper bound, and otherwise mutually | 131 // This seems like a reasonable upper bound, and otherwise mutually |
128 // recursive frameset pages can quickly bring the program to its knees | 132 // recursive frameset pages can quickly bring the program to its knees |
129 // with exponential growth in the number of frames. | 133 // with exponential growth in the number of frames. |
130 static const int maxNumberOfFrames = 1000; | 134 static const int maxNumberOfFrames = 1000; |
131 void incrementSubframeCount() { ++m_subframeCount; } | 135 void incrementSubframeCount() { ++m_subframeCount; } |
132 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} | 136 void decrementSubframeCount() { ASSERT(m_subframeCount); --m_subframeCount;
} |
133 int subframeCount() const; | 137 int subframeCount() const; |
134 | 138 |
135 void setDefaultPageScaleLimits(float minScale, float maxScale); | 139 void setDefaultPageScaleLimits(float minScale, float maxScale); |
136 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); | 140 void setUserAgentPageScaleConstraints(const PageScaleConstraints& newConstra
ints); |
137 | 141 |
138 private: | 142 private: |
139 explicit FrameHost(Page&); | 143 explicit FrameHost(Page&); |
140 | 144 |
141 const Member<Page> m_page; | 145 const Member<Page> m_page; |
142 const Member<RootScroller> m_rootScroller; | 146 const Member<RootScroller> m_rootScroller; |
143 const Member<TopControls> m_topControls; | 147 const Member<TopControls> m_topControls; |
144 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; | 148 const OwnPtr<PageScaleConstraintsSet> m_pageScaleConstraintsSet; |
145 const Member<VisualViewport> m_visualViewport; | 149 const Member<VisualViewport> m_visualViewport; |
146 const Member<OverscrollController> m_overscrollController; | 150 const Member<OverscrollController> m_overscrollController; |
147 const Member<EventHandlerRegistry> m_eventHandlerRegistry; | 151 const Member<EventHandlerRegistry> m_eventHandlerRegistry; |
148 const Member<ConsoleMessageStorage> m_consoleMessageStorage; | 152 const Member<ConsoleMessageStorage> m_consoleMessageStorage; |
| 153 const Member<CustomElementReactionStack> m_customElementReactionStack; |
149 | 154 |
150 AtomicString m_overrideEncoding; | 155 AtomicString m_overrideEncoding; |
151 int m_subframeCount; | 156 int m_subframeCount; |
152 }; | 157 }; |
153 | 158 |
154 } // namespace blink | 159 } // namespace blink |
155 | 160 |
156 #endif // FrameHost_h | 161 #endif // FrameHost_h |
OLD | NEW |