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

Unified Diff: third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h

Issue 1582963004: Add outline files for StylePropertyMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update global-interface-listing-expected.html too Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
diff --git a/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
new file mode 100644
index 0000000000000000000000000000000000000000..79b873e652ccef8d387c9945d0ac27037f07bc1b
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/cssom/StylePropertyMap.h
@@ -0,0 +1,53 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef StylePropertyMap_h
+#define StylePropertyMap_h
+
+#include "bindings/core/v8/Iterable.h"
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "bindings/core/v8/UnionTypesCore.h"
+#include "core/CSSPropertyNames.h"
+#include "core/CoreExport.h"
+#include "core/css/cssom/StyleValue.h"
+
+namespace blink {
+
+class ExceptionState;
+
+class CORE_EXPORT StylePropertyMap : public GarbageCollectedFinalized<StylePropertyMap>, public ScriptWrappable, public PairIterable<String, StyleValueOrStyleValueSequence> {
+ WTF_MAKE_NONCOPYABLE(StylePropertyMap);
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ virtual ~StylePropertyMap() { }
+
+ // Accessors.
+ StyleValue* get(const String& propertyName);
+ HeapVector<Member<StyleValue>> getAll(const String& propertyName);
+ bool has(const String& propertyName);
+
+ virtual StyleValue* get(CSSPropertyID) = 0;
+ virtual HeapVector<Member<StyleValue>> getAll(CSSPropertyID) = 0;
+ virtual bool has(CSSPropertyID) = 0;
+
+ virtual Vector<String> getProperties() = 0;
+
+ // Modifiers.
+ void set(const String& propertyName, StyleValueOrStyleValueSequenceOrString& item, ExceptionState&);
+ void append(const String& propertyName, StyleValueOrStyleValueSequenceOrString& item, ExceptionState&);
+ void remove(const String& propertyName, ExceptionState&);
+
+ virtual void set(CSSPropertyID, StyleValueOrStyleValueSequenceOrString& item, ExceptionState&) = 0;
+ virtual void append(CSSPropertyID, StyleValueOrStyleValueSequenceOrString& item, ExceptionState&) = 0;
+ virtual void remove(CSSPropertyID, ExceptionState&) = 0;
+
+ DEFINE_INLINE_VIRTUAL_TRACE() { }
+
+protected:
+ StylePropertyMap() { }
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698