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

Unified Diff: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js

Issue 1937963003: [Media Router WebUI] Move listeners to afterNextRender(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
diff --git a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
index f61b2ed6b874889275af2f10c317cfd4ef8de604..e4054a5520d50a5cc08f579c2ebcefcc1b7a70ac 100644
--- a/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
+++ b/chrome/browser/resources/media_router/elements/media_router_container/media_router_container.js
@@ -345,14 +345,6 @@ Polymer({
I18nBehavior,
],
- listeners: {
- 'focus': 'onFocus_',
- 'header-height-changed': 'updateElementPositioning_',
- 'header-or-arrow-click': 'toggleCastModeHidden_',
- 'mouseleave': 'onMouseLeave_',
- 'mouseenter': 'onMouseEnter_',
- },
-
observers: [
'maybeUpdateStartSinkDisplayStartTime_(currentView_, sinksToShow_)',
],
@@ -370,6 +362,11 @@ Polymer({
document.addEventListener('keydown', this.onKeydown_.bind(this), true);
this.setSearchFocusHandlers_();
+ this.listen(this, 'focus', 'onFocus_');
+ this.listen(this, 'header-height-changed', 'updateElementPositioning_');
+ this.listen(this, 'header-or-arrow-click', 'toggleCastModeHidden_');
+ this.listen(this, 'mouseleave', 'onMouseLeave_');
+ this.listen(this, 'mouseenter', 'onMouseEnter_');
// Turn off the spinner after 3 seconds, then report the current number of
// sinks.
« no previous file with comments | « no previous file | chrome/test/data/webui/media_router/media_router_container_cast_mode_list_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698