| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| 6 #define CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 6 #define CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/autofill/phone_number.h" | 8 #include "chrome/browser/autofill/phone_number.h" |
| 9 | 9 |
| 10 class FormGroup; | 10 class FormGroup; |
| 11 | 11 |
| 12 class HomePhoneNumber : public PhoneNumber { | 12 class HomePhoneNumber : public PhoneNumber { |
| 13 public: | 13 public: |
| 14 HomePhoneNumber() {} |
| 14 virtual FormGroup* Clone() const { return new HomePhoneNumber(*this); } | 15 virtual FormGroup* Clone() const { return new HomePhoneNumber(*this); } |
| 15 | 16 |
| 16 protected: | 17 protected: |
| 17 virtual AutoFillFieldType GetNumberType() const { | 18 virtual AutoFillFieldType GetNumberType() const { |
| 18 return PHONE_HOME_NUMBER; | 19 return PHONE_HOME_NUMBER; |
| 19 } | 20 } |
| 20 | 21 |
| 21 virtual AutoFillFieldType GetCityCodeType() const { | 22 virtual AutoFillFieldType GetCityCodeType() const { |
| 22 return PHONE_HOME_CITY_CODE; | 23 return PHONE_HOME_CITY_CODE; |
| 23 } | 24 } |
| 24 | 25 |
| 25 virtual AutoFillFieldType GetCountryCodeType() const { | 26 virtual AutoFillFieldType GetCountryCodeType() const { |
| 26 return PHONE_HOME_COUNTRY_CODE; | 27 return PHONE_HOME_COUNTRY_CODE; |
| 27 } | 28 } |
| 28 | 29 |
| 29 virtual AutoFillFieldType GetCityAndNumberType() const { | 30 virtual AutoFillFieldType GetCityAndNumberType() const { |
| 30 return PHONE_HOME_CITY_AND_NUMBER; | 31 return PHONE_HOME_CITY_AND_NUMBER; |
| 31 } | 32 } |
| 32 | 33 |
| 33 virtual AutoFillFieldType GetWholeNumberType() const { | 34 virtual AutoFillFieldType GetWholeNumberType() const { |
| 34 return PHONE_HOME_WHOLE_NUMBER; | 35 return PHONE_HOME_WHOLE_NUMBER; |
| 35 } | 36 } |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {} | 39 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {} |
| 39 void operator=(const HomePhoneNumber& phone); | 40 void operator=(const HomePhoneNumber& phone); |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ | 43 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ |
| OLD | NEW |