| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 Node* assertNode(ErrorString*, int nodeId); | 210 Node* assertNode(ErrorString*, int nodeId); |
| 211 Element* assertElement(ErrorString*, int nodeId); | 211 Element* assertElement(ErrorString*, int nodeId); |
| 212 Document* assertDocument(ErrorString*, int nodeId); | 212 Document* assertDocument(ErrorString*, int nodeId); |
| 213 | 213 |
| 214 private: | 214 private: |
| 215 enum SearchMode { NotSearching, SearchingForNormal, SearchingForUAShadow }; | 215 enum SearchMode { NotSearching, SearchingForNormal, SearchingForUAShadow }; |
| 216 | 216 |
| 217 InspectorDOMAgent(InspectorPageAgent*, InjectedScriptManager*, InspectorOver
lay*); | 217 InspectorDOMAgent(InspectorPageAgent*, InjectedScriptManager*, InspectorOver
lay*); |
| 218 | 218 |
| 219 void innerEnable(); | 219 void innerEnable(); |
| 220 void notifyDocumentUpdated(); | |
| 221 | 220 |
| 222 void setSearchingForNode(ErrorString*, SearchMode, JSONObject* highlightConf
ig); | 221 void setSearchingForNode(ErrorString*, SearchMode, JSONObject* highlightConf
ig); |
| 223 PassOwnPtr<HighlightConfig> highlightConfigFromInspectorObject(ErrorString*,
JSONObject* highlightInspectorObject); | 222 PassOwnPtr<HighlightConfig> highlightConfigFromInspectorObject(ErrorString*,
JSONObject* highlightInspectorObject); |
| 224 | 223 |
| 225 // Node-related methods. | 224 // Node-related methods. |
| 226 typedef WillBeHeapHashMap<RefPtrWillBeMember<Node>, int> NodeToIdMap; | 225 typedef WillBeHeapHashMap<RefPtrWillBeMember<Node>, int> NodeToIdMap; |
| 227 int bind(Node*, NodeToIdMap*); | 226 int bind(Node*, NodeToIdMap*); |
| 228 void unbind(Node*, NodeToIdMap*); | 227 void unbind(Node*, NodeToIdMap*); |
| 229 | 228 |
| 230 Node* assertEditableNode(ErrorString*, int nodeId); | 229 Node* assertEditableNode(ErrorString*, int nodeId); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 OwnPtrWillBeMember<InspectorHistory> m_history; | 273 OwnPtrWillBeMember<InspectorHistory> m_history; |
| 275 OwnPtrWillBeMember<DOMEditor> m_domEditor; | 274 OwnPtrWillBeMember<DOMEditor> m_domEditor; |
| 276 bool m_suppressAttributeModifiedEvent; | 275 bool m_suppressAttributeModifiedEvent; |
| 277 RawPtrWillBeMember<Listener> m_listener; | 276 RawPtrWillBeMember<Listener> m_listener; |
| 278 }; | 277 }; |
| 279 | 278 |
| 280 | 279 |
| 281 } // namespace blink | 280 } // namespace blink |
| 282 | 281 |
| 283 #endif // !defined(InspectorDOMAgent_h) | 282 #endif // !defined(InspectorDOMAgent_h) |
| OLD | NEW |