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() {} 8 9 FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) {} 10 11 FaxNumber::~FaxNumber() {} 12 13 FaxNumber& FaxNumber::operator=(const FaxNumber& fax) { 14 PhoneNumber::operator=(fax); 15 return *this; 16 } 17 18 AutofillFieldType FaxNumber::GetNumberType() const { 19 return PHONE_FAX_NUMBER; 20 } 21 22 AutofillFieldType FaxNumber::GetCityCodeType() const { 23 return PHONE_FAX_CITY_CODE; 24 } 25 26 AutofillFieldType FaxNumber::GetCountryCodeType() const { 27 return PHONE_FAX_COUNTRY_CODE; 28 } 29 30 AutofillFieldType FaxNumber::GetCityAndNumberType() const { 31 return PHONE_FAX_CITY_AND_NUMBER; 32 } 33 34 AutofillFieldType FaxNumber::GetWholeNumberType() const { 35 return PHONE_FAX_WHOLE_NUMBER; 36 } 37