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

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

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.cc
diff --git a/sky/engine/core/dom/custom2/new_custom_element_registry.cc b/sky/engine/core/dom/custom/custom_element_registry.cc
similarity index 80%
rename from sky/engine/core/dom/custom2/new_custom_element_registry.cc
rename to sky/engine/core/dom/custom/custom_element_registry.cc
index 171d0203f7f045d95e89db2e313a826b38c3390d..f36b4630a6f876f0ea4fc2cf334f6c91cb3c70f4 100644
--- a/sky/engine/core/dom/custom2/new_custom_element_registry.cc
+++ b/sky/engine/core/dom/custom/custom_element_registry.cc
@@ -3,20 +3,20 @@
// found in the LICENSE file.
#include "sky/engine/config.h"
-#include "sky/engine/core/dom/custom2/new_custom_element_registry.h"
+#include "sky/engine/core/dom/custom/custom_element_registry.h"
#include "sky/engine/core/dom/Element.h"
#include "sky/engine/core/html/HTMLElement.h"
namespace blink {
-NewCustomElementRegistry::NewCustomElementRegistry() {
+CustomElementRegistry::CustomElementRegistry() {
}
-NewCustomElementRegistry::~NewCustomElementRegistry() {
+CustomElementRegistry::~CustomElementRegistry() {
}
-void NewCustomElementRegistry::RegisterElement(const AtomicString& name,
+void CustomElementRegistry::RegisterElement(const AtomicString& name,
PassRefPtr<DartValue> type) {
if (!dart_state_)
dart_state_ = type->dart_state();
@@ -28,7 +28,7 @@ void NewCustomElementRegistry::RegisterElement(const AtomicString& name,
}
}
-PassRefPtr<Element> NewCustomElementRegistry::CreateElement(
+PassRefPtr<Element> CustomElementRegistry::CreateElement(
Document& document, const AtomicString& name) {
const auto& it = registrations_.find(name);
if (it != registrations_.end()) {
« no previous file with comments | « sky/engine/core/dom/custom/custom_element_registry.h ('k') | sky/engine/core/dom/custom2/new_custom_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698