summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/fax_number.cc
blob: 3d1a65139fc4bc69c9cf86647c84d76bbf4ec302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/browser/autofill/fax_number.h"

FaxNumber::FaxNumber() {}

FaxNumber::FaxNumber(const FaxNumber& fax) : PhoneNumber(fax) {}

FaxNumber::~FaxNumber() {}

FaxNumber& FaxNumber::operator=(const FaxNumber& fax) {
  PhoneNumber::operator=(fax);
  return *this;
}

AutofillFieldType FaxNumber::GetNumberType() const {
  return PHONE_FAX_NUMBER;
}

AutofillFieldType FaxNumber::GetCityCodeType() const {
  return PHONE_FAX_CITY_CODE;
}

AutofillFieldType FaxNumber::GetCountryCodeType() const {
  return PHONE_FAX_COUNTRY_CODE;
}

AutofillFieldType FaxNumber::GetCityAndNumberType() const {
  return PHONE_FAX_CITY_AND_NUMBER;
}

AutofillFieldType FaxNumber::GetWholeNumberType() const {
  return PHONE_FAX_WHOLE_NUMBER;
}