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

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

Issue 1812663002: [Media Router WebUI] Fix search input padding to match redlines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html ('k') | no next file » | 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 fb34a147649ade3049aef041706237a478713609..c51a215d05fb178675f17a1a534067fb47ced909 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
@@ -1036,6 +1036,19 @@ Polymer({
},
/**
+ * Computes the CSS class for #sink-search depending on whether it is the
+ * first or last item in the list, as indicated by |currentView|.
+ * @param {?media_router.MediaRouterView} currentView The current view of the
+ * dialog.
+ * @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';
+ },
+
+ /**
* Returns the subtext to be shown for |sink|. Only called if
* |computeSinkSubtextHidden_| returns false for the same |sink| and
* |sinkToRouteMap|.
« no previous file with comments | « chrome/browser/resources/media_router/elements/media_router_container/media_router_container.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698