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