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

Unified Diff: tools/dom/src/dart2js_CustomElementSupport.dart

Issue 2827793002: Format all files under tools and utils directory. (Closed)
Patch Set: Format all files under tools and utils directory. Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/src/dart2js_CssClassSet.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dart2js_CustomElementSupport.dart
diff --git a/tools/dom/src/dart2js_CustomElementSupport.dart b/tools/dom/src/dart2js_CustomElementSupport.dart
index e82d3fd3a9acf993c59e951b3a97b927afaa6486..fa1b1295a6e5abc32a457aeece4593a83431a32d 100644
--- a/tools/dom/src/dart2js_CustomElementSupport.dart
+++ b/tools/dom/src/dart2js_CustomElementSupport.dart
@@ -23,12 +23,14 @@ _callAttached(receiver) {
_callDetached(receiver) {
return receiver.detached();
}
- _callAttributeChanged(receiver, name, oldValue, newValue) {
+
+_callAttributeChanged(receiver, name, oldValue, newValue) {
return receiver.attributeChanged(name, oldValue, newValue);
}
_makeCallbackMethod(callback) {
- return JS('',
+ return JS(
+ '',
'''((function(invokeCallback) {
return function() {
return invokeCallback(this);
@@ -38,7 +40,8 @@ _makeCallbackMethod(callback) {
}
_makeCallbackMethod3(callback) {
- return JS('',
+ return JS(
+ '',
'''((function(invokeCallback) {
return function(arg1, arg2, arg3) {
return invokeCallback(this, arg1, arg2, arg3);
@@ -57,13 +60,14 @@ void _checkExtendsNativeClassOrTemplate(
Element element, String extendsTag, String baseClassName) {
if (!JS('bool', '(# instanceof window[#])', element, baseClassName) &&
!((extendsTag == 'template' &&
- JS('bool', '(# instanceof window["HTMLUnknownElement"])', element)))) {
+ JS('bool', '(# instanceof window["HTMLUnknownElement"])',
+ element)))) {
throw new UnsupportedError('extendsTag does not match base native class');
}
}
-void _registerCustomElement(context, document, String tag, Type type,
- String extendsTagName) {
+void _registerCustomElement(
+ context, document, String tag, Type type, String extendsTagName) {
// Function follows the same pattern as the following JavaScript code for
// registering a custom element.
//
@@ -113,7 +117,10 @@ void _registerCustomElement(context, document, String tag, Type type,
var properties = JS('=Object', '{}');
- JS('void', '#.createdCallback = #', properties,
+ JS(
+ 'void',
+ '#.createdCallback = #',
+ properties,
JS('=Object', '{value: #}',
_makeCallbackMethod(_callConstructor(constructor, interceptor))));
JS('void', '#.attachedCallback = #', properties,
« no previous file with comments | « tools/dom/src/dart2js_CssClassSet.dart ('k') | tools/dom/src/dart2js_DOMImplementation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698