OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/autofill/personal_data_manager_observer.h" | 11 #include "chrome/browser/autofill/personal_data_manager_observer.h" |
12 #include "chrome/browser/ui/autofill/country_combobox_model.h" | |
Ilya Sherman
2013/02/26 09:57:07
nit: Can this be moved into the implementation fil
Evan Stade
2013/02/26 19:01:40
Done.
| |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 13 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 | 14 |
14 class PersonalDataManager; | 15 class PersonalDataManager; |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class DictionaryValue; | 18 class DictionaryValue; |
18 class ListValue; | 19 class ListValue; |
19 } | 20 } |
20 | 21 |
21 namespace options { | 22 namespace options { |
(...skipping 12 matching lines...) Expand all Loading... | |
34 virtual void RegisterMessages() OVERRIDE; | 35 virtual void RegisterMessages() OVERRIDE; |
35 | 36 |
36 // PersonalDataManagerObserver implementation. | 37 // PersonalDataManagerObserver implementation. |
37 virtual void OnPersonalDataChanged() OVERRIDE; | 38 virtual void OnPersonalDataChanged() OVERRIDE; |
38 | 39 |
39 private: | 40 private: |
40 // Loads the strings for the address and credit card overlays. | 41 // Loads the strings for the address and credit card overlays. |
41 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); | 42 void SetAddressOverlayStrings(base::DictionaryValue* localized_strings); |
42 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); | 43 void SetCreditCardOverlayStrings(base::DictionaryValue* localized_strings); |
43 | 44 |
45 // Sets data related to the country <select>. | |
46 void SetCountryData(base::DictionaryValue* localized_strings); | |
Ilya Sherman
2013/02/26 09:57:07
nit: Can this remain tucked into the anonymous nam
Evan Stade
2013/02/26 19:01:40
Done.
| |
47 | |
44 // Loads Autofill addresses and credit cards using the PersonalDataManager. | 48 // Loads Autofill addresses and credit cards using the PersonalDataManager. |
45 void LoadAutofillData(); | 49 void LoadAutofillData(); |
46 | 50 |
47 // Removes data from the PersonalDataManager. | 51 // Removes data from the PersonalDataManager. |
48 // |args| - A string, the GUID of the address or credit card to remove. | 52 // |args| - A string, the GUID of the address or credit card to remove. |
49 void RemoveData(const base::ListValue* args); | 53 void RemoveData(const base::ListValue* args); |
50 | 54 |
51 // Requests profile data for a specific address. Calls into WebUI with the | 55 // Requests profile data for a specific address. Calls into WebUI with the |
52 // loaded profile data to open the address editor. | 56 // loaded profile data to open the address editor. |
53 // |args| - A string, the GUID of the address to load. | 57 // |args| - A string, the GUID of the address to load. |
(...skipping 30 matching lines...) Expand all Loading... | |
84 // The personal data manager, used to load Autofill profiles and credit cards. | 88 // The personal data manager, used to load Autofill profiles and credit cards. |
85 // Unowned pointer, may not be NULL. | 89 // Unowned pointer, may not be NULL. |
86 PersonalDataManager* personal_data_; | 90 PersonalDataManager* personal_data_; |
87 | 91 |
88 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); | 92 DISALLOW_COPY_AND_ASSIGN(AutofillOptionsHandler); |
89 }; | 93 }; |
90 | 94 |
91 } // namespace options | 95 } // namespace options |
92 | 96 |
93 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ | 97 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_AUTOFILL_OPTIONS_HANDLER_H_ |
OLD | NEW |