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