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

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

Issue 1877233006: [Media Router WebUI] Fix escape bug in filter menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename focus update function 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 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 /**
11 * This corresponds to the C++ MediaCastMode, with the exception of AUTO. 11 * This corresponds to the C++ MediaCastMode, with the exception of AUTO.
12 * See below for details. Note to support fast bitset operations, the values 12 * See below for details. Note to support fast bitset operations, the values
13 * here are (1 << [corresponding value in MR]). 13 * here are (1 << [corresponding value in MR]).
14 * @enum {number} 14 * @enum {number}
15 */ 15 */
16 media_router.CastModeType = { 16 media_router.CastModeType = {
17 // Note: AUTO mode is only used to configure the sink list container to show 17 // Note: AUTO mode is only used to configure the sink list container to show
18 // all sinks. Individual sinks are configured with a specific cast mode 18 // all sinks. Individual sinks are configured with a specific cast mode
19 // (DEFAULT, TAB_MIRROR, DESKTOP_MIRROR). 19 // (DEFAULT, TAB_MIRROR, DESKTOP_MIRROR).
20 AUTO: -1, 20 AUTO: -1,
21 DEFAULT: 0x1, 21 DEFAULT: 0x1,
22 TAB_MIRROR: 0x2, 22 TAB_MIRROR: 0x2,
23 DESKTOP_MIRROR: 0x4, 23 DESKTOP_MIRROR: 0x4,
24 }; 24 };
25 25
26 /** 26 /**
27 * The ESC key maps to keycode '27'. 27 * The ESC key maps to KeyboardEvent.key value 'Escape'.
28 * @const {number} 28 * @const {string}
29 */ 29 */
30 media_router.KEYCODE_ESC = 27; 30 media_router.KEY_ESC = 'Escape';
31 31
32 /** 32 /**
33 * This corresponds to the C++ MediaRouterMetrics 33 * This corresponds to the C++ MediaRouterMetrics
34 * MediaRouterRouteCreationOutcome. 34 * MediaRouterRouteCreationOutcome.
35 * @enum {number} 35 * @enum {number}
36 */ 36 */
37 media_router.MediaRouterRouteCreationOutcome = { 37 media_router.MediaRouterRouteCreationOutcome = {
38 SUCCESS: 0, 38 SUCCESS: 0,
39 FAILURE_NO_ROUTE: 1, 39 FAILURE_NO_ROUTE: 1,
40 FAILURE_INVALID_SINK: 2, 40 FAILURE_INVALID_SINK: 2,
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 246
247 return { 247 return {
248 AUTO_CAST_MODE: AUTO_CAST_MODE, 248 AUTO_CAST_MODE: AUTO_CAST_MODE,
249 CastMode: CastMode, 249 CastMode: CastMode,
250 Issue: Issue, 250 Issue: Issue,
251 Route: Route, 251 Route: Route,
252 Sink: Sink, 252 Sink: Sink,
253 TabInfo: TabInfo, 253 TabInfo: TabInfo,
254 }; 254 };
255 }); 255 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698