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

Side by Side Diff: chrome/browser/resources/media_router/media_router_data.js

Issue 1993003002: [Media Router WebUI] Disable search by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Any strings used here will already be localized. Values such as 5 // Any strings used here will already be localized. Values such as
6 // CastMode.type or IDs will be defined elsewhere and determined later. 6 // CastMode.type or IDs will be defined elsewhere and determined later.
7 7
8 cr.exportPath('media_router'); 8 cr.exportPath('media_router');
9 9
10 /** 10 /**
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 */ 59 */
60 media_router.MediaRouterView = { 60 media_router.MediaRouterView = {
61 CAST_MODE_LIST: 'cast-mode-list', 61 CAST_MODE_LIST: 'cast-mode-list',
62 FILTER: 'filter', 62 FILTER: 'filter',
63 ISSUE: 'issue', 63 ISSUE: 'issue',
64 ROUTE_DETAILS: 'route-details', 64 ROUTE_DETAILS: 'route-details',
65 SINK_LIST: 'sink-list', 65 SINK_LIST: 'sink-list',
66 }; 66 };
67 67
68 /** 68 /**
69 * The minimum number of sinks to have to enable the search input strictly for
70 * filtering (i.e. the Media Router doesn't support search so the search input
71 * only filters existing sinks).
72 * @const {number}
73 */
74 media_router.MINIMUM_SINKS_FOR_SEARCH = 20;
amp 2016/05/18 22:25:25 I think even at 10 it would useful. At 20 I would
btolsch 2016/05/18 22:39:33 My understanding from previous comments was even w
75
76 /**
69 * This corresponds to the C++ MediaSink IconType. 77 * This corresponds to the C++ MediaSink IconType.
70 * @enum {number} 78 * @enum {number}
71 */ 79 */
72 media_router.SinkIconType = { 80 media_router.SinkIconType = {
73 CAST: 0, 81 CAST: 0,
74 CAST_AUDIO: 1, 82 CAST_AUDIO: 1,
75 CAST_AUDIO_GROUP: 2, 83 CAST_AUDIO_GROUP: 2,
76 GENERIC: 3, 84 GENERIC: 3,
77 HANGOUT: 4, 85 HANGOUT: 4,
78 }; 86 };
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 257
250 return { 258 return {
251 AUTO_CAST_MODE: AUTO_CAST_MODE, 259 AUTO_CAST_MODE: AUTO_CAST_MODE,
252 CastMode: CastMode, 260 CastMode: CastMode,
253 Issue: Issue, 261 Issue: Issue,
254 Route: Route, 262 Route: Route,
255 Sink: Sink, 263 Sink: Sink,
256 TabInfo: TabInfo, 264 TabInfo: TabInfo,
257 }; 265 };
258 }); 266 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698