diff --git a/sky/engine/core/dart/hooks.dart b/sky/engine/core/dart/hooks.dart index 490544a7c312cf601f60d4fe4173ebd103687c79..29666739c8ae2b4872ea34eb3be2eb934d0da76e 100644 --- a/sky/engine/core/dart/hooks.dart +++ b/sky/engine/core/dart/hooks.dart @@ -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. } diff --git a/sky/engine/core/dart/window.dart b/sky/engine/core/dart/window.dart index bd71e39915a7e0b6c322694da6379ac679aee05b..5166e5eddae737faa16984d283c2b2be3330936e 100644 --- a/sky/engine/core/dart/window.dart +++ b/sky/engine/core/dart/window.dart @@ -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