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

Side by Side Diff: chrome/browser/resources/options/chromeos/storage_clear_drive_cache_overlay.js

Issue 2070893003: Storage manager: Show Google Drive offline files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 cr.define('options', function() {
6 var Page = cr.ui.pageManager.Page;
7 var PageManager = cr.ui.pageManager.PageManager;
8
9 function StorageClearDriveCacheOverlay() {
10 Page.call(this, 'storageClearDriveCache',
11 loadTimeData.getString('storageClearDriveCachePageTabTitle'),
12 'clear-drive-cache-overlay-page');
13 }
14
15 cr.addSingletonGetter(StorageClearDriveCacheOverlay);
16
17 StorageClearDriveCacheOverlay.prototype = {
18 __proto__: Page.prototype,
19
20 /** @override */
21 initializePage: function() {
22 Page.prototype.initializePage.call(this);
23
24 $('clear-drive-cache-overlay-delete-button').onclick = function(e) {
25 chrome.send('clearDriveCache');
26 PageManager.closeOverlay();
27 };
28 $('clear-drive-cache-overlay-cancel-button').onclick = function(e) {
29 PageManager.closeOverlay();
30 };
31 },
32 };
33
34 return {
35 StorageClearDriveCacheOverlay: StorageClearDriveCacheOverlay
36 };
37 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698