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

Unified Diff: tools/dom/src/native_DOMImplementation.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/dartium_WrappedEvent.dart ('k') | tools/dom/src/shared_SVGFactoryProviders.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/native_DOMImplementation.dart
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
index faa1ec021ddc452d11ff3332363b89ea8cef3758..2338aeef8d24f8b023b8543626256b8ade074f11 100644
--- a/tools/dom/src/native_DOMImplementation.dart
+++ b/tools/dom/src/native_DOMImplementation.dart
@@ -585,8 +585,8 @@ class _Utils {
map.forEach((symbol, mirror) {
if (mirror.isStatic == isStatic && !mirror.isPrivate) {
var name = MirrorSystem.getName(symbol);
- if (mirror is MethodMirror && mirror.isSetter) name =
- name.substring(0, name.length - 1);
+ if (mirror is MethodMirror && mirror.isSetter)
+ name = name.substring(0, name.length - 1);
completions.add(name);
}
});
@@ -1074,28 +1074,45 @@ class _DOMWindowCrossFrame extends DartHtmlDomObject implements WindowBase {
// use _DOMWindowCrossFrame.
return window;
}
- return win is _DOMWindowCrossFrame ? win : _blink.Blink_Utils.setInstanceInterceptor(win, _DOMWindowCrossFrame);
+ return win is _DOMWindowCrossFrame
+ ? win
+ : _blink.Blink_Utils.setInstanceInterceptor(win, _DOMWindowCrossFrame);
}
// Fields.
HistoryBase get history {
- var history = _blink.BlinkWindow.instance.history_Getter_(this);
- return history is _HistoryCrossFrame ? history : _blink.Blink_Utils.setInstanceInterceptor(history, _HistoryCrossFrame);
+ var history = _blink.BlinkWindow.instance.history_Getter_(this);
+ return history is _HistoryCrossFrame
+ ? history
+ : _blink.Blink_Utils
+ .setInstanceInterceptor(history, _HistoryCrossFrame);
}
LocationBase get location {
var location = _blink.BlinkWindow.instance.location_Getter_(this);
- return location is _LocationCrossFrame ? location : _blink.Blink_Utils.setInstanceInterceptor(location, _LocationCrossFrame);
+ return location is _LocationCrossFrame
+ ? location
+ : _blink.Blink_Utils
+ .setInstanceInterceptor(location, _LocationCrossFrame);
}
bool get closed => _blink.BlinkWindow.instance.closed_Getter_(this);
- WindowBase get opener => _convertNativeToDart_Window(_blink.BlinkWindow.instance.opener_Getter_(this));
- WindowBase get parent => _convertNativeToDart_Window(_blink.BlinkWindow.instance.parent_Getter_(this));
- WindowBase get top => _convertNativeToDart_Window(_blink.BlinkWindow.instance.top_Getter_(this));
+ WindowBase get opener => _convertNativeToDart_Window(
+ _blink.BlinkWindow.instance.opener_Getter_(this));
+ WindowBase get parent => _convertNativeToDart_Window(
+ _blink.BlinkWindow.instance.parent_Getter_(this));
+ WindowBase get top => _convertNativeToDart_Window(
+ _blink.BlinkWindow.instance.top_Getter_(this));
// Methods.
void close() => _blink.BlinkWindow.instance.close_Callback_0_(this);
- void postMessage(Object message, String targetOrigin, [List<MessagePort> transfer]) => _blink.BlinkWindow.instance.postMessage_Callback_3_(this, convertDartToNative_SerializedScriptValue(message), targetOrigin, transfer);
+ void postMessage(Object message, String targetOrigin,
+ [List<MessagePort> transfer]) =>
+ _blink.BlinkWindow.instance.postMessage_Callback_3_(
+ this,
+ convertDartToNative_SerializedScriptValue(message),
+ targetOrigin,
+ transfer);
// Implementation support.
String get typeName => "Window";
@@ -1151,7 +1168,8 @@ class _LocationCrossFrame extends DartHtmlDomObject implements LocationBase {
_LocationCrossFrame.internal();
// Fields.
- set href(String value) => _blink.BlinkLocation.instance.href_Setter_(this, value);
+ set href(String value) =>
+ _blink.BlinkLocation.instance.href_Setter_(this, value);
// Implementation support.
String get typeName => "Location";
@@ -1221,6 +1239,7 @@ _helperIsolateMain(originalSendPort) {
ping() {
replyTo.send(_TIMER_PING);
}
+
;
_TIMER_REGISTRY[replyTo] = periodic
? new Timer.periodic(duration, (_) {
« no previous file with comments | « tools/dom/src/dartium_WrappedEvent.dart ('k') | tools/dom/src/shared_SVGFactoryProviders.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698