OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 void setDOMAgent(InspectorDOMAgent* domAgent); | 60 void setDOMAgent(InspectorDOMAgent* domAgent); |
61 | 61 |
62 void reset(); | 62 void reset(); |
63 void getStylesForNode2(long nodeId, RefPtr<InspectorValue>* result); | 63 void getStylesForNode2(long nodeId, RefPtr<InspectorValue>* result); |
64 void getInlineStyleForNode2(long nodeId, RefPtr<InspectorValue>* style); | 64 void getInlineStyleForNode2(long nodeId, RefPtr<InspectorValue>* style); |
65 void getComputedStyleForNode2(long nodeId, RefPtr<InspectorValue>* style); | 65 void getComputedStyleForNode2(long nodeId, RefPtr<InspectorValue>* style); |
66 void getAllStyles2(RefPtr<InspectorArray>* styles); | 66 void getAllStyles2(RefPtr<InspectorArray>* styles); |
67 void getStyleSheet2(const String& styleSheetId, RefPtr<InspectorValue>* resu
lt); | 67 void getStyleSheet2(const String& styleSheetId, RefPtr<InspectorValue>* resu
lt); |
68 void getStyleSheetText2(const String& styleSheetId, String* url, String* res
ult); | 68 void getStyleSheetText2(const String& styleSheetId, String* url, String* res
ult); |
69 void setStyleSheetText2(const String& styleSheetId, const String& text); | 69 void setStyleSheetText2(const String& styleSheetId, const String& text, bool
* success); |
70 void setPropertyText2(const RefPtr<InspectorObject>& styleId, long propertyI
ndex, const String& text, bool overwrite, RefPtr<InspectorValue>* result); | 70 void setPropertyText2(const RefPtr<InspectorObject>& styleId, long propertyI
ndex, const String& text, bool overwrite, RefPtr<InspectorValue>* result); |
71 void toggleProperty2(const RefPtr<InspectorObject>& styleId, long propertyIn
dex, bool disable, RefPtr<InspectorValue>* result); | 71 void toggleProperty2(const RefPtr<InspectorObject>& styleId, long propertyIn
dex, bool disable, RefPtr<InspectorValue>* result); |
72 void setRuleSelector2(const RefPtr<InspectorObject>& ruleId, const String& s
elector, RefPtr<InspectorValue>* result); | 72 void setRuleSelector2(const RefPtr<InspectorObject>& ruleId, const String& s
elector, RefPtr<InspectorValue>* result); |
73 void addRule2(const long contextNodeId, const String& selector, RefPtr<Inspe
ctorValue>* result); | 73 void addRule2(const long contextNodeId, const String& selector, RefPtr<Inspe
ctorValue>* result); |
74 void getSupportedCSSProperties(RefPtr<InspectorArray>* result); | 74 void getSupportedCSSProperties(RefPtr<InspectorArray>* result); |
75 void querySelectorAll(const long nodeId, const String& selector, RefPtr<Insp
ectorArray>* result); | 75 void querySelectorAll(const long nodeId, const String& selector, RefPtr<Insp
ectorArray>* result); |
76 | 76 |
77 private: | 77 private: |
78 typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleShee
t; | 78 typedef HashMap<String, RefPtr<InspectorStyleSheet> > IdToInspectorStyleShee
t; |
79 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetT
oInspectorStyleSheet; | 79 typedef HashMap<CSSStyleSheet*, RefPtr<InspectorStyleSheet> > CSSStyleSheetT
oInspectorStyleSheet; |
(...skipping 27 matching lines...) Expand all Loading... |
107 long m_lastStyleSheetId; | 107 long m_lastStyleSheetId; |
108 long m_lastRuleId; | 108 long m_lastRuleId; |
109 long m_lastStyleId; | 109 long m_lastStyleId; |
110 }; | 110 }; |
111 | 111 |
112 #endif | 112 #endif |
113 | 113 |
114 } // namespace WebCore | 114 } // namespace WebCore |
115 | 115 |
116 #endif // !defined(InspectorCSSAgent_h) | 116 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |