blob: 1e5923f179235a7a3ad7a7cfeff94170f96138f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// 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.
/**
* @fileoverview 'password-edit-dialog' is the dialog that allows showing a
* saved password.
*/
(function() {
'use strict';
Polymer({
is: 'password-edit-dialog',
behaviors: [ShowPasswordBehavior],
/** @override */
attached: function() {
this.$.dialog.showModal();
},
/** Closes the dialog. */
close: function() {
this.$.dialog.close();
},
/**
* Handler for tapping the 'done' button. Should just dismiss the dialog.
* @private
*/
onActionButtonTap_: function() {
this.close();
},
/** Manually de-select texts for readonly inputs. */
onInputBlur_: function() {
this.shadowRoot.getSelection().removeAllRanges();
},
});
})();
|