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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Dialog.js

Issue 1760093003: [DevTools] Prepare UI module for closure compiler roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-array-from
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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 this._tabIndexMap.set(element, tabIndex); 149 this._tabIndexMap.set(element, tabIndex);
150 element.tabIndex = -1; 150 element.tabIndex = -1;
151 } 151 }
152 } 152 }
153 } 153 }
154 }, 154 },
155 155
156 _restoreTabIndexOnElements: function() 156 _restoreTabIndexOnElements: function()
157 { 157 {
158 for (var element of this._tabIndexMap.keys()) 158 for (var element of this._tabIndexMap.keys())
159 element.tabIndex = this._tabIndexMap.get(element); 159 element.tabIndex = /** @type {number} */(this._tabIndexMap.get(eleme nt));
160 this._tabIndexMap.clear(); 160 this._tabIndexMap.clear();
161 }, 161 },
162 162
163 /** 163 /**
164 * @param {!Event} event 164 * @param {!Event} event
165 */ 165 */
166 _onFocus: function(event) 166 _onFocus: function(event)
167 { 167 {
168 this.focus(); 168 this.focus();
169 }, 169 },
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 { 251 {
252 return WebInspector.Dialog._modalHostView; 252 return WebInspector.Dialog._modalHostView;
253 }; 253 };
254 254
255 WebInspector.Dialog.modalHostRepositioned = function() 255 WebInspector.Dialog.modalHostRepositioned = function()
256 { 256 {
257 if (WebInspector.Dialog._instance) 257 if (WebInspector.Dialog._instance)
258 WebInspector.Dialog._instance._position(); 258 WebInspector.Dialog._instance._position();
259 }; 259 };
260 260
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698