1 // Copyright 2015 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.
6 * @fileoverview Polymer element for displaying and editing a single
7 * network proxy value. When the URL or port changes, a 'proxy-change' event is
8 * fired with the combined url and port values passed as a single string,
12 is
: 'network-proxy-input',
16 * Whether or not the proxy value can be edited.
24 * A label for the proxy value.
33 * @type {?CrOnc.ProxyLocation}
37 value: function() { return {Host
: '', Port
: 80}; },
43 * Event triggered when an input value changes.
46 onValueChange_: function() {
47 var port
= parseInt(this.value
.Port
);
50 this.value
.Port
= port
;
51 this.fire('proxy-change', {value
: this.value
});