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

Side by Side Diff: chrome/browser/resources/pdf/elements/viewer-password-screen-legacy/viewer-password-screen-legacy.js

Issue 1128863006: PDF: Split elements shared between material and non-material PDF viewers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pdf_material_polymer_v08_deps
Patch Set: Fix additional occurences in CSS Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 Polymer('viewer-password-screen', { 5 Polymer('viewer-password-screen-legacy', {
6 text: 'This document is password protected. Please enter a password.', 6 text: 'This document is password protected. Please enter a password.',
7 active: false, 7 active: false,
8 timerId: undefined, 8 timerId: undefined,
9 ready: function() { 9 ready: function() {
10 this.activeChanged(); 10 this.activeChanged();
11 }, 11 },
12 accept: function() { 12 accept: function() {
13 this.active = false; 13 this.active = false;
14 }, 14 },
15 deny: function() { 15 deny: function() {
(...skipping 19 matching lines...) Expand all
35 this.style.opacity = 1; 35 this.style.opacity = 1;
36 this.$.password.focus(); 36 this.$.password.focus();
37 } else { 37 } else {
38 this.style.opacity = 0; 38 this.style.opacity = 0;
39 this.timerId = setTimeout(function() { 39 this.timerId = setTimeout(function() {
40 this.style.visibility = 'hidden'; 40 this.style.visibility = 'hidden';
41 }.bind(this), 400); 41 }.bind(this), 400);
42 } 42 }
43 } 43 }
44 }); 44 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698