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

Side by Side Diff: chrome/browser/resources/options/autofill_options_list.js

Issue 7892048: Autofill: Remove fax number completely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fix. Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 cr.define('options.autofillOptions', function() { 5 cr.define('options.autofillOptions', function() {
6 const DeletableItem = options.DeletableItem; 6 const DeletableItem = options.DeletableItem;
7 const DeletableItemList = options.DeletableItemList; 7 const DeletableItemList = options.DeletableItemList;
8 const InlineEditableItem = options.InlineEditableItem; 8 const InlineEditableItem = options.InlineEditableItem;
9 const InlineEditableItemList = options.InlineEditableItemList; 9 const InlineEditableItemList = options.InlineEditableItemList;
10 10
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 var numbers = this.dataModel.slice(0, this.dataModel.length - 1); 359 var numbers = this.dataModel.slice(0, this.dataModel.length - 1);
360 numbers.splice(index, remove, value); 360 numbers.splice(index, remove, value);
361 var info = new Array(); 361 var info = new Array();
362 info[0] = index; 362 info[0] = index;
363 info[1] = numbers; 363 info[1] = numbers;
364 info[2] = $('country').value; 364 info[2] = $('country').value;
365 chrome.send('validatePhoneNumbers', info); 365 chrome.send('validatePhoneNumbers', info);
366 }, 366 },
367 }; 367 };
368 368
369 /**
370 * Create a new value list for fax number validation.
371 * @constructor
372 * @extends {options.AutofillValuesList}
373 */
374 var AutofillFaxValuesList = cr.ui.define('list');
375
376 AutofillFaxValuesList.prototype = {
377 __proto__: AutofillValuesList.prototype,
378
379 decorate: function() {
380 AutofillValuesList.prototype.decorate.call(this);
381 },
382
383 /** @inheritDoc */
384 validateAndSave: function(index, remove, value) {
385 var numbers = this.dataModel.slice(0, this.dataModel.length - 1);
386 numbers.splice(index, remove, value);
387 var info = new Array();
388 info[0] = index;
389 info[1] = numbers;
390 info[2] = $('country').value;
391 chrome.send('validateFaxNumbers', info);
392 },
393 };
394
395 return { 369 return {
396 AddressListItem: AddressListItem, 370 AddressListItem: AddressListItem,
397 CreditCardListItem: CreditCardListItem, 371 CreditCardListItem: CreditCardListItem,
398 ValuesListItem: ValuesListItem, 372 ValuesListItem: ValuesListItem,
399 ValuesAddRowListItem: ValuesAddRowListItem, 373 ValuesAddRowListItem: ValuesAddRowListItem,
400 AutofillAddressList: AutofillAddressList, 374 AutofillAddressList: AutofillAddressList,
401 AutofillCreditCardList: AutofillCreditCardList, 375 AutofillCreditCardList: AutofillCreditCardList,
402 AutofillValuesList: AutofillValuesList, 376 AutofillValuesList: AutofillValuesList,
403 AutofillPhoneValuesList: AutofillPhoneValuesList, 377 AutofillPhoneValuesList: AutofillPhoneValuesList,
404 AutofillFaxValuesList: AutofillFaxValuesList,
405 }; 378 };
406 }); 379 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698