• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
HomePhoneNumber()7 HomePhoneNumber::HomePhoneNumber() {}
8 
HomePhoneNumber(const HomePhoneNumber & phone)9 HomePhoneNumber::HomePhoneNumber(const HomePhoneNumber& phone)
10   : PhoneNumber(phone) {
11 }
12 
~HomePhoneNumber()13 HomePhoneNumber::~HomePhoneNumber() {}
14 
operator =(const HomePhoneNumber & phone)15 HomePhoneNumber& HomePhoneNumber::operator=(const HomePhoneNumber& phone) {
16   PhoneNumber::operator=(phone);
17   return *this;
18 }
19 
GetNumberType() const20 AutofillFieldType HomePhoneNumber::GetNumberType() const {
21   return PHONE_HOME_NUMBER;
22 }
23 
GetCityCodeType() const24 AutofillFieldType HomePhoneNumber::GetCityCodeType() const {
25   return PHONE_HOME_CITY_CODE;
26 }
27 
GetCountryCodeType() const28 AutofillFieldType HomePhoneNumber::GetCountryCodeType() const {
29   return PHONE_HOME_COUNTRY_CODE;
30 }
31 
GetCityAndNumberType() const32 AutofillFieldType HomePhoneNumber::GetCityAndNumberType() const {
33   return PHONE_HOME_CITY_AND_NUMBER;
34 }
35 
GetWholeNumberType() const36 AutofillFieldType HomePhoneNumber::GetWholeNumberType() const {
37   return PHONE_HOME_WHOLE_NUMBER;
38 }
39