| 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 f22eb6060b7c1917e965499945928b544fe1b7b3..6fe3e3da25169b7f0d3c1310c5877f31cbcba4e4 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
|
| @@ -375,7 +375,8 @@ Polymer({
|
|
|
| /**
|
| * Sinks to display that match |searchInputText_|.
|
| - * @private {!Array<!media_router.Sink>}
|
| + * @private {!Array<!{sinkItem: !media_router.Sink,
|
| + * substrings: Array<!Array<number>>}>}
|
| */
|
| searchResultsToShow_: {
|
| type: Array,
|
| @@ -810,8 +811,9 @@ Polymer({
|
| },
|
|
|
| /**
|
| - * @param {!Array<!media_router.Sink>} searchResultsToShow The sinks currently
|
| - * matching the search text.
|
| + * @param {!Array<!{sinkItem: !media_router.Sink,
|
| + * substrings: Array<!Array<number>>}>} searchResultsToShow
|
| + * The sinks currently matching the search text.
|
| * @param {boolean} isUserSearching Whether the user is searching for sinks.
|
| * @return {boolean} Whether or not the 'no matches' message is hidden.
|
| * @private
|
| @@ -884,7 +886,9 @@ Polymer({
|
| /**
|
| * Computes whether the search results list should be hidden.
|
| * @param {boolean} isUserSearching Whether the user is searching for sinks.
|
| - * @param {!Array<!media_router.Sink>} searchResultsToShow The sinks currently
|
| + * @param {!Array<!{sinkItem: !media_router.Sink,
|
| + * substrings: Array<!Array<number>>}>} searchResultsToShow
|
| + * The sinks currently matching the search text.
|
| * @return {boolean} Whether the search results list should be hidden.
|
| * @private
|
| */
|
| @@ -1042,12 +1046,15 @@ Polymer({
|
| * first or last item in the list, as indicated by |currentView|.
|
| * @param {?media_router.MediaRouterView} currentView The current view of the
|
| * dialog.
|
| + * @param {!Array<!media_router.Sink>} sinksToShow The sinks available to
|
| + * display for the current cast mode.
|
| * @return {string} The CSS that correctly sets the padding of #sink-search
|
| * for the current view.
|
| * @private
|
| */
|
| - computeSinkSearchClass_: function(currentView) {
|
| - return (currentView == media_router.MediaRouterView.FILTER) ? '' : 'bottom';
|
| + computeSinkSearchClass_: function(currentView, sinksToShow) {
|
| + return (currentView == media_router.MediaRouterView.FILTER &&
|
| + sinksToShow.length > 0) ? '' : 'bottom';
|
| },
|
|
|
| /**
|
|
|