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

Unified Diff: sky/engine/core/dom/custom/custom_element_callback_scope.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_callback_scope.cc
diff --git a/sky/engine/core/dom/custom2/new_custom_element_callback_scope.cc b/sky/engine/core/dom/custom/custom_element_callback_scope.cc
similarity index 58%
rename from sky/engine/core/dom/custom2/new_custom_element_callback_scope.cc
rename to sky/engine/core/dom/custom/custom_element_callback_scope.cc
index 58fb3e97494c6a0c83ed8f42a4debbbdf6cdc287..deb54cd109d191d00944e3e81b56abf1e2dfa300 100644
--- a/sky/engine/core/dom/custom2/new_custom_element_callback_scope.cc
+++ b/sky/engine/core/dom/custom/custom_element_callback_scope.cc
@@ -3,21 +3,21 @@
// found in the LICENSE file.
#include "sky/engine/config.h"
-#include "sky/engine/core/dom/custom2/new_custom_element_callback_scope.h"
+#include "sky/engine/core/dom/custom/custom_element_callback_scope.h"
#include "base/callback.h"
namespace blink {
namespace {
-static NewCustomElementCallbackScope* g_current = nullptr;
+static CustomElementCallbackScope* g_current = nullptr;
}
-NewCustomElementCallbackScope::NewCustomElementCallbackScope()
+CustomElementCallbackScope::CustomElementCallbackScope()
: previous_scope_(g_current) {
g_current = this;
}
-NewCustomElementCallbackScope::~NewCustomElementCallbackScope() {
+CustomElementCallbackScope::~CustomElementCallbackScope() {
while(!callbacks_.isEmpty()) {
Vector<base::Closure> local;
callbacks_.swap(local);
@@ -28,11 +28,11 @@ NewCustomElementCallbackScope::~NewCustomElementCallbackScope() {
g_current = previous_scope_;
}
-NewCustomElementCallbackScope* NewCustomElementCallbackScope::Current() {
+CustomElementCallbackScope* CustomElementCallbackScope::Current() {
return g_current;
}
-void NewCustomElementCallbackScope::Enqueue(const base::Closure& callback) {
+void CustomElementCallbackScope::Enqueue(const base::Closure& callback) {
callbacks_.append(callback);
}
« no previous file with comments | « sky/engine/core/dom/custom/custom_element_callback_scope.h ('k') | sky/engine/core/dom/custom/custom_element_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698