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

Side by Side Diff: Source/core/inspector/LayoutEditor.h

Issue 1310923003: Devtools [LayoutEditor]: Patch values in the selected rule (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@medias
Patch Set: Address comments Created 5 years, 3 months 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LayoutEditor_h 5 #ifndef LayoutEditor_h
6 #define LayoutEditor_h 6 #define LayoutEditor_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 String currentSelectorInfo(); 43 String currentSelectorInfo();
44 44
45 DECLARE_TRACE(); 45 DECLARE_TRACE();
46 46
47 private: 47 private:
48 LayoutEditor(InspectorCSSAgent*, InspectorDOMAgent*); 48 LayoutEditor(InspectorCSSAgent*, InspectorDOMAgent*);
49 RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) con st; 49 RefPtrWillBeRawPtr<CSSPrimitiveValue> getPropertyCSSValue(CSSPropertyID) con st;
50 PassRefPtr<JSONObject> createValueDescription(const String&) const; 50 PassRefPtr<JSONObject> createValueDescription(const String&) const;
51 void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPo int&, const FloatPoint&) const; 51 void appendAnchorFor(JSONArray*, const String&, const String&, const FloatPo int&, const FloatPoint&) const;
52 void initializeCSSRules(); 52 void initializeCSSRules();
53 bool setCSSPropertyValueInCurrentRule(const String&);
53 54
54 RefPtrWillBeMember<Element> m_element; 55 RefPtrWillBeMember<Element> m_element;
55 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; 56 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent;
56 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 57 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
57 CSSPropertyID m_changingProperty; 58 CSSPropertyID m_changingProperty;
58 float m_propertyInitialValue; 59 float m_propertyInitialValue;
59 float m_factor; 60 float m_factor;
60 CSSPrimitiveValue::UnitType m_valueUnitType; 61 CSSPrimitiveValue::UnitType m_valueUnitType;
61 bool m_isDirty; 62 bool m_isDirty;
62 63
63 WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules; 64 WillBeHeapVector<RefPtrWillBeMember<CSSStyleRule>> m_matchedRules;
64 HashMap<int, String> m_cachedSelectorsInfo; 65 HashMap<int, String> m_cachedSelectorsInfo;
65 // -1 means "inline style". 66 // -1 means "inline style".
66 int m_currentRuleIndex; 67 int m_currentRuleIndex;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 72
72 #endif // !defined(LayoutEditor_h) 73 #endif // !defined(LayoutEditor_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698