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

Unified Diff: chrome/browser/chromeos/dom_ui/system_options_handler.h

Issue 2781005: Option dialog DOM UI - ChromeOS System page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/dom_ui/system_options_handler.h
===================================================================
--- chrome/browser/chromeos/dom_ui/system_options_handler.h (revision 0)
+++ chrome/browser/chromeos/dom_ui/system_options_handler.h (revision 0)
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
+#define CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
+
+#include <string>
+#include <vector>
+
+#include "chrome/browser/dom_ui/options_ui.h"
+#include "third_party/icu/public/i18n/unicode/timezone.h"
+
+// ChromeOS system options page UI handler.
+class SystemOptionsHandler : public OptionsPageUIHandler {
+ public:
+ SystemOptionsHandler();
+ virtual ~SystemOptionsHandler();
+
+ // OptionsUIHandler implementation.
+ virtual void GetLocalizedValues(DictionaryValue* localized_strings);
+
+ private:
+ // Creates the map of timezones used by the options page.
+ DictionaryValue* GetTimezoneMap();
+
+ // Gets timezone name.
+ std::string GetTimezoneName(const icu::TimeZone* timezone);
+
+ // Gets timezone ID which is also used as timezone pref value.
+ std::wstring GetTimezoneID(const icu::TimeZone* timezone);
+
+ // Timezones.
+ std::vector<icu::TimeZone*> timezones_;
+
+ DISALLOW_COPY_AND_ASSIGN(SystemOptionsHandler);
+};
+
+#endif // CHROME_BROWSER_CHROMEOS_DOM_UI_SYSTEM_OPTIONS_HANDLER_H_
Property changes on: chrome/browser/chromeos/dom_ui/system_options_handler.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698