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

Side by Side Diff: components/autofill/ios/browser/resources/suggestion_controller.js

Issue 2449333002: [ios] Pass more --jscomp_error switches to the closure Compiler. (Closed)
Patch Set: Created 4 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // Installs suggestion management functions on the |__gCrWeb| object. 5 /**
6 * @fileoverview Installs suggestion management functions on the
7 * __gCrWeb object.
8 *
9 * TODO(crbug.com/647084): Enable checkTypes error for this file.
10 * @suppress {checkTypes}
11 */
6 12
7 /* Beginning of anonymous object. */ 13 /* Beginning of anonymous object. */
8 (function() { 14 (function() {
9 15
10 /** 16 /**
11 * Namespace for this file. It depends on |__gCrWeb| having already been 17 * Namespace for this file. It depends on |__gCrWeb| having already been
12 * injected. 18 * injected.
13 */ 19 */
14 __gCrWeb['suggestion'] = {}; 20 __gCrWeb.suggestion = {};
21 __gCrWeb['suggestion'] = __gCrWeb.suggestion;
15 22
16 /** 23 /**
17 * Returns the first element in |elements| that is later than |elementToCompare| 24 * Returns the first element in |elements| that is later than |elementToCompare|
18 * in tab order. 25 * in tab order.
19 * 26 *
20 * @param {Element} elementToCompare The element to start searching forward in 27 * @param {Element} elementToCompare The element to start searching forward in
21 * tab order from. 28 * tab order from.
22 * @param {NodeList} elementList Elements in which the first element that is 29 * @param {NodeList} elementList Elements in which the first element that is
23 * later than |elementToCompare| in tab order is to be returned if there is 30 * later than |elementToCompare| in tab order is to be returned if there is
24 * one; |elements| should be sorted in DOM tree order and should contain 31 * one; |elements| should be sorted in DOM tree order and should contain
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 */ 318 */
312 __gCrWeb.suggestion['hasPreviousElement'] = function(formName, fieldName) { 319 __gCrWeb.suggestion['hasPreviousElement'] = function(formName, fieldName) {
313 var currentElement = 320 var currentElement =
314 formName ? __gCrWeb.suggestion.getFormElement(formName, fieldName) : 321 formName ? __gCrWeb.suggestion.getFormElement(formName, fieldName) :
315 document.activeElement; 322 document.activeElement;
316 return __gCrWeb.suggestion.getPreviousElementInTabOrder( 323 return __gCrWeb.suggestion.getPreviousElementInTabOrder(
317 currentElement, document.all) !== null; 324 currentElement, document.all) !== null;
318 }; 325 };
319 326
320 }()); // End of anonymous object 327 }()); // End of anonymous object
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698