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

Side by Side Diff: chrome/browser/dom_ui/options_ui.cc

Issue 3157027: DOMUI: Add the basic HTML for the 'Edit Address' AutoFill overlay. (Closed)
Patch Set: Review fixes 2. Created 10 years, 4 months 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
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 #include "chrome/browser/dom_ui/options_ui.h" 5 #include "chrome/browser/dom_ui/options_ui.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/resource_bundle.h" 9 #include "app/resource_bundle.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/singleton.h" 12 #include "base/singleton.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/thread.h" 15 #include "base/thread.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "base/values.h" 17 #include "base/values.h"
18 #include "chrome/browser/chrome_thread.h" 18 #include "chrome/browser/chrome_thread.h"
19 #include "chrome/browser/dom_ui/about_page_handler.h" 19 #include "chrome/browser/dom_ui/about_page_handler.h"
20 #include "chrome/browser/dom_ui/add_startup_page_handler.h" 20 #include "chrome/browser/dom_ui/add_startup_page_handler.h"
21 #include "chrome/browser/dom_ui/advanced_options_handler.h" 21 #include "chrome/browser/dom_ui/advanced_options_handler.h"
22 #include "chrome/browser/dom_ui/autofill_edit_address_handler.h"
22 #include "chrome/browser/dom_ui/autofill_options_handler.h" 23 #include "chrome/browser/dom_ui/autofill_options_handler.h"
23 #include "chrome/browser/dom_ui/browser_options_handler.h" 24 #include "chrome/browser/dom_ui/browser_options_handler.h"
24 #include "chrome/browser/dom_ui/clear_browser_data_handler.h" 25 #include "chrome/browser/dom_ui/clear_browser_data_handler.h"
25 #include "chrome/browser/dom_ui/content_settings_handler.h" 26 #include "chrome/browser/dom_ui/content_settings_handler.h"
26 #include "chrome/browser/dom_ui/core_options_handler.h" 27 #include "chrome/browser/dom_ui/core_options_handler.h"
27 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" 28 #include "chrome/browser/dom_ui/dom_ui_theme_source.h"
28 #include "chrome/browser/dom_ui/font_settings_handler.h" 29 #include "chrome/browser/dom_ui/font_settings_handler.h"
29 #include "chrome/browser/dom_ui/import_data_handler.h" 30 #include "chrome/browser/dom_ui/import_data_handler.h"
30 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h" 31 #include "chrome/browser/dom_ui/passwords_exceptions_handler.h"
31 #include "chrome/browser/dom_ui/personal_options_handler.h" 32 #include "chrome/browser/dom_ui/personal_options_handler.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 #if defined(OS_CHROMEOS) 126 #if defined(OS_CHROMEOS)
126 AddOptionsPageUIHandler(localized_strings, 127 AddOptionsPageUIHandler(localized_strings,
127 new chromeos::CoreChromeOSOptionsHandler()); 128 new chromeos::CoreChromeOSOptionsHandler());
128 #else 129 #else
129 AddOptionsPageUIHandler(localized_strings, new CoreOptionsHandler()); 130 AddOptionsPageUIHandler(localized_strings, new CoreOptionsHandler());
130 #endif 131 #endif
131 132
132 AddOptionsPageUIHandler(localized_strings, new AddStartupPageHandler()); 133 AddOptionsPageUIHandler(localized_strings, new AddStartupPageHandler());
133 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler()); 134 AddOptionsPageUIHandler(localized_strings, new AdvancedOptionsHandler());
135 AddOptionsPageUIHandler(localized_strings, new AutoFillEditAddressHandler());
134 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler()); 136 AddOptionsPageUIHandler(localized_strings, new AutoFillOptionsHandler());
135 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler()); 137 AddOptionsPageUIHandler(localized_strings, new BrowserOptionsHandler());
136 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler()); 138 AddOptionsPageUIHandler(localized_strings, new ClearBrowserDataHandler());
137 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler()); 139 AddOptionsPageUIHandler(localized_strings, new ContentSettingsHandler());
138 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler()); 140 AddOptionsPageUIHandler(localized_strings, new FontSettingsHandler());
139 AddOptionsPageUIHandler(localized_strings, new PasswordsExceptionsHandler()); 141 AddOptionsPageUIHandler(localized_strings, new PasswordsExceptionsHandler());
140 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler()); 142 AddOptionsPageUIHandler(localized_strings, new PersonalOptionsHandler());
141 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler()); 143 AddOptionsPageUIHandler(localized_strings, new SearchEngineManagerHandler());
142 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler()); 144 AddOptionsPageUIHandler(localized_strings, new ImportDataHandler());
143 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler()); 145 AddOptionsPageUIHandler(localized_strings, new StopSyncingHandler());
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize(); 201 (static_cast<OptionsPageUIHandler*>(*iter))->Initialize();
200 } 202 }
201 } 203 }
202 204
203 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings, 205 void OptionsUI::AddOptionsPageUIHandler(DictionaryValue* localized_strings,
204 OptionsPageUIHandler* handler) { 206 OptionsPageUIHandler* handler) {
205 DCHECK(handler); 207 DCHECK(handler);
206 handler->GetLocalizedValues(localized_strings); 208 handler->GetLocalizedValues(localized_strings);
207 AddMessageHandler(handler->Attach(this)); 209 AddMessageHandler(handler->Attach(this));
208 } 210 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/autofill_edit_address_handler.cc ('k') | chrome/browser/resources/options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698