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

Unified Diff: Source/core/css/CSSVariablesIterator.h

Issue 21006006: Add forEach() to CSSVariablesMap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and review changes Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.h ('k') | Source/core/css/CSSVariablesMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSVariablesIterator.h
diff --git a/Source/modules/quota/StorageQuotaCallback.h b/Source/core/css/CSSVariablesIterator.h
similarity index 73%
copy from Source/modules/quota/StorageQuotaCallback.h
copy to Source/core/css/CSSVariablesIterator.h
index d281f4965552fc182b255a23931913f3b5a3d6b4..edfe3a7e9ed35eab3b31e92f0cdc22d259750eba 100644
--- a/Source/modules/quota/StorageQuotaCallback.h
+++ b/Source/core/css/CSSVariablesIterator.h
@@ -11,9 +11,6 @@
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
- * * Neither the name of Google Inc. nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
@@ -28,19 +25,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef StorageQuotaCallback_h
-#define StorageQuotaCallback_h
+#ifndef CSSVariablesIterator_h
+#define CSSVariablesIterator_h
#include "wtf/RefCounted.h"
namespace WebCore {
-class StorageQuotaCallback : public RefCounted<StorageQuotaCallback> {
+class CSSVariablesIterator : public RefCounted<CSSVariablesIterator> {
public:
- virtual ~StorageQuotaCallback() { }
- virtual bool handleEvent(unsigned long long grantedQuotaInBytes) = 0;
+ virtual ~CSSVariablesIterator() { }
+ virtual void advance() = 0;
+ virtual bool atEnd() const = 0;
+ virtual AtomicString name() const = 0;
+ virtual String value() const = 0;
+ virtual void addedVariable(const AtomicString& name) { }
+ virtual void removedVariable(const AtomicString& name) { }
+ virtual void clearedVariables() { }
};
-} // namespace
+}
-#endif // StorageQuotaCallback_h
+#endif // CSSVariablesIterator_h
« no previous file with comments | « Source/core/css/CSSStyleDeclaration.h ('k') | Source/core/css/CSSVariablesMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698