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

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

Issue 2009543002: Add storage manager overlay on Settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 7 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/storage_manager.js
diff --git a/chrome/browser/resources/options/chromeos/storage_manager.js b/chrome/browser/resources/options/chromeos/storage_manager.js
new file mode 100644
index 0000000000000000000000000000000000000000..15d1b7389510e587446a3efe6b3c8cacf6a1157d
--- /dev/null
+++ b/chrome/browser/resources/options/chromeos/storage_manager.js
@@ -0,0 +1,33 @@
+// Copyright 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() {
+ var Page = cr.ui.pageManager.Page;
+ var PageManager = cr.ui.pageManager.PageManager;
+
+ function StorageManager() {
+ Page.call(this, 'storage',
+ loadTimeData.getString('storageManagerPageTabTitle'),
+ 'storageManagerPage');
+ }
+
+ cr.addSingletonGetter(StorageManager);
+
+ StorageManager.prototype = {
+ __proto__: Page.prototype,
+
+ /** @override */
+ initializePage: function() {
+ Page.prototype.initializePage.call(this);
+
+ $('storage-confirm').onclick = function() {
+ PageManager.closeOverlay();
+ };
+ }
+ };
+
+ return {
+ StorageManager: StorageManager
+ };
+});
« no previous file with comments | « chrome/browser/resources/options/chromeos/storage_manager.html ('k') | chrome/browser/resources/options/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698