提交 33a18481 编写于 作者: H Hixie

Make defaultRouteName immutable.

And trivial docs changes.
上级 49a8dfb3
......@@ -27,8 +27,8 @@ void _updateLocale(String languageCode, String countryCode) {
}
void _pushRoute(String route) {
assert(window.defaultRouteName == null);
window.defaultRouteName = route;
assert(window._defaultRouteName == null);
window._defaultRouteName = route;
// TODO(abarth): If we ever start calling _pushRoute other than before main,
// we should add a change notification callback.
}
......
......@@ -72,7 +72,9 @@ class Window {
/// The number of pixels on each side of the display rectangle into which the
/// application can render, but over which the operating system will likely
/// place system UI (such as the Android system notification area).
/// place system UI (such as the Android system notification area), or which
/// might be rendered outside of the physical display (e.g. overscan regions
/// on television screens).
WindowPadding get padding => _padding;
WindowPadding _padding;
......@@ -103,7 +105,8 @@ class Window {
/// The route or path that the operating system requested when the application
/// was launched.
String defaultRouteName;
String get defaultRouteName => _defaultRouteName;
String _defaultRouteName;
/// A callback that is invoked when the operating system requests that the
/// application goes "back" one step in its history. For example, on Android
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册