Commit dea41b50 authored by dpapad's avatar dpapad Committed by Commit Bot

Settings cleanup: Swap neon-animatable elements with plain div.

Usage of neon-animatable is unnecessary now that neon-animation-pages has been
removed.

Bug: 902959
Change-Id: I7cbad2e8a2ba1f56234cc77ed9a40b4ef9aea314
Reviewed-on: https://chromium-review.googlesource.com/c/1343657
Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org>
Reviewed-by: default avatarScott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615719}
parent afe61ce4
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<link rel="import" href="../settings_shared_css.html"> <link rel="import" href="../settings_shared_css.html">
<if expr="chromeos"> <if expr="chromeos">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="manage_a11y_page.html"> <link rel="import" href="manage_a11y_page.html">
<link rel="import" href="../controls/settings_toggle_button.html"> <link rel="import" href="../controls/settings_toggle_button.html">
<link rel="import" href="../settings_page/settings_animated_pages.html"> <link rel="import" href="../settings_page/settings_animated_pages.html">
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
<if expr="chromeos"> <if expr="chromeos">
<settings-animated-pages id="pages" current-route="{{currentRoute}}" <settings-animated-pages id="pages" current-route="{{currentRoute}}"
section="a11y" focus-config="[[focusConfig_]]"> section="a11y" focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<settings-toggle-button id="optionsInMenuToggle" <settings-toggle-button id="optionsInMenuToggle"
label="$i18n{optionsInMenuLabel}" label="$i18n{optionsInMenuLabel}"
pref="{{prefs.settings.a11y.enable_menu}}"> pref="{{prefs.settings.a11y.enable_menu}}">
...@@ -37,7 +36,7 @@ ...@@ -37,7 +36,7 @@
aria-describedby="themesSecondary"></button> aria-describedby="themesSecondary"></button>
</paper-icon-button-light> </paper-icon-button-light>
</div> </div>
</neon-animatable> </div>
<template is="dom-if" route-path="/manageAccessibility"> <template is="dom-if" route-path="/manageAccessibility">
<settings-subpage <settings-subpage
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<if expr="chromeos"> <if expr="chromeos">
...@@ -114,7 +113,7 @@ ...@@ -114,7 +113,7 @@
<settings-section page-title="$i18n{aboutPageTitle}" section="about"> <settings-section page-title="$i18n{aboutPageTitle}" section="about">
<settings-animated-pages id="pages" section="about" <settings-animated-pages id="pages" section="about"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<div class="settings-box two-line"> <div class="settings-box two-line">
<img id="product-logo" on-click="onProductLogoTap_" <img id="product-logo" on-click="onProductLogoTap_"
srcset="chrome://theme/current-channel-logo@1x 1x, srcset="chrome://theme/current-channel-logo@1x 1x,
...@@ -254,7 +253,7 @@ ...@@ -254,7 +253,7 @@
on-click="onDetailedBuildInfoTap_" on-click="onDetailedBuildInfoTap_"
label="$i18n{aboutDetailedBuildInfo}"></cr-link-row> label="$i18n{aboutDetailedBuildInfo}"></cr-link-row>
</if> </if>
</neon-animatable> </div>
<if expr="chromeos"> <if expr="chromeos">
<template is="dom-if" route-path="/help/details"> <template is="dom-if" route-path="/help/details">
<settings-subpage page-title="$i18n{aboutDetailedBuildInfo}"> <settings-subpage page-title="$i18n{aboutDetailedBuildInfo}">
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html"> <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
<settings-animated-pages id="pages" section="androidApps" <settings-animated-pages id="pages" section="androidApps"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<template is="dom-if" if="[[havePlayStoreApp]]" restamp> <template is="dom-if" if="[[havePlayStoreApp]]" restamp>
<div id="android-apps" class="settings-box two-line first" <div id="android-apps" class="settings-box two-line first"
actionable$="[[androidAppsInfo.playStoreEnabled]]" actionable$="[[androidAppsInfo.playStoreEnabled]]"
...@@ -56,7 +55,7 @@ ...@@ -56,7 +55,7 @@
<settings-android-settings-element> <settings-android-settings-element>
</settings-android-settings-element> </settings-android-settings-element>
</template> </template>
</neon-animatable> </div>
<template is="dom-if" route-path="/androidApps/details"> <template is="dom-if" route-path="/androidApps/details">
<settings-subpage <settings-subpage
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html"> <link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/md_select_css.html"> <link rel="import" href="chrome://resources/html/md_select_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="appearance_browser_proxy.html"> <link rel="import" href="appearance_browser_proxy.html">
<link rel="import" href="../controls/controlled_radio_button.html"> <link rel="import" href="../controls/controlled_radio_button.html">
...@@ -45,7 +44,7 @@ ...@@ -45,7 +44,7 @@
</style> </style>
<settings-animated-pages id="pages" section="appearance" <settings-animated-pages id="pages" section="appearance"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<if expr="chromeos"> <if expr="chromeos">
<cr-link-row icon-class="icon-external" id="wallpaperButton" <cr-link-row icon-class="icon-external" id="wallpaperButton"
hidden="[[!pageVisibility.setWallpaper]]" hidden="[[!pageVisibility.setWallpaper]]"
...@@ -179,7 +178,7 @@ ...@@ -179,7 +178,7 @@
label="$i18n{warnBeforeQuitting}"> label="$i18n{warnBeforeQuitting}">
</settings-toggle-button> </settings-toggle-button>
</if> </if>
</neon-animatable> </div>
<template is="dom-if" route-path="/fonts"> <template is="dom-if" route-path="/fonts">
<settings-subpage <settings-subpage
associated-control="[[$$('#customize-fonts-subpage-trigger')]]" associated-control="[[$$('#customize-fonts-subpage-trigger')]]"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html"> <link rel="import" href="chrome://resources/cr_elements/cr_link_row/cr_link_row.html">
<link rel="import" href="chrome://resources/html/cr.html"> <link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="autofill_section.html"> <link rel="import" href="autofill_section.html">
<link rel="import" href="passwords_section.html"> <link rel="import" href="passwords_section.html">
<link rel="import" href="payments_section.html"> <link rel="import" href="payments_section.html">
...@@ -24,7 +23,7 @@ ...@@ -24,7 +23,7 @@
</style> </style>
<settings-animated-pages id="pages" section="autofill" <settings-animated-pages id="pages" section="autofill"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<cr-link-row id="passwordManagerButton" start-icon="settings20:vpn-key" <cr-link-row id="passwordManagerButton" start-icon="settings20:vpn-key"
label="$i18n{passwords}" icon-class="subpage-arrow" label="$i18n{passwords}" icon-class="subpage-arrow"
on-click="onPasswordsClick_"></cr-link-row> on-click="onPasswordsClick_"></cr-link-row>
...@@ -36,7 +35,7 @@ ...@@ -36,7 +35,7 @@
start-icon="settings20:location-on" label="$i18n{addressesTitle}" start-icon="settings20:location-on" label="$i18n{addressesTitle}"
icon-class="subpage-arrow" on-click="onAddressesClick_"> icon-class="subpage-arrow" on-click="onAddressesClick_">
</cr-link-row> </cr-link-row>
</neon-animatable> </div>
<template is="dom-if" route-path="/passwords"> <template is="dom-if" route-path="/passwords">
<settings-subpage <settings-subpage
associated-control="[[$$('#passwordManagerButton')]]" associated-control="[[$$('#passwordManagerButton')]]"
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<link rel="import" href="chrome://resources/cr_elements/icons.html"> <link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html"> <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_indicator.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
<link rel="import" href="../icons.html"> <link rel="import" href="../icons.html">
...@@ -21,7 +20,7 @@ ...@@ -21,7 +20,7 @@
</style> </style>
<settings-animated-pages id="pages" section="bluetooth" <settings-animated-pages id="pages" section="bluetooth"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<template is="dom-if" if="[[!isSecondaryUser_]]"> <template is="dom-if" if="[[!isSecondaryUser_]]">
<div id="bluetoothDevices" <div id="bluetoothDevices"
class="settings-box two-line" actionable on-click="onTap_"> class="settings-box two-line" actionable on-click="onTap_">
...@@ -63,7 +62,7 @@ ...@@ -63,7 +62,7 @@
</div> </div>
</div> </div>
</template> </template>
</neon-animatable> </div>
<template is="dom-if" route-path="/bluetoothDevices"> <template is="dom-if" route-path="/bluetoothDevices">
<settings-subpage associated-control="[[$$('#bluetoothDevices')]]" <settings-subpage associated-control="[[$$('#bluetoothDevices')]]"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator.html"> <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_indicator.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
<link rel="import" href="../prefs/prefs_behavior.html"> <link rel="import" href="../prefs/prefs_behavior.html">
...@@ -20,7 +19,7 @@ ...@@ -20,7 +19,7 @@
<settings-animated-pages id="pages" section="crostini" <settings-animated-pages id="pages" section="crostini"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<div id="crostini" class="settings-box two-line first" <div id="crostini" class="settings-box two-line first"
actionable$="[[prefs.crostini.enabled.value]]" actionable$="[[prefs.crostini.enabled.value]]"
on-click="onSubpageTap_"> on-click="onSubpageTap_">
...@@ -52,7 +51,7 @@ ...@@ -52,7 +51,7 @@
</paper-button> </paper-button>
</template> </template>
</div> </div>
</neon-animatable> </div>
<template is="dom-if" route-path="/crostini/details"> <template is="dom-if" route-path="/crostini/details">
<settings-subpage <settings-subpage
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</style> </style>
<settings-animated-pages id="pages" section="dateTime" <settings-animated-pages id="pages" section="dateTime"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable id="main" route-path="default"> <div id="main" route-path="default">
<template is="dom-if" <template is="dom-if"
if="[[!prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]" if="[[!prefs.cros.flags.fine_grained_time_zone_detection_enabled.value]]"
restamp> restamp>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<button aria-label="$i18n{setDateTime}"></button> <button aria-label="$i18n{setDateTime}"></button>
</paper-icon-button-light> </paper-icon-button-light>
</div> </div>
</neon-animatable> </div>
<template is="dom-if" route-path="/dateTime/timeZone"> <template is="dom-if" route-path="/dateTime/timeZone">
<settings-subpage data-route="DATETIME_TIMEZONE_SUBPAGE" <settings-subpage data-route="DATETIME_TIMEZONE_SUBPAGE"
associated-control="[[$$('#timeZoneSettingsTrigger')]]" associated-control="[[$$('#timeZoneSettingsTrigger')]]"
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="device_page_browser_proxy.html"> <link rel="import" href="device_page_browser_proxy.html">
<link rel="import" href="display.html"> <link rel="import" href="display.html">
...@@ -22,7 +21,7 @@ ...@@ -22,7 +21,7 @@
<style include="settings-shared"></style> <style include="settings-shared"></style>
<settings-animated-pages id="pages" section="device" <settings-animated-pages id="pages" section="device"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable id="main" route-path="default"> <div id="main" route-path="default">
<div id="pointersRow" class="settings-box first" <div id="pointersRow" class="settings-box first"
on-click="onPointersTap_" actionable> on-click="onPointersTap_" actionable>
<div class="start"> <div class="start">
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
</paper-icon-button-light> </paper-icon-button-light>
</div> </div>
</template> </template>
</neon-animatable> </div>
<template is="dom-if" route-path="/pointer-overlay"> <template is="dom-if" route-path="/pointer-overlay">
<settings-subpage <settings-subpage
associated-control="[[$$('#pointersRow')]]" associated-control="[[$$('#pointersRow')]]"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</style> </style>
<settings-animated-pages id="pages" section="downloads" <settings-animated-pages id="pages" section="downloads"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<div class="settings-box first two-line"> <div class="settings-box first two-line">
<div class="start"> <div class="start">
<div>$i18n{downloadLocation}</div> <div>$i18n{downloadLocation}</div>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</paper-button> </paper-button>
</div> </div>
</template> </template>
</neon-animatable> </div>
<if expr="chromeos"> <if expr="chromeos">
<template is="dom-if" route-path="/smbShares"> <template is="dom-if" route-path="/smbShares">
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../prefs/prefs.html"> <link rel="import" href="../prefs/prefs.html">
<link rel="import" href="../route.html"> <link rel="import" href="../route.html">
...@@ -32,7 +31,7 @@ ...@@ -32,7 +31,7 @@
</style> </style>
<settings-animated-pages id="pages" section="internet" <settings-animated-pages id="pages" section="internet"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<network-summary default-network="{{defaultNetwork}}" <network-summary default-network="{{defaultNetwork}}"
device-states="{{deviceStates}}" device-states="{{deviceStates}}"
networking-private="[[networkingPrivate]]"> networking-private="[[networkingPrivate]]">
...@@ -96,7 +95,7 @@ ...@@ -96,7 +95,7 @@
<div>$i18n{internetAddConnectionNotAllowed}</div> <div>$i18n{internetAddConnectionNotAllowed}</div>
</div> </div>
</template> </template>
</neon-animatable> </div>
<template is="dom-if" route-path="/networkDetail" no-search restamp> <template is="dom-if" route-path="/networkDetail" no-search restamp>
<settings-subpage page-title="$i18n{internetDetailPageTitle}"> <settings-subpage page-title="$i18n{internetDetailPageTitle}">
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html"> <link rel="import" href="chrome://resources/cr_elements/cr_action_menu/cr_action_menu.html">
<link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expand_button.html"> <link rel="import" href="chrome://resources/cr_elements/cr_expand_button/cr_expand_button.html">
...@@ -118,7 +117,7 @@ ...@@ -118,7 +117,7 @@
</settings-languages> </settings-languages>
<settings-animated-pages id="pages" section="languages" <settings-animated-pages id="pages" section="languages"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<div class$="settings-box first [[getLanguageListTwoLine_()]]" <div class$="settings-box first [[getLanguageListTwoLine_()]]"
actionable on-click="toggleExpandButton_"> actionable on-click="toggleExpandButton_">
<div class="start"> <div class="start">
...@@ -374,7 +373,7 @@ ...@@ -374,7 +373,7 @@
</cr-action-menu> </cr-action-menu>
</template> </template>
</cr-lazy-render> </cr-lazy-render>
</neon-animatable> </div>
<if expr="chromeos"> <if expr="chromeos">
<template is="dom-if" route-path="/inputMethods"> <template is="dom-if" route-path="/inputMethods">
<settings-subpage <settings-subpage
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
...@@ -31,7 +30,7 @@ ...@@ -31,7 +30,7 @@
</style> </style>
<settings-animated-pages id="pages" section="multidevice" <settings-animated-pages id="pages" section="multidevice"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<div id="multidevice-item" <div id="multidevice-item"
class="settings-box two-line" class="settings-box two-line"
on-click="handleItemClick_" on-click="handleItemClick_"
...@@ -88,7 +87,7 @@ ...@@ -88,7 +87,7 @@
</settings-multidevice-feature-toggle> </settings-multidevice-feature-toggle>
</template> </template>
</div> </div>
</neon-animatable> </div>
<template is="dom-if" route-path="/multidevice/features" restamp> <template is="dom-if" route-path="/multidevice/features" restamp>
<settings-subpage associated-control="[[$$('#multidevice-item')]]" <settings-subpage associated-control="[[$$('#multidevice-item')]]"
page-title="[[getLabelText_(pageContentData)]]"> page-title="[[getLabelText_(pageContentData)]]">
......
...@@ -8,7 +8,6 @@ ...@@ -8,7 +8,6 @@
<link rel="import" href="chrome://resources/html/util.html"> <link rel="import" href="chrome://resources/html/util.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html"> <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout-classes.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../controls/settings_toggle_button.html"> <link rel="import" href="../controls/settings_toggle_button.html">
...@@ -128,7 +127,7 @@ ...@@ -128,7 +127,7 @@
</style> </style>
<settings-animated-pages id="pages" section="people" <settings-animated-pages id="pages" section="people"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<if expr="not chromeos"> <if expr="not chromeos">
<template is="dom-if" if="[[shouldShowSyncAccountControl_(diceEnabled_, <template is="dom-if" if="[[shouldShowSyncAccountControl_(diceEnabled_,
syncStatus.syncSystemEnabled, syncStatus.signinAllowed)]]"> syncStatus.syncSystemEnabled, syncStatus.signinAllowed)]]">
...@@ -317,7 +316,7 @@ ...@@ -317,7 +316,7 @@
</div> </div>
</if> </if>
</neon-animatable> </div>
<template is="dom-if" route-path="/syncSetup" <template is="dom-if" route-path="/syncSetup"
no-search="[[!isAdvancedSyncSettingsSearchable_( no-search="[[!isAdvancedSyncSettingsSearchable_(
syncStatus, unifiedConsentEnabled_)]]"> syncStatus, unifiedConsentEnabled_)]]">
......
<link rel="import" href="chrome://resources/html/polymer.html"> <link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="cloud_printers.html"> <link rel="import" href="cloud_printers.html">
<link rel="import" href="../route.html"> <link rel="import" href="../route.html">
...@@ -19,7 +18,7 @@ ...@@ -19,7 +18,7 @@
<style include="settings-shared"></style> <style include="settings-shared"></style>
<settings-animated-pages id="pages" section="printing" <settings-animated-pages id="pages" section="printing"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<if expr="chromeos"> <if expr="chromeos">
<div id="cupsPrinters" class="settings-box first" <div id="cupsPrinters" class="settings-box first"
on-click="onTapCupsPrinters_" actionable> on-click="onTapCupsPrinters_" actionable>
...@@ -45,7 +44,7 @@ ...@@ -45,7 +44,7 @@
<button aria-label="$i18n{cloudPrintersTitle}"></button> <button aria-label="$i18n{cloudPrintersTitle}"></button>
</paper-icon-button-light> </paper-icon-button-light>
</div> </div>
</neon-animatable> </div>
<if expr="chromeos"> <if expr="chromeos">
<template is="dom-if" route-path="/cupsPrinters"> <template is="dom-if" route-path="/cupsPrinters">
<settings-subpage <settings-subpage
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../clear_browsing_data_dialog/clear_browsing_data_dialog.html"> <link rel="import" href="../clear_browsing_data_dialog/clear_browsing_data_dialog.html">
...@@ -83,7 +82,7 @@ ...@@ -83,7 +82,7 @@
</template> </template>
<settings-animated-pages id="pages" section="privacy" <settings-animated-pages id="pages" section="privacy"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<template is="dom-if" if="[[!unifiedConsentEnabled_]]"> <template is="dom-if" if="[[!unifiedConsentEnabled_]]">
<div class="settings-box first"> <div class="settings-box first">
<p class="privacy-explanation"> <p class="privacy-explanation">
...@@ -181,7 +180,7 @@ ...@@ -181,7 +180,7 @@
hidden="[[!unifiedConsentEnabled_]]"> hidden="[[!unifiedConsentEnabled_]]">
<div class="start">$i18nRaw{syncAndPersonalizationLink}</div> <div class="start">$i18nRaw{syncAndPersonalizationLink}</div>
</div> </div>
</neon-animatable> </div>
<if expr="use_nss_certs"> <if expr="use_nss_certs">
<template is="dom-if" route-path="/certificates"> <template is="dom-if" route-path="/certificates">
<settings-subpage <settings-subpage
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
<link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html"> <link rel="import" href="chrome://resources/cr_elements/cr_lazy_render/cr_lazy_render.html">
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html"> <link rel="import" href="chrome://resources/html/cr/ui/focus_without_ink.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../i18n_setup.html"> <link rel="import" href="../i18n_setup.html">
<link rel="import" href="reset_profile_dialog.html"> <link rel="import" href="reset_profile_dialog.html">
...@@ -24,7 +23,7 @@ ...@@ -24,7 +23,7 @@
<template> <template>
<style include="settings-shared"></style> <style include="settings-shared"></style>
<settings-animated-pages id="reset-pages" section="reset"> <settings-animated-pages id="reset-pages" section="reset">
<neon-animatable route-path="default"> <div route-path="default">
<div class="settings-box first" id="resetProfile" <div class="settings-box first" id="resetProfile"
on-click="onShowResetProfileDialog_" actionable> on-click="onShowResetProfileDialog_" actionable>
<div id="resetProfileTrigger" class="start">$i18n{resetTrigger}</div> <div id="resetProfileTrigger" class="start">$i18n{resetTrigger}</div>
...@@ -85,7 +84,7 @@ ...@@ -85,7 +84,7 @@
</div> </div>
</template> </template>
</if> </if>
</neon-animatable> </div>
<if expr="_google_chrome and is_win"> <if expr="_google_chrome and is_win">
<template is="dom-if" route-path="/cleanup"> <template is="dom-if" route-path="/cleanup">
<settings-subpage id="chromeCleanupSubpage" <settings-subpage id="chromeCleanupSubpage"
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<link rel="import" href="chrome://resources/html/assert.html"> <link rel="import" href="chrome://resources/html/assert.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html"> <link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/html/md_select_css.html"> <link rel="import" href="chrome://resources/html/md_select_css.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html"> <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper-icon-button-light.html">
<link rel="import" href="../controls/extension_controlled_indicator.html"> <link rel="import" href="../controls/extension_controlled_indicator.html">
...@@ -43,7 +42,7 @@ ...@@ -43,7 +42,7 @@
</style> </style>
<settings-animated-pages id="pages" section="search" <settings-animated-pages id="pages" section="search"
focus-config="[[focusConfig_]]"> focus-config="[[focusConfig_]]">
<neon-animatable route-path="default"> <div route-path="default">
<!-- Omnibox search engine --> <!-- Omnibox search engine -->
<div class="settings-box first block"> <div class="settings-box first block">
<div id="search-wrapper"> <div id="search-wrapper">
...@@ -119,7 +118,7 @@ ...@@ -119,7 +118,7 @@
</div> </div>
</template> </template>
</if> </if>
</neon-animatable> </div>
<template is="dom-if" route-path="/searchEngines"> <template is="dom-if" route-path="/searchEngines">
<settings-subpage <settings-subpage
associated-control="[[$$('#engines-subpage-trigger')]]" associated-control="[[$$('#engines-subpage-trigger')]]"
......
...@@ -94,10 +94,9 @@ Polymer({ ...@@ -94,10 +94,9 @@ Polymer({
subpagePaths.push(settings.routes.INTERNET_NETWORKS.path); subpagePaths.push(settings.routes.INTERNET_NETWORKS.path);
// </if> // </if>
// Only handle iron-select events from neon-animatable elements and the // Only handle iron-select events from div elements and the
// given whitelist of settings-subpage instances. // given whitelist of settings-subpage instances.
// TODO(dpapad): Remove neon-animatable here. const whitelist = ['settings-subpage#site-settings', 'div[route-path]'];
const whitelist = ['settings-subpage#site-settings', 'neon-animatable'];
whitelist.push.apply( whitelist.push.apply(
whitelist, whitelist,
subpagePaths.map(path => `settings-subpage[route-path="${path}"]`)); subpagePaths.map(path => `settings-subpage[route-path="${path}"]`));
......
...@@ -7,12 +7,12 @@ suite('settings-animated-pages', function() { ...@@ -7,12 +7,12 @@ suite('settings-animated-pages', function() {
document.body.innerHTML = ` document.body.innerHTML = `
<settings-animated-pages <settings-animated-pages
section="${settings.routes.SEARCH_ENGINES.section}"> section="${settings.routes.SEARCH_ENGINES.section}">
<neon-animatable route-path="default"> <div route-path="default">
<button id="subpage-trigger"></button> <button id="subpage-trigger"></button>
</neon-animatable> </div>
<neon-animatable route-path="${settings.routes.SEARCH_ENGINES.path}"> <div route-path="${settings.routes.SEARCH_ENGINES.path}">
<button id="subpage-trigger"></button> <button id="subpage-trigger"></button>
</neon-animatable> </div>
</settings-animated-pages>`; </settings-animated-pages>`;
const animatedPages = const animatedPages =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment