Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Side by Side Diff: chrome/browser/autofill/home_phone_number.h

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/address_field.cc ('k') | chrome/browser/autofill/home_phone_number.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/autofill/phone_number.h" 9 #include "chrome/browser/autofill/phone_number.h"
10 10
11 class FormGroup; 11 class FormGroup;
12 12
13 class HomePhoneNumber : public PhoneNumber { 13 class HomePhoneNumber : public PhoneNumber {
14 public: 14 public:
15 HomePhoneNumber() {} 15 HomePhoneNumber() {}
16 virtual FormGroup* Clone() const { return new HomePhoneNumber(*this); } 16 virtual FormGroup* Clone() const;
17 17
18 protected: 18 protected:
19 virtual AutoFillFieldType GetNumberType() const { 19 virtual AutoFillFieldType GetNumberType() const;
20 return PHONE_HOME_NUMBER; 20 virtual AutoFillFieldType GetCityCodeType() const;
21 } 21 virtual AutoFillFieldType GetCountryCodeType() const;
22 22 virtual AutoFillFieldType GetCityAndNumberType() const;
23 virtual AutoFillFieldType GetCityCodeType() const { 23 virtual AutoFillFieldType GetWholeNumberType() const;
24 return PHONE_HOME_CITY_CODE;
25 }
26
27 virtual AutoFillFieldType GetCountryCodeType() const {
28 return PHONE_HOME_COUNTRY_CODE;
29 }
30
31 virtual AutoFillFieldType GetCityAndNumberType() const {
32 return PHONE_HOME_CITY_AND_NUMBER;
33 }
34
35 virtual AutoFillFieldType GetWholeNumberType() const {
36 return PHONE_HOME_WHOLE_NUMBER;
37 }
38 24
39 private: 25 private:
40 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {} 26 explicit HomePhoneNumber(const HomePhoneNumber& phone) : PhoneNumber(phone) {}
41 void operator=(const HomePhoneNumber& phone); 27 void operator=(const HomePhoneNumber& phone);
42 }; 28 };
43 29
44 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_ 30 #endif // CHROME_BROWSER_AUTOFILL_HOME_PHONE_NUMBER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/address_field.cc ('k') | chrome/browser/autofill/home_phone_number.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698