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

Side by Side Diff: chrome/browser/ui/webui/options2/options_ui2.cc

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: More refactor Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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 #include "chrome/browser/ui/webui/options2/options_ui2.h" 5 #include "chrome/browser/ui/webui/options2/options_ui2.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 #include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handle r2.h" 62 #include "chrome/browser/ui/webui/options2/chromeos/core_chromeos_options_handle r2.h"
63 #include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handle r2.h" 63 #include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handle r2.h"
64 #include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h" 64 #include "chrome/browser/ui/webui/options2/chromeos/internet_options_handler2.h"
65 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h" 65 #include "chrome/browser/ui/webui/options2/chromeos/language_chewing_handler2.h"
66 #include "chrome/browser/ui/webui/options2/chromeos/keyboard_handler2.h" 66 #include "chrome/browser/ui/webui/options2/chromeos/keyboard_handler2.h"
67 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h" 67 #include "chrome/browser/ui/webui/options2/chromeos/language_hangul_handler2.h"
68 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h" 68 #include "chrome/browser/ui/webui/options2/chromeos/language_mozc_handler2.h"
69 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h" 69 #include "chrome/browser/ui/webui/options2/chromeos/language_pinyin_handler2.h"
70 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h" 70 #include "chrome/browser/ui/webui/options2/chromeos/pointer_handler2.h"
71 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h" 71 #include "chrome/browser/ui/webui/options2/chromeos/proxy_handler2.h"
72 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r2.h"
flackr 2012/03/05 16:16:03 This seems inconsistent with everywhere else where
bshe 2012/03/06 01:33:27 Done. Put everything behind ash.
72 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h" 73 #include "chrome/browser/ui/webui/options2/chromeos/stats_options_handler2.h"
73 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h" 74 #include "chrome/browser/ui/webui/options2/chromeos/user_image_source2.h"
74 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han dler2.h" 75 #include "chrome/browser/ui/webui/options2/chromeos/virtual_keyboard_manager_han dler2.h"
75 #endif 76 #endif
76 77
77 #if defined(USE_NSS) 78 #if defined(USE_NSS)
78 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h" 79 #include "chrome/browser/ui/webui/options2/certificate_manager_handler2.h"
79 #endif 80 #endif
80 81
81 using content::WebContents; 82 using content::WebContents;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 new chromeos::options2::LanguagePinyinHandler()); 211 new chromeos::options2::LanguagePinyinHandler());
211 AddOptionsPageUIHandler(localized_strings, 212 AddOptionsPageUIHandler(localized_strings,
212 new chromeos::options2::PointerHandler()); 213 new chromeos::options2::PointerHandler());
213 AddOptionsPageUIHandler( 214 AddOptionsPageUIHandler(
214 localized_strings, 215 localized_strings,
215 new chromeos::options2::VirtualKeyboardManagerHandler()); 216 new chromeos::options2::VirtualKeyboardManagerHandler());
216 AddOptionsPageUIHandler(localized_strings, 217 AddOptionsPageUIHandler(localized_strings,
217 new chromeos::options2::ProxyHandler()); 218 new chromeos::options2::ProxyHandler());
218 AddOptionsPageUIHandler( 219 AddOptionsPageUIHandler(
219 localized_strings, 220 localized_strings,
221 new chromeos::options2::SetWallpaperOptionsHandler());
222 AddOptionsPageUIHandler(
223 localized_strings,
220 new chromeos::options2::ChangePictureOptionsHandler()); 224 new chromeos::options2::ChangePictureOptionsHandler());
221 AddOptionsPageUIHandler(localized_strings, 225 AddOptionsPageUIHandler(localized_strings,
222 new chromeos::options2::StatsOptionsHandler()); 226 new chromeos::options2::StatsOptionsHandler());
223 #endif 227 #endif
224 #if defined(USE_NSS) 228 #if defined(USE_NSS)
225 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler()); 229 AddOptionsPageUIHandler(localized_strings, new CertificateManagerHandler());
226 #endif 230 #endif
227 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler()); 231 AddOptionsPageUIHandler(localized_strings, new HandlerOptionsHandler());
228 232
229 // |localized_strings| ownership is taken over by this constructor. 233 // |localized_strings| ownership is taken over by this constructor.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString()); 319 WideToASCII(CommandLine::ForCurrentProcess()->GetCommandLineString());
316 #else 320 #else
317 command_line_string = 321 command_line_string =
318 CommandLine::ForCurrentProcess()->GetCommandLineString(); 322 CommandLine::ForCurrentProcess()->GetCommandLineString();
319 #endif 323 #endif
320 324
321 render_view_host->SetWebUIProperty("commandLineString", command_line_string); 325 render_view_host->SetWebUIProperty("commandLineString", command_line_string);
322 } 326 }
323 327
324 } // namespace options2 328 } // namespace options2
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698