Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: WebCore/inspector/InspectorCSSAgent.h

Issue 5446003: Merge 72938 - 2010-11-30 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/inspector/Inspector.idl ('k') | WebCore/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « WebCore/inspector/Inspector.idl ('k') | WebCore/inspector/InspectorCSSAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698