| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/autofill/fax_number.h" | |
| 6 | |
| 7 FaxNumber::FaxNumber(AutofillProfile* profile) : PhoneNumber(profile) { | |
| 8 } | |
| 9 | |
| 10 FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) { | |
| 11 } | |
| 12 | |
| 13 FaxNumber::~FaxNumber() { | |
| 14 } | |
| 15 | |
| 16 FaxNumber& FaxNumber::operator=(const FaxNumber& fax) { | |
| 17 PhoneNumber::operator=(fax); | |
| 18 return *this; | |
| 19 } | |
| 20 | |
| 21 AutofillFieldType FaxNumber::GetNumberType() const { | |
| 22 return PHONE_FAX_NUMBER; | |
| 23 } | |
| 24 | |
| 25 AutofillFieldType FaxNumber::GetCityCodeType() const { | |
| 26 return PHONE_FAX_CITY_CODE; | |
| 27 } | |
| 28 | |
| 29 AutofillFieldType FaxNumber::GetCountryCodeType() const { | |
| 30 return PHONE_FAX_COUNTRY_CODE; | |
| 31 } | |
| 32 | |
| 33 AutofillFieldType FaxNumber::GetCityAndNumberType() const { | |
| 34 return PHONE_FAX_CITY_AND_NUMBER; | |
| 35 } | |
| 36 | |
| 37 AutofillFieldType FaxNumber::GetWholeNumberType() const { | |
| 38 return PHONE_FAX_WHOLE_NUMBER; | |
| 39 } | |
| OLD | NEW |