Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Unified Diff: ui/webui/resources/js/cr/ui/context_menu_handler.js

Issue 2786793002: Roll closure compiler (Closed)
Patch Set: Rerun with java 1.7 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/closure_compiler/externs/chrome_extensions.js ('k') | ui/webui/resources/js/cr/ui/tree.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/closure_compiler/externs/chrome_extensions.js ('k') | ui/webui/resources/js/cr/ui/tree.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698