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

Side by Side Diff: Source/core/dom/DOMStringMap.h

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 6 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 /* 1 /*
2 * Copyright (C) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual ~DOMStringMap(); 42 virtual ~DOMStringMap();
43 43
44 virtual void ref() = 0; 44 virtual void ref() = 0;
45 virtual void deref() = 0; 45 virtual void deref() = 0;
46 46
47 virtual void getNames(Vector<String>&) = 0; 47 virtual void getNames(Vector<String>&) = 0;
48 virtual String item(const String& name) = 0; 48 virtual String item(const String& name) = 0;
49 virtual bool contains(const String& name) = 0; 49 virtual bool contains(const String& name) = 0;
50 virtual void setItem(const String& name, const String& value, ExceptionCode& ) = 0; 50 virtual void setItem(const String& name, const String& value, ExceptionCode& ) = 0;
51 virtual void deleteItem(const String& name, ExceptionCode&) = 0; 51 virtual void deleteItem(const String& name, ExceptionCode&) = 0;
52 bool anonymousNamedSetter(const String& name, const String& value, Exception Code& ec) 52 bool anonymousNamedSetter(const String& name, const String& value, bool isVa lueNull, bool isValueUndefined, ExceptionCode& ec)
53 { 53 {
54 setItem(name, value, ec); 54 setItem(name, value, ec);
55 return true; 55 return true;
56 } 56 }
57 57
58 virtual Element* element() = 0; 58 virtual Element* element() = 0;
59 59
60 protected: 60 protected:
61 DOMStringMap() 61 DOMStringMap()
62 { 62 {
63 ScriptWrappable::init(this); 63 ScriptWrappable::init(this);
64 } 64 }
65 }; 65 };
66 66
67 } // namespace WebCore 67 } // namespace WebCore
68 68
69 #endif // DOMStringMap_h 69 #endif // DOMStringMap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698