diff options
author | tommycli <tommycli@chromium.org> | 2016-03-23 20:18:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-24 03:20:04 +0000 |
commit | c1ae8d0ee837e16459373f64068f0cb8542dbd9f (patch) | |
tree | 075944d5f4b95432d23551747adac32b116b66d9 /remoting | |
parent | 014c5fe9eeede6eab27096ccc6de1256971d45d3 (diff) | |
download | chromium_src-c1ae8d0ee837e16459373f64068f0cb8542dbd9f.zip chromium_src-c1ae8d0ee837e16459373f64068f0cb8542dbd9f.tar.gz chromium_src-c1ae8d0ee837e16459373f64068f0cb8542dbd9f.tar.bz2 |
Remoting: Fix up compile with run_jscompile=1
BUG=
Review URL: https://codereview.chromium.org/1830013002
Cr-Commit-Position: refs/heads/master@{#383022}
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) { |