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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 void didInvalidateStyleAttr(Node*); | 180 void didInvalidateStyleAttr(Node*); |
181 void didPushShadowRoot(Element* host, ShadowRoot*); | 181 void didPushShadowRoot(Element* host, ShadowRoot*); |
182 void willPopShadowRoot(Element* host, ShadowRoot*); | 182 void willPopShadowRoot(Element* host, ShadowRoot*); |
183 void frameDocumentUpdated(LocalFrame*); | 183 void frameDocumentUpdated(LocalFrame*); |
184 void pseudoElementCreated(PseudoElement*); | 184 void pseudoElementCreated(PseudoElement*); |
185 void pseudoElementDestroyed(PseudoElement*); | 185 void pseudoElementDestroyed(PseudoElement*); |
186 | 186 |
187 Node* nodeForId(int nodeId); | 187 Node* nodeForId(int nodeId); |
188 int boundNodeId(Node*); | 188 int boundNodeId(Node*); |
189 void setDOMListener(DOMListener*); | 189 void setDOMListener(DOMListener*); |
190 int pushNodePathToFrontend(Node*); | |
vsevik
2014/11/05 09:48:37
You shouldn't do this.
Pushing node to front-end i
samli
2014/11/10 23:59:31
I've updated as suggested to use a similar behavio
| |
190 | 191 |
191 static String documentURLString(Document*); | 192 static String documentURLString(Document*); |
192 | 193 |
193 PassRefPtr<TypeBuilder::Runtime::RemoteObject> resolveNode(Node*, const Stri ng& objectGroup); | 194 PassRefPtr<TypeBuilder::Runtime::RemoteObject> resolveNode(Node*, const Stri ng& objectGroup); |
194 bool handleMousePress(); | 195 bool handleMousePress(); |
195 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); | 196 bool handleGestureEvent(LocalFrame*, const PlatformGestureEvent&); |
196 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); | 197 bool handleTouchEvent(LocalFrame*, const PlatformTouchEvent&); |
197 bool handleMouseMove(LocalFrame*, const PlatformMouseEvent&); | 198 bool handleMouseMove(LocalFrame*, const PlatformMouseEvent&); |
198 | 199 |
199 InspectorHistory* history() { return m_history.get(); } | 200 InspectorHistory* history() { return m_history.get(); } |
(...skipping 25 matching lines...) Expand all Loading... | |
225 typedef WillBeHeapHashMap<RefPtrWillBeMember<Node>, int> NodeToIdMap; | 226 typedef WillBeHeapHashMap<RefPtrWillBeMember<Node>, int> NodeToIdMap; |
226 int bind(Node*, NodeToIdMap*); | 227 int bind(Node*, NodeToIdMap*); |
227 void unbind(Node*, NodeToIdMap*); | 228 void unbind(Node*, NodeToIdMap*); |
228 | 229 |
229 Node* assertEditableNode(ErrorString*, int nodeId); | 230 Node* assertEditableNode(ErrorString*, int nodeId); |
230 Node* assertEditableChildNode(ErrorString*, Element* parentElement, int node Id); | 231 Node* assertEditableChildNode(ErrorString*, Element* parentElement, int node Id); |
231 Element* assertEditableElement(ErrorString*, int nodeId); | 232 Element* assertEditableElement(ErrorString*, int nodeId); |
232 | 233 |
233 void inspect(Node*); | 234 void inspect(Node*); |
234 | 235 |
235 int pushNodePathToFrontend(Node*); | |
236 void pushChildNodesToFrontend(int nodeId, int depth = 1); | 236 void pushChildNodesToFrontend(int nodeId, int depth = 1); |
237 | 237 |
238 void invalidateFrameOwnerElement(LocalFrame*); | 238 void invalidateFrameOwnerElement(LocalFrame*); |
239 | 239 |
240 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node ToIdMap*); | 240 PassRefPtr<TypeBuilder::DOM::Node> buildObjectForNode(Node*, int depth, Node ToIdMap*); |
241 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme nt*); | 241 PassRefPtr<TypeBuilder::Array<String> > buildArrayForElementAttributes(Eleme nt*); |
242 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain erChildren(Node* container, int depth, NodeToIdMap* nodesMap); | 242 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForContain erChildren(Node* container, int depth, NodeToIdMap* nodesMap); |
243 PassRefPtr<TypeBuilder::DOM::EventListener> buildObjectForEventListener(cons t RegisteredEventListener&, const AtomicString& eventType, Node*, const String* objectGroupId); | 243 PassRefPtr<TypeBuilder::DOM::EventListener> buildObjectForEventListener(cons t RegisteredEventListener&, const AtomicString& eventType, Node*, const String* objectGroupId); |
244 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForPseudoE lements(Element*, NodeToIdMap* nodesMap); | 244 PassRefPtr<TypeBuilder::Array<TypeBuilder::DOM::Node> > buildArrayForPseudoE lements(Element*, NodeToIdMap* nodesMap); |
245 | 245 |
(...skipping 27 matching lines...) Expand all Loading... | |
273 OwnPtrWillBeMember<InspectorHistory> m_history; | 273 OwnPtrWillBeMember<InspectorHistory> m_history; |
274 OwnPtrWillBeMember<DOMEditor> m_domEditor; | 274 OwnPtrWillBeMember<DOMEditor> m_domEditor; |
275 bool m_suppressAttributeModifiedEvent; | 275 bool m_suppressAttributeModifiedEvent; |
276 RawPtrWillBeMember<Listener> m_listener; | 276 RawPtrWillBeMember<Listener> m_listener; |
277 }; | 277 }; |
278 | 278 |
279 | 279 |
280 } // namespace blink | 280 } // namespace blink |
281 | 281 |
282 #endif // !defined(InspectorDOMAgent_h) | 282 #endif // !defined(InspectorDOMAgent_h) |
OLD | NEW |