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

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

Issue 2178213002: Add note page to settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-add-switch
Patch Set: Address comments and add utility method Created 4 years, 5 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.js
diff --git a/chrome/browser/resources/settings/device_page/device_page.js b/chrome/browser/resources/settings/device_page/device_page.js
index 87dac5a6ccbdb78794eef13c73cb2b485b39c178..471696358b9fbb9c39378e979b64e4d9249983a9 100644
--- a/chrome/browser/resources/settings/device_page/device_page.js
+++ b/chrome/browser/resources/settings/device_page/device_page.js
@@ -39,6 +39,15 @@ Polymer({
type: Boolean,
value: false,
},
+
+ /** @private */
+ noteAllowed_: {
+ type: Boolean,
+ value: function() {
+ return loadTimeData.getBoolean('noteAllowed');
+ },
+ readOnly: true,
+ },
},
observers: [
@@ -95,6 +104,14 @@ Polymer({
},
/**
+ * Handler for tapping the Keyboard settings menu item.
+ * @private
+ */
+ onNoteTap_: function() {
+ this.$.pages.setSubpageChain(['note']);
+ },
+
+ /**
* Handler for tapping the Display settings menu item.
* @private
*/

Powered by Google App Engine
This is Rietveld 408576698