OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 13 matching lines...) Expand all Loading... |
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
25 */ | 25 */ |
26 | 26 |
27 #ifndef Internals_h | 27 #ifndef Internals_h |
28 #define Internals_h | 28 #define Internals_h |
29 | 29 |
30 #include "core/css/CSSComputedStyleDeclaration.h" | 30 #include "core/css/CSSComputedStyleDeclaration.h" |
31 #include "core/dom/ContextLifecycleObserver.h" | 31 #include "core/dom/ContextLifecycleObserver.h" |
32 #include "core/dom/ExceptionCodePlaceholder.h" | 32 #include "core/dom/ExceptionCodePlaceholder.h" |
33 #include "core/dom/NodeList.h" | 33 #include "core/dom/NodeList.h" |
| 34 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 35 #include "core/rendering/RenderObject.h" |
34 #include <wtf/ArrayBuffer.h> | 36 #include <wtf/ArrayBuffer.h> |
35 #include <wtf/PassRefPtr.h> | 37 #include <wtf/PassRefPtr.h> |
36 #include <wtf/RefCounted.h> | 38 #include <wtf/RefCounted.h> |
37 #include <wtf/text/WTFString.h> | 39 #include <wtf/text/WTFString.h> |
38 | 40 |
39 namespace WebCore { | 41 namespace WebCore { |
40 | 42 |
41 class ClientRect; | 43 class ClientRect; |
42 class ClientRectList; | 44 class ClientRectList; |
43 class DOMPoint; | 45 class DOMPoint; |
44 class DOMStringList; | 46 class DOMStringList; |
45 class DOMWindow; | 47 class DOMWindow; |
46 class Document; | 48 class Document; |
47 class DocumentMarker; | 49 class DocumentMarker; |
48 class Element; | 50 class Element; |
49 class Frame; | 51 class Frame; |
50 class InspectorFrontendChannelDummy; | 52 class InspectorFrontendChannelDummy; |
51 class InternalRuntimeFlags; | 53 class InternalRuntimeFlags; |
52 class InternalProfilers; | 54 class InternalProfilers; |
53 class InternalSettings; | 55 class InternalSettings; |
| 56 class LayerRectList; |
54 class Node; | 57 class Node; |
55 class Page; | 58 class Page; |
56 class PagePopupController; | 59 class PagePopupController; |
57 class Range; | 60 class Range; |
58 class ScriptExecutionContext; | 61 class ScriptExecutionContext; |
59 class ShadowRoot; | 62 class ShadowRoot; |
60 class MallocStatistics; | 63 class MallocStatistics; |
61 class SerializedScriptValue; | 64 class SerializedScriptValue; |
62 class TypeConversions; | 65 class TypeConversions; |
63 | 66 |
64 typedef int ExceptionCode; | 67 typedef int ExceptionCode; |
65 | 68 |
66 class Internals : public RefCounted<Internals>, public ContextLifecycleObserver
{ | 69 class Internals : public RefCounted<Internals> |
| 70 , public ContextLifecycleObserver |
| 71 , public ScrollingCoordinator::TouchEventTargetRectsObserver { |
67 public: | 72 public: |
68 static PassRefPtr<Internals> create(Document*); | 73 static PassRefPtr<Internals> create(Document*); |
69 virtual ~Internals(); | 74 virtual ~Internals(); |
70 | 75 |
71 static void resetToConsistentState(Page*); | 76 static void resetToConsistentState(Page*); |
72 | 77 |
73 String elementRenderTreeAsText(Element*, ExceptionCode&); | 78 String elementRenderTreeAsText(Element*, ExceptionCode&); |
74 | 79 |
75 String address(Node*); | 80 String address(Node*); |
76 | 81 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi
dth, long height, Document*, ExceptionCode&); | 173 PassRefPtr<ClientRect> bestZoomableAreaForTouchPoint(long x, long y, long wi
dth, long height, Document*, ExceptionCode&); |
169 | 174 |
170 int lastSpellCheckRequestSequence(Document*, ExceptionCode&); | 175 int lastSpellCheckRequestSequence(Document*, ExceptionCode&); |
171 int lastSpellCheckProcessedSequence(Document*, ExceptionCode&); | 176 int lastSpellCheckProcessedSequence(Document*, ExceptionCode&); |
172 | 177 |
173 Vector<String> userPreferredLanguages() const; | 178 Vector<String> userPreferredLanguages() const; |
174 void setUserPreferredLanguages(const Vector<String>&); | 179 void setUserPreferredLanguages(const Vector<String>&); |
175 | 180 |
176 unsigned wheelEventHandlerCount(Document*, ExceptionCode&); | 181 unsigned wheelEventHandlerCount(Document*, ExceptionCode&); |
177 unsigned touchEventHandlerCount(Document*, ExceptionCode&); | 182 unsigned touchEventHandlerCount(Document*, ExceptionCode&); |
178 PassRefPtr<ClientRectList> touchEventTargetClientRects(Document*, ExceptionC
ode&); | 183 PassRefPtr<LayerRectList> touchEventTargetLayerRects(Document*, ExceptionCod
e&); |
| 184 unsigned touchEventTargetLayerRectsUpdateCount(Document*, ExceptionCode&); |
| 185 virtual void touchEventTargetRectsChanged(const LayerHitTestRects&); |
179 | 186 |
180 // This is used to test rect based hit testing like what's done on touch scr
eens. | 187 // This is used to test rect based hit testing like what's done on touch scr
eens. |
181 PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadd
ing, unsigned rightPadding, | 188 PassRefPtr<NodeList> nodesFromRect(Document*, int x, int y, unsigned topPadd
ing, unsigned rightPadding, |
182 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool
allowShadowContent, bool allowChildFrameContent, ExceptionCode&) const; | 189 unsigned bottomPadding, unsigned leftPadding, bool ignoreClipping, bool
allowShadowContent, bool allowChildFrameContent, ExceptionCode&) const; |
183 | 190 |
184 void emitInspectorDidBeginFrame(); | 191 void emitInspectorDidBeginFrame(); |
185 void emitInspectorDidCancelFrame(); | 192 void emitInspectorDidCancelFrame(); |
186 | 193 |
187 bool hasSpellingMarker(Document*, int from, int length, ExceptionCode&); | 194 bool hasSpellingMarker(Document*, int from, int length, ExceptionCode&); |
188 bool hasGrammarMarker(Document*, int from, int length, ExceptionCode&); | 195 bool hasGrammarMarker(Document*, int from, int length, ExceptionCode&); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 private: | 294 private: |
288 explicit Internals(Document*); | 295 explicit Internals(Document*); |
289 Document* contextDocument() const; | 296 Document* contextDocument() const; |
290 Frame* frame() const; | 297 Frame* frame() const; |
291 Vector<String> iconURLs(Document*, int iconTypesMask) const; | 298 Vector<String> iconURLs(Document*, int iconTypesMask) const; |
292 | 299 |
293 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionCode&); | 300 DocumentMarker* markerAt(Node*, const String& markerType, unsigned index, Ex
ceptionCode&); |
294 RefPtr<DOMWindow> m_frontendWindow; | 301 RefPtr<DOMWindow> m_frontendWindow; |
295 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; | 302 OwnPtr<InspectorFrontendChannelDummy> m_frontendChannel; |
296 RefPtr<InternalRuntimeFlags> m_runtimeFlags; | 303 RefPtr<InternalRuntimeFlags> m_runtimeFlags; |
| 304 RefPtr<ScrollingCoordinator> m_scrollingCoordinator; |
| 305 int m_touchEventTargetRectUpdateCount; |
| 306 LayerHitTestRects m_currentTouchEventRects; |
297 RefPtr<InternalProfilers> m_profilers; | 307 RefPtr<InternalProfilers> m_profilers; |
298 }; | 308 }; |
299 | 309 |
300 } // namespace WebCore | 310 } // namespace WebCore |
301 | 311 |
302 #endif | 312 #endif |
OLD | NEW |