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

Side by Side Diff: chrome/browser/chromeos/dom_ui/system_options_handler.h

Issue 3143009: Reenabled ChromeOS system setting for timezone selection.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | Annotate | Revision Log
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_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/string16.h" 11 #include "chrome/browser/chromeos/dom_ui/cros_options_page_ui_handler.h"
12 #include "chrome/browser/dom_ui/options_ui.h" 12
13 #include "third_party/icu/public/i18n/unicode/timezone.h" 13 class DictionaryValue;
14 14
15 // ChromeOS system options page UI handler. 15 // ChromeOS system options page UI handler.
16 class SystemOptionsHandler : public OptionsPageUIHandler { 16 class SystemOptionsHandler : public chromeos::CrosOptionsPageUIHandler {
17 public: 17 public:
18 SystemOptionsHandler(); 18 SystemOptionsHandler();
19 virtual ~SystemOptionsHandler(); 19 virtual ~SystemOptionsHandler();
20 20
21 // OptionsUIHandler implementation. 21 // OptionsUIHandler implementation.
22 virtual void GetLocalizedValues(DictionaryValue* localized_strings); 22 virtual void GetLocalizedValues(DictionaryValue* localized_strings);
23 23
24 private: 24 private:
25 // Creates the map of timezones used by the options page.
26 ListValue* GetTimezoneList();
27
28 // Gets timezone name.
29 string16 GetTimezoneName(const icu::TimeZone* timezone);
30
31 // Gets timezone ID which is also used as timezone pref value.
32 string16 GetTimezoneID(const icu::TimeZone* timezone);
33
34 // Timezones.
35 std::vector<icu::TimeZone*> timezones_;
36
37 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler); 25 DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
38 }; 26 };
39 27
40 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_ 28 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698