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

Side by Side Diff: Source/bindings/v8/CustomElementHelpers.h

Issue 14083009: Remove ENABLE_CUSTOM_ELEMENTS compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing. Created 7 years, 8 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
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/CustomElementHelpers.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "bindings/v8/V8DOMWrapper.h" 38 #include "bindings/v8/V8DOMWrapper.h"
39 #include "core/dom/CustomElementConstructor.h" 39 #include "core/dom/CustomElementConstructor.h"
40 #include "core/dom/CustomElementRegistry.h" 40 #include "core/dom/CustomElementRegistry.h"
41 #include "core/dom/Document.h" 41 #include "core/dom/Document.h"
42 #include "core/dom/ExceptionCode.h" 42 #include "core/dom/ExceptionCode.h"
43 #include "wtf/Forward.h" 43 #include "wtf/Forward.h"
44 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
45 45
46 namespace WebCore { 46 namespace WebCore {
47 47
48 #if ENABLE(CUSTOM_ELEMENTS)
49
50 class CustomElementConstructor; 48 class CustomElementConstructor;
51 class CustomElementInvocation; 49 class CustomElementInvocation;
52 class Element; 50 class Element;
53 class QualifiedName; 51 class QualifiedName;
54 class ScriptState; 52 class ScriptState;
55 53
56 class CustomElementHelpers { 54 class CustomElementHelpers {
57 public: 55 public:
58 static bool initializeConstructorWrapper(CustomElementConstructor*, const Sc riptValue& prototype, ScriptState*); 56 static bool initializeConstructorWrapper(CustomElementConstructor*, const Sc riptValue& prototype, ScriptState*);
59 static bool isValidPrototypeParameter(const ScriptValue&, ScriptState*, Atom icString& namespaceURI); 57 static bool isValidPrototypeParameter(const ScriptValue&, ScriptState*, Atom icString& namespaceURI);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return registry->findFor(element); 91 return registry->findFor(element);
94 return 0; 92 return 0;
95 } 93 }
96 94
97 inline bool CustomElementHelpers::isValidPrototypeParameter(const ScriptValue& v alue, ScriptState* state) 95 inline bool CustomElementHelpers::isValidPrototypeParameter(const ScriptValue& v alue, ScriptState* state)
98 { 96 {
99 AtomicString namespaceURI; 97 AtomicString namespaceURI;
100 return isValidPrototypeParameter(value, state, namespaceURI); 98 return isValidPrototypeParameter(value, state, namespaceURI);
101 } 99 }
102 100
103 #endif // ENABLE(CUSTOM_ELEMENTS)
104
105 } // namespace WebCore 101 } // namespace WebCore
106 102
107 #endif // CustomElementHelpers_h 103 #endif // CustomElementHelpers_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/CustomElementHelpers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698