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

Unified Diff: ui/file_manager/zip_archiver/unpacker/js/passphrase-dialog.js

Issue 2804453002: Move files from zip_archiver/unpacker/ to zip_archiver/. (Closed)
Patch Set: Move files from zip_archiver/unpacker/ to zip_archiver/. Created 3 years, 8 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: ui/file_manager/zip_archiver/unpacker/js/passphrase-dialog.js
diff --git a/ui/file_manager/zip_archiver/unpacker/js/passphrase-dialog.js b/ui/file_manager/zip_archiver/unpacker/js/passphrase-dialog.js
deleted file mode 100644
index 74dbcd8b2b6cd60a35d0c9f007be9231ea04934b..0000000000000000000000000000000000000000
--- a/ui/file_manager/zip_archiver/unpacker/js/passphrase-dialog.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2014 The Chromium OS Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @fileoverview
- * @suppress {globalThis|missingProperties}
- */
-
-Polymer({
- i18n: function(name) {
- // For tests, chrome.i18n API is not available.
- return chrome.i18n ? chrome.i18n.getMessage(name) : name;
- },
-
- cancel: function() {
- window.close();
- },
-
- accept: function() {
- window.onPassphraseSuccess(this.$.input.value, this.$.remember.checked);
- window.close();
- },
-
- ready: function() {
- document.addEventListener('keydown', function(event) {
- if (event.keyCode == 13) // Enter
- this.$.acceptButton.click();
-
- if (event.keyCode == 27) // Escape
- this.$.cancelButton.click();
- }.bind(this));
-
- // Show the window once ready. Not available for tests.
- if (chrome.app && chrome.app.window)
- chrome.app.window.current().show();
-
- if (window.onEverythingLoaded)
- window.onEverythingLoaded();
- }
-});

Powered by Google App Engine
This is Rietveld 408576698