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

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

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Fix test Created 3 years, 10 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..c0a6aa54ec89d6711f104fe2fbf07fddccd0b539 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">
+ <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
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/resources/settings/device_page/device_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698