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

Unified Diff: chrome/browser/resources/settings/device_page/device_page.html

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Add listeners to options and settings Created 3 years, 11 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
Index: chrome/browser/resources/settings/device_page/device_page.html
diff --git a/chrome/browser/resources/settings/device_page/device_page.html b/chrome/browser/resources/settings/device_page/device_page.html
index e50598a7eecbdb9f4c45d2cf04af28595b168d99..12c9659084917df28e5ccaf110bf2b80fb3877ab 100644
--- a/chrome/browser/resources/settings/device_page/device_page.html
+++ b/chrome/browser/resources/settings/device_page/device_page.html
@@ -38,7 +38,7 @@
<div class="middle">$i18n{keyboardTitle}</div>
<button class="subpage-arrow" is="paper-icon-button-light"></button>
</div>
- <template is="dom-if" if="[[stylusAllowed_]]">
+ <template is="dom-if" if="[[hasStylus_]]">
<div id="stylusRow" class="settings-box" on-tap="onStylusTap_"
actionable>
<iron-icon icon="settings:note"></iron-icon>
@@ -104,14 +104,12 @@
<settings-keyboard prefs="{{prefs}}"></settings-keyboard>
</settings-subpage>
</template>
- <template is="dom-if" if="[[stylusAllowed_]]">
- <template is="dom-if" route-path="/stylus">
- <settings-subpage
- associated-control="[[$$('#stylusRow')]]"
- page-title="$i18n{stylusTitle}">
- <settings-stylus prefs="{{prefs}}"></settings-stylus>
- </settings-subpage>
- </template>
+ <template is="dom-if" route-path="/stylus" if="[[hasStylus_]]">
+ <settings-subpage
+ associated-control="[[$$('#stylusRow')]]"
+ page-title="$i18n{stylusTitle}">
+ <settings-stylus prefs="{{prefs}}"></settings-stylus>
+ </settings-subpage>
</template>
<template is="dom-if" route-path="/display">
<settings-subpage

Powered by Google App Engine
This is Rietveld 408576698