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

Unified Diff: sky/engine/core/dom/custom/custom_element.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.cc
diff --git a/sky/engine/core/dom/custom2/new_custom_element.cc b/sky/engine/core/dom/custom/custom_element.cc
similarity index 85%
rename from sky/engine/core/dom/custom2/new_custom_element.cc
rename to sky/engine/core/dom/custom/custom_element.cc
index be4b08576d97cd888f870d755894babae664514a..1661c03edb5c69842bef14f2cab9d590c6fb7cd2 100644
--- a/sky/engine/core/dom/custom2/new_custom_element.cc
+++ b/sky/engine/core/dom/custom/custom_element.cc
@@ -3,15 +3,15 @@
// found in the LICENSE file.
#include "sky/engine/config.h"
-#include "sky/engine/core/dom/custom2/new_custom_element.h"
+#include "sky/engine/core/dom/custom/custom_element.h"
#include "base/bind.h"
#include "dart/runtime/include/dart_api.h"
#include "sky/engine/core/dom/Document.h"
#include "sky/engine/core/dom/Element.h"
#include "sky/engine/core/dom/Microtask.h"
-#include "sky/engine/core/dom/custom2/new_custom_element_callback_scope.h"
-#include "sky/engine/core/dom/custom2/new_custom_element_registry.h"
+#include "sky/engine/core/dom/custom/custom_element_callback_scope.h"
+#include "sky/engine/core/dom/custom/custom_element_registry.h"
#include "sky/engine/tonic/dart_converter.h"
#include "sky/engine/tonic/dart_state.h"
#include "sky/engine/wtf/text/AtomicString.h"
@@ -20,7 +20,7 @@ namespace blink {
namespace {
void ScheduleCallback(const base::Closure& callback) {
- if (auto* scope = NewCustomElementCallbackScope::Current()) {
+ if (auto* scope = CustomElementCallbackScope::Current()) {
scope->Enqueue(callback);
} else {
Microtask::enqueueMicrotask(callback);
@@ -67,7 +67,7 @@ void CallDidDetachedCallback(RefPtr<Element> element, RefPtr<Document> document)
} // namespace
-void NewCustomElement::AttributeDidChange(Element* element,
+void CustomElement::AttributeDidChange(Element* element,
const AtomicString& name,
const AtomicString& oldValue,
const AtomicString& newValue) {
@@ -75,11 +75,11 @@ void NewCustomElement::AttributeDidChange(Element* element,
element, name, oldValue, newValue));
}
-void NewCustomElement::DidAttach(Element* element, Document& document) {
+void CustomElement::DidAttach(Element* element, Document& document) {
ScheduleCallback(base::Bind(CallDidAttachedCallback, element, &document));
}
-void NewCustomElement::DidDetach(Element* element, Document& document) {
+void CustomElement::DidDetach(Element* element, Document& document) {
ScheduleCallback(base::Bind(CallDidDetachedCallback, element, &document));
}
« no previous file with comments | « sky/engine/core/dom/custom/custom_element.h ('k') | sky/engine/core/dom/custom/custom_element_callback_scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698