OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** | 5 /** |
6 * @fileoverview | 6 * @fileoverview |
7 * Class representing an entry in the host-list portion of the home screen. | 7 * Class representing an entry in the host-list portion of the home screen. |
8 */ | 8 */ |
9 | 9 |
10 /** @suppress {duplicate} */ | 10 /** @suppress {duplicate} */ |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 this.renameInputEventHooks_ = null; | 83 this.renameInputEventHooks_ = null; |
84 }; | 84 }; |
85 | 85 |
86 /** @return {string} */ | 86 /** @return {string} */ |
87 remoting.HostTableEntry.prototype.getHTML_ = function() { | 87 remoting.HostTableEntry.prototype.getHTML_ = function() { |
88 var html = | 88 var html = |
89 '<div class="host-list-main-icon">' + | 89 '<div class="host-list-main-icon">' + |
90 '<span class="warning-overlay"></span>' + | 90 '<span class="warning-overlay"></span>' + |
91 '<img src="icon_host.webp">' + | 91 '<img src="icon_host.webp">' + |
92 '</div>' + | 92 '</div>' + |
93 '<div class="box-spacer">' + | 93 '<div class="box-spacer host-list-clip">' + |
94 '<a class="host-name-label" href="#""></a>' + | 94 '<a class="host-name-label" href="#""></a>' + |
95 '<input class="host-rename-input" type="text" hidden/>' + | 95 '<input class="host-rename-input" type="text" hidden/>' + |
96 '</div>' + | 96 '</div>' + |
97 '<span tabindex="0" class="clickable host-list-edit rename-button">' + | 97 '<span tabindex="0" class="clickable host-list-edit rename-button">' + |
98 '<img src="icon_pencil.webp" class="host-list-rename-icon">' + | 98 '<img src="icon_pencil.webp" class="host-list-rename-icon">' + |
99 '</span>'; | 99 '</span>'; |
100 if (this.onDelete_) { | 100 if (this.onDelete_) { |
101 html += | 101 html += |
102 '<span tabindex="0" class="clickable host-list-edit delete-button">' + | 102 '<span tabindex="0" class="clickable host-list-edit delete-button">' + |
103 '<img src="icon_cross.webp" class="host-list-remove-icon">' + | 103 '<img src="icon_cross.webp" class="host-list-remove-icon">' + |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 405 } |
406 | 406 |
407 /** @enum {number} */ | 407 /** @enum {number} */ |
408 var KeyCodes = { | 408 var KeyCodes = { |
409 ENTER: 13, | 409 ENTER: 13, |
410 ESCAPE: 27, | 410 ESCAPE: 27, |
411 SPACEBAR: 32 | 411 SPACEBAR: 32 |
412 }; | 412 }; |
413 | 413 |
414 })(); | 414 })(); |
OLD | NEW |