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

Unified Diff: sky/engine/core/dom/custom/custom_element_registry.h

Issue 946083003: Rename Sky's custom2 to custom (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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: sky/engine/core/dom/custom/custom_element_registry.h
diff --git a/sky/engine/core/dom/custom2/new_custom_element_registry.h b/sky/engine/core/dom/custom/custom_element_registry.h
similarity index 65%
rename from sky/engine/core/dom/custom2/new_custom_element_registry.h
rename to sky/engine/core/dom/custom/custom_element_registry.h
index b117e4a2ce9fee7b5eb8d43c174f72624aa796b8..c77c4c74c05652c4ec4deaf99d3b7ac9c5726a2a 100644
--- a/sky/engine/core/dom/custom2/new_custom_element_registry.h
+++ b/sky/engine/core/dom/custom/custom_element_registry.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SKY_ENGINE_CORE_DOM_CUSTOM2_NEW_CUSTOM_ELEMENT_REGISTRY_H_
-#define SKY_ENGINE_CORE_DOM_CUSTOM2_NEW_CUSTOM_ELEMENT_REGISTRY_H_
+#ifndef SKY_ENGINE_CORE_DOM_CUSTOM_NEW_CUSTOM_ELEMENT_REGISTRY_H_
+#define SKY_ENGINE_CORE_DOM_CUSTOM_NEW_CUSTOM_ELEMENT_REGISTRY_H_
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
@@ -19,13 +19,13 @@
namespace blink {
class Document;
-class NewCustomElementRegistry : public RefCounted<NewCustomElementRegistry> {
+class CustomElementRegistry : public RefCounted<CustomElementRegistry> {
public:
- static PassRefPtr<NewCustomElementRegistry> Create() {
- return adoptRef(new NewCustomElementRegistry());
+ static PassRefPtr<CustomElementRegistry> Create() {
+ return adoptRef(new CustomElementRegistry());
}
- ~NewCustomElementRegistry();
+ ~CustomElementRegistry();
void RegisterElement(const AtomicString& name, PassRefPtr<DartValue> type);
PassRefPtr<Element> CreateElement(Document& document, const AtomicString& name);
@@ -33,14 +33,14 @@ class NewCustomElementRegistry : public RefCounted<NewCustomElementRegistry> {
const base::WeakPtr<DartState>& dart_state() const { return dart_state_; }
private:
- NewCustomElementRegistry();
+ CustomElementRegistry();
base::WeakPtr<DartState> dart_state_;
HashMap<AtomicString, RefPtr<DartValue>> registrations_;
- DISALLOW_COPY_AND_ASSIGN(NewCustomElementRegistry);
+ DISALLOW_COPY_AND_ASSIGN(CustomElementRegistry);
};
} // namespace blink
-#endif // SKY_ENGINE_CORE_DOM_CUSTOM2_NEW_CUSTOM_ELEMENT_REGISTRY_H_
+#endif // SKY_ENGINE_CORE_DOM_CUSTOM_NEW_CUSTOM_ELEMENT_REGISTRY_H_
« no previous file with comments | « sky/engine/core/dom/custom/custom_element_callback_scope.cc ('k') | sky/engine/core/dom/custom/custom_element_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698