Index: ui/webui/resources/js/cr/ui/context_menu_handler.js |
diff --git a/ui/webui/resources/js/cr/ui/context_menu_handler.js b/ui/webui/resources/js/cr/ui/context_menu_handler.js |
index 8e0ccff863e8b309cdb9e70ba2d51671a579096d..ce31f6517b5021a2f723028df2e1b5a2805e0809 100644 |
--- a/ui/webui/resources/js/cr/ui/context_menu_handler.js |
+++ b/ui/webui/resources/js/cr/ui/context_menu_handler.js |
@@ -15,6 +15,7 @@ cr.define('cr.ui', function() { |
* @implements {EventListener} |
*/ |
function ContextMenuHandler() { |
+ /** @private {!EventTracker} */ |
this.showingEvents_ = new EventTracker(); |
} |
@@ -48,7 +49,7 @@ cr.define('cr.ui', function() { |
// When the menu is shown we steal a lot of events. |
var doc = menu.ownerDocument; |
- var win = doc.defaultView; |
+ var win = /** @type {!Window} */ (doc.defaultView); |
this.showingEvents_.add(doc, 'keydown', this, true); |
this.showingEvents_.add(doc, 'mousedown', this, true); |
this.showingEvents_.add(doc, 'touchstart', this, true); |