| 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/home_phone_number.h" | |
| 6 | |
| 7 HomePhoneNumber::HomePhoneNumber(AutofillProfile* profile) | |
| 8 : PhoneNumber(profile) { | |
| 9 } | |
| 10 | |
| 11 HomePhoneNumber::HomePhoneNumber(const HomePhoneNumber& phone) | |
| 12 : PhoneNumber(phone) { | |
| 13 } | |
| 14 | |
| 15 HomePhoneNumber::~HomePhoneNumber() { | |
| 16 } | |
| 17 | |
| 18 HomePhoneNumber& HomePhoneNumber::operator=(const HomePhoneNumber& phone) { | |
| 19 PhoneNumber::operator=(phone); | |
| 20 return *this; | |
| 21 } | |
| 22 | |
| 23 AutofillFieldType HomePhoneNumber::GetNumberType() const { | |
| 24 return PHONE_HOME_NUMBER; | |
| 25 } | |
| 26 | |
| 27 AutofillFieldType HomePhoneNumber::GetCityCodeType() const { | |
| 28 return PHONE_HOME_CITY_CODE; | |
| 29 } | |
| 30 | |
| 31 AutofillFieldType HomePhoneNumber::GetCountryCodeType() const { | |
| 32 return PHONE_HOME_COUNTRY_CODE; | |
| 33 } | |
| 34 | |
| 35 AutofillFieldType HomePhoneNumber::GetCityAndNumberType() const { | |
| 36 return PHONE_HOME_CITY_AND_NUMBER; | |
| 37 } | |
| 38 | |
| 39 AutofillFieldType HomePhoneNumber::GetWholeNumberType() const { | |
| 40 return PHONE_HOME_WHOLE_NUMBER; | |
| 41 } | |
| OLD | NEW |