diff options
Diffstat (limited to 'remoting')
-rw-r--r-- | remoting/tools/javascript_key_tester/chord_tracker.js | 14 | ||||
-rw-r--r-- | remoting/tools/javascript_key_tester/event_listeners.js | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/remoting/tools/javascript_key_tester/chord_tracker.js b/remoting/tools/javascript_key_tester/chord_tracker.js index 29384a0b..ebc3448 100644 --- a/remoting/tools/javascript_key_tester/chord_tracker.js +++ b/remoting/tools/javascript_key_tester/chord_tracker.js @@ -5,14 +5,14 @@ /** * @constructor - * @param {HTMLElement} parentDiv + * @param {Element} parentDiv */ var ChordTracker = function(parentDiv) { - /** @type {HTMLElement} */ + /** @type {Element} */ this.parentDiv_ = parentDiv; - /** @type {HTMLElement} */ + /** @type {Element} */ this.currentDiv_ = null; - /** @type {Object<HTMLElement>} */ + /** @type {Object<Element>} */ this.pressedKeys_ = {}; }; @@ -64,11 +64,11 @@ ChordTracker.prototype.releaseAllKeys = function() { * @param {string} className * @param {string} text * @param {string} title - * @return {HTMLElement} + * @return {Element} */ ChordTracker.prototype.addSpanElement_ = function(className, text, title) { this.begin_(); - var span = /** @type {HTMLElement} */ (document.createElement('span')); + var span = /** @type {Element} */ (document.createElement('span')); span.classList.add(className); span.classList.add('key-div'); span.innerText = text; @@ -84,7 +84,7 @@ ChordTracker.prototype.begin_ = function() { if (this.currentDiv_) { return; } - this.currentDiv_ = /** @type {HTMLElement} */ (document.createElement('div')); + this.currentDiv_ = /** @type {Element} */ (document.createElement('div')); this.currentDiv_.classList.add('chord-div'); this.parentDiv_.appendChild(this.currentDiv_); }; diff --git a/remoting/tools/javascript_key_tester/event_listeners.js b/remoting/tools/javascript_key_tester/event_listeners.js index 96bd12a..164777c 100644 --- a/remoting/tools/javascript_key_tester/event_listeners.js +++ b/remoting/tools/javascript_key_tester/event_listeners.js @@ -19,10 +19,10 @@ var PNaClEvent = function() { /** - * @param {HTMLElement} pnaclLog - * @param {HTMLElement} textLog - * @param {HTMLElement} pnaclPlugin - * @param {HTMLElement} pnaclListener + * @param {Element} pnaclLog + * @param {Element} textLog + * @param {Element} pnaclPlugin + * @param {Element} pnaclListener * @constructor */ var EventListeners = function(pnaclLog, textLog, pnaclPlugin, pnaclListener) { |