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

Unified Diff: chrome/browser/resources/options/chromeos/note_overlay.js

Issue 2188033005: Add note page to options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-settings
Patch Set: Initial upload 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/options/chromeos/note_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/note_overlay.js b/chrome/browser/resources/options/chromeos/note_overlay.js
new file mode 100644
index 0000000000000000000000000000000000000000..c1d826511ba6ed780cd0063fbfdd86366a037397
--- /dev/null
+++ b/chrome/browser/resources/options/chromeos/note_overlay.js
@@ -0,0 +1,34 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+cr.define('options', function() {
+ /**
+ * Encapsulated handling of the note overlay.
+ * @constructor
+ * @extends {options.SettingsDialog}
+ */
+ function NoteOverlay() {
+ options.SettingsDialog.call(this, 'note-overlay',
+ loadTimeData.getString('noteOverlayTabTitle'),
+ 'note-overlay',
+ assertInstanceof($('note-confirm'), HTMLButtonElement),
+ assertInstanceof($('note-cancel'), HTMLButtonElement));
+ }
+
+ cr.addSingletonGetter(NoteOverlay);
+
+ NoteOverlay.prototype = {
+ __proto__: options.SettingsDialog.prototype,
+
+ /** @override */
+ initializePage: function() {
+ options.SettingsDialog.prototype.initializePage.call(this);
+ },
+ };
+
+ // Export
+ return {
+ NoteOverlay: NoteOverlay
+ };
+});
« no previous file with comments | « chrome/browser/resources/options/chromeos/note_overlay.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698