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

Side by Side Diff: chrome/browser/resources/settings/device_page/stylus.html

Issue 2736803002: MD Settings: Stop using <option>'s |selected| HTML attribute in bindings. (Closed)
Patch Set: Change selected. Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/html/action_link.html"> 1 <link rel="import" href="chrome://resources/html/action_link.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button-light.html">
4 <link rel="import" href="../controls/settings_toggle_button.html"> 4 <link rel="import" href="../controls/settings_toggle_button.html">
5 <link rel="import" href="../settings_shared_css.html"> 5 <link rel="import" href="../settings_shared_css.html">
6 6
7 <dom-module id="settings-stylus"> 7 <dom-module id="settings-stylus">
8 <template> 8 <template>
9 <style include="settings-shared md-select"> 9 <style include="settings-shared md-select">
10 .settings-box > .secondary { 10 .settings-box > .secondary {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 $i18n{stylusNoteTakingAppWaitingForAndroid} 51 $i18n{stylusNoteTakingAppWaitingForAndroid}
52 <paper-spinner active></paper-spinner> 52 <paper-spinner active></paper-spinner>
53 </div> 53 </div>
54 54
55 <div id="select-app" class="md-select-wrapper" 55 <div id="select-app" class="md-select-wrapper"
56 hidden$="[[!showApps_(appChoices_, waitingForAndroid_)]]"> 56 hidden$="[[!showApps_(appChoices_, waitingForAndroid_)]]">
57 <select id="menu" class="md-select" 57 <select id="menu" class="md-select"
58 disabled="[[!prefs.settings.enable_stylus_tools.value]]" 58 disabled="[[!prefs.settings.enable_stylus_tools.value]]"
59 on-change="onSelectedAppChanged_"> 59 on-change="onSelectedAppChanged_">
60 <template is="dom-repeat" items="[[appChoices_]]"> 60 <template is="dom-repeat" items="[[appChoices_]]">
61 <option value="[[item.value]]" selected$="[[item.preferred]]"> 61 <option value="[[item.value]]" selected="[[item.preferred]]">
62 [[item.name]] 62 [[item.name]]
63 </option> 63 </option>
64 </template> 64 </template>
65 </select> 65 </select>
66 <span class="md-select-underline"></span> 66 <span class="md-select-underline"></span>
67 </div> 67 </div>
68 </div> 68 </div>
69 69
70 <!-- TODO(scottchen): Make a proper a[href].settings-box with 70 <!-- TODO(scottchen): Make a proper a[href].settings-box with
71 icon-external (see: https://crbug.com/684005)--> 71 icon-external (see: https://crbug.com/684005)-->
72 <div class="settings-box two-line" on-tap="onFindAppsTap_" actionable 72 <div class="settings-box two-line" on-tap="onFindAppsTap_" actionable
73 hidden$="[[!prefs.arc.enabled.value]]"> 73 hidden$="[[!prefs.arc.enabled.value]]">
74 <div class="start"> 74 <div class="start">
75 $i18n{stylusFindMoreAppsPrimary} 75 $i18n{stylusFindMoreAppsPrimary}
76 <div class="secondary" id="stylusFindMoreAppsSecondary"> 76 <div class="secondary" id="stylusFindMoreAppsSecondary">
77 $i18n{stylusFindMoreAppsSecondary} 77 $i18n{stylusFindMoreAppsSecondary}
78 </div> 78 </div>
79 </div> 79 </div>
80 <button class="icon-external" is="paper-icon-button-light" 80 <button class="icon-external" is="paper-icon-button-light"
81 aria-label="$i18n{stylusFindMoreAppsPrimary}" 81 aria-label="$i18n{stylusFindMoreAppsPrimary}"
82 aria-describedby="stylusFindMoreAppsSecondary"></button> 82 aria-describedby="stylusFindMoreAppsSecondary"></button>
83 </div> 83 </div>
84 84
85 </template> 85 </template>
86 <script src="stylus.js"></script> 86 <script src="stylus.js"></script>
87 </dom-module> 87 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698