OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google 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 26 matching lines...) Expand all Loading... |
37 #include "core/platform/JSONValues.h" | 37 #include "core/platform/JSONValues.h" |
38 #include "core/rendering/RenderLayer.h" | 38 #include "core/rendering/RenderLayer.h" |
39 | 39 |
40 #include "wtf/HashMap.h" | 40 #include "wtf/HashMap.h" |
41 #include "wtf/HashSet.h" | 41 #include "wtf/HashSet.h" |
42 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" |
43 #include "wtf/PassOwnPtr.h" | 43 #include "wtf/PassOwnPtr.h" |
44 #include "wtf/RefPtr.h" | 44 #include "wtf/RefPtr.h" |
45 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
46 #include "wtf/text/AtomicString.h" | 46 #include "wtf/text/AtomicString.h" |
| 47 #include "wtf/text/StringBuilder.h" |
47 | 48 |
48 namespace WebCore { | 49 namespace WebCore { |
49 | 50 |
50 class CharacterData; | 51 class CharacterData; |
51 class DOMEditor; | 52 class DOMEditor; |
52 class Document; | 53 class Document; |
53 class Element; | 54 class Element; |
54 class ExceptionState; | 55 class ExceptionState; |
55 class InspectorClient; | 56 class InspectorClient; |
56 class InspectorFrontend; | 57 class InspectorFrontend; |
57 class InspectorHistory; | 58 class InspectorHistory; |
58 class InspectorOverlay; | 59 class InspectorOverlay; |
59 class InspectorPageAgent; | 60 class InspectorPageAgent; |
60 class InspectorState; | 61 class InspectorState; |
61 class InstrumentingAgents; | 62 class InstrumentingAgents; |
62 class Node; | 63 class Node; |
63 class PlatformGestureEvent; | 64 class PlatformGestureEvent; |
64 class PlatformTouchEvent; | 65 class PlatformTouchEvent; |
65 class RevalidateStyleAttributeTask; | 66 class RevalidateStyleAttributeTask; |
| 67 class RenderText; |
66 class ShadowRoot; | 68 class ShadowRoot; |
67 | 69 |
68 struct HighlightConfig; | 70 struct HighlightConfig; |
69 | 71 |
70 typedef String ErrorString; | 72 typedef String ErrorString; |
71 typedef int BackendNodeId; | 73 typedef int BackendNodeId; |
72 | 74 |
73 | 75 |
74 struct EventListenerInfo { | 76 struct EventListenerInfo { |
75 EventListenerInfo(Node* node, const AtomicString& eventType, const EventList
enerVector& eventListenerVector) | 77 EventListenerInfo(Node* node, const AtomicString& eventType, const EventList
enerVector& eventListenerVector) |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const bool* i
nspectShadowDOM, const RefPtr<JSONObject>* highlightConfig); | 136 virtual void setInspectModeEnabled(ErrorString*, bool enabled, const bool* i
nspectShadowDOM, const RefPtr<JSONObject>* highlightConfig); |
135 virtual void requestNode(ErrorString*, const String& objectId, int* nodeId); | 137 virtual void requestNode(ErrorString*, const String& objectId, int* nodeId); |
136 virtual void pushNodeByPathToFrontend(ErrorString*, const String& path, int*
nodeId); | 138 virtual void pushNodeByPathToFrontend(ErrorString*, const String& path, int*
nodeId); |
137 virtual void pushNodeByBackendIdToFrontend(ErrorString*, BackendNodeId, int*
nodeId); | 139 virtual void pushNodeByBackendIdToFrontend(ErrorString*, BackendNodeId, int*
nodeId); |
138 virtual void releaseBackendNodeIds(ErrorString*, const String& nodeGroup); | 140 virtual void releaseBackendNodeIds(ErrorString*, const String& nodeGroup); |
139 virtual void hideHighlight(ErrorString*); | 141 virtual void hideHighlight(ErrorString*); |
140 virtual void highlightRect(ErrorString*, int x, int y, int width, int height
, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); | 142 virtual void highlightRect(ErrorString*, int x, int y, int width, int height
, const RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); |
141 virtual void highlightQuad(ErrorString*, const RefPtr<JSONArray>& quad, cons
t RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); | 143 virtual void highlightQuad(ErrorString*, const RefPtr<JSONArray>& quad, cons
t RefPtr<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); |
142 virtual void highlightNode(ErrorString*, const RefPtr<JSONObject>& highlight
Config, const int* nodeId, const String* objectId); | 144 virtual void highlightNode(ErrorString*, const RefPtr<JSONObject>& highlight
Config, const int* nodeId, const String* objectId); |
143 virtual void highlightFrame(ErrorString*, const String& frameId, const RefPt
r<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); | 145 virtual void highlightFrame(ErrorString*, const String& frameId, const RefPt
r<JSONObject>* color, const RefPtr<JSONObject>* outlineColor); |
| 146 virtual void getPlatformFontsForNode(WebCore::ErrorString*, int, WTF::RefPtr
<WebCore::TypeBuilder::Array<WebCore::TypeBuilder::DOM::TextNodePlatformFonts> >
&); |
144 | 147 |
145 virtual void moveTo(ErrorString*, int nodeId, int targetNodeId, const int* a
nchorNodeId, int* newNodeId); | 148 virtual void moveTo(ErrorString*, int nodeId, int targetNodeId, const int* a
nchorNodeId, int* newNodeId); |
146 virtual void undo(ErrorString*); | 149 virtual void undo(ErrorString*); |
147 virtual void redo(ErrorString*); | 150 virtual void redo(ErrorString*); |
148 virtual void markUndoableState(ErrorString*); | 151 virtual void markUndoableState(ErrorString*); |
149 virtual void focus(ErrorString*, int nodeId); | 152 virtual void focus(ErrorString*, int nodeId); |
150 virtual void setFileInputFiles(ErrorString*, int nodeId, const RefPtr<JSONAr
ray>& files); | 153 virtual void setFileInputFiles(ErrorString*, int nodeId, const RefPtr<JSONAr
ray>& files); |
151 | 154 |
152 static void getEventListeners(Node*, Vector<EventListenerInfo>& listenersArr
ay, bool includeAncestors); | 155 static void getEventListeners(Node*, Vector<EventListenerInfo>& listenersArr
ay, bool includeAncestors); |
153 | 156 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 void updateSubtreeBreakpoints(Node* root, uint32_t rootMask, bool value); | 231 void updateSubtreeBreakpoints(Node* root, uint32_t rootMask, bool value); |
229 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, PassRefPtr<JSONObject> description); | 232 void descriptionForDOMEvent(Node* target, int breakpointType, bool insertion
, PassRefPtr<JSONObject> description); |
230 | 233 |
231 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node
ToIdMap*); | 234 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node
ToIdMap*); |
232 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme
nt*); | 235 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme
nt*); |
233 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain
erChildren(Node* container, int depth, NodeToIdMap* nodesMap); | 236 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain
erChildren(Node* container, int depth, NodeToIdMap* nodesMap); |
234 PassRefPtr<TypeBuilder::DOM::EventListener> buildObjectForEventListener(cons
t RegisteredEventListener&, const AtomicString& eventType, Node*, const String*
objectGroupId); | 237 PassRefPtr<TypeBuilder::DOM::EventListener> buildObjectForEventListener(cons
t RegisteredEventListener&, const AtomicString& eventType, Node*, const String*
objectGroupId); |
235 | 238 |
236 Node* nodeForPath(const String& path); | 239 Node* nodeForPath(const String& path); |
237 | 240 |
| 241 String familyNameFromSimpleFontData(const SimpleFontData*); |
| 242 void platformFontsForRenderer(RenderText*, StringBuilder&, RefPtr<TypeBuilde
r::Array<String> >&); |
| 243 |
238 void discardBackendBindings(); | 244 void discardBackendBindings(); |
239 void discardFrontendBindings(); | 245 void discardFrontendBindings(); |
240 | 246 |
241 void innerHighlightQuad(PassOwnPtr<FloatQuad>, const RefPtr<JSONObject>* col
or, const RefPtr<JSONObject>* outlineColor); | 247 void innerHighlightQuad(PassOwnPtr<FloatQuad>, const RefPtr<JSONObject>* col
or, const RefPtr<JSONObject>* outlineColor); |
242 | 248 |
243 InspectorPageAgent* m_pageAgent; | 249 InspectorPageAgent* m_pageAgent; |
244 InjectedScriptManager* m_injectedScriptManager; | 250 InjectedScriptManager* m_injectedScriptManager; |
245 InspectorOverlay* m_overlay; | 251 InspectorOverlay* m_overlay; |
246 InspectorClient* m_client; | 252 InspectorClient* m_client; |
247 InspectorFrontend::DOM* m_frontend; | 253 InspectorFrontend::DOM* m_frontend; |
(...skipping 17 matching lines...) Expand all Loading... |
265 OwnPtr<HighlightConfig> m_inspectModeHighlightConfig; | 271 OwnPtr<HighlightConfig> m_inspectModeHighlightConfig; |
266 OwnPtr<InspectorHistory> m_history; | 272 OwnPtr<InspectorHistory> m_history; |
267 OwnPtr<DOMEditor> m_domEditor; | 273 OwnPtr<DOMEditor> m_domEditor; |
268 bool m_suppressAttributeModifiedEvent; | 274 bool m_suppressAttributeModifiedEvent; |
269 }; | 275 }; |
270 | 276 |
271 | 277 |
272 } // namespace WebCore | 278 } // namespace WebCore |
273 | 279 |
274 #endif // !defined(InspectorDOMAgent_h) | 280 #endif // !defined(InspectorDOMAgent_h) |
OLD | NEW |