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

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

Issue 2321073002: binding: Let indexed interceptor falls through to named interceptor. (Closed)
Patch Set: Updated global-interface-listing expectations. Created 4 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 /* 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 { 56 {
57 bool knownProperty = deleteItem(name); 57 bool knownProperty = deleteItem(name);
58 return knownProperty ? DeleteSuccess : DeleteUnknownProperty; 58 return knownProperty ? DeleteSuccess : DeleteUnknownProperty;
59 } 59 }
60 void namedPropertyEnumerator(Vector<String>& names, ExceptionState&) 60 void namedPropertyEnumerator(Vector<String>& names, ExceptionState&)
61 { 61 {
62 getNames(names); 62 getNames(names);
63 } 63 }
64 bool namedPropertyQuery(const AtomicString&, ExceptionState&); 64 bool namedPropertyQuery(const AtomicString&, ExceptionState&);
65 65
66 String anonymousIndexedGetter(uint32_t index)
67 {
68 return item(String::number(index));
69 }
70 bool anonymousIndexedSetter(uint32_t index, const String& value, ExceptionSt ate& exceptionState)
71 {
72 return anonymousNamedSetter(String::number(index), value, exceptionState );
73 }
74 DeleteResult anonymousIndexedDeleter(uint32_t index)
75 {
76 return anonymousNamedDeleter(AtomicString::number(index));
77 }
78
79 virtual Element* element() = 0; 66 virtual Element* element() = 0;
80 67
81 DEFINE_INLINE_VIRTUAL_TRACE() { } 68 DEFINE_INLINE_VIRTUAL_TRACE() { }
82 69
83 protected: 70 protected:
84 DOMStringMap() { } 71 DOMStringMap() { }
85 }; 72 };
86 73
87 } // namespace blink 74 } // namespace blink
88 75
89 #endif // DOMStringMap_h 76 #endif // DOMStringMap_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698