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

Side by Side Diff: chromeos/settings/timezone_settings.h

Issue 1237023002: ChromeOS should have UTC timezone option. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed build. Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_ 5 #ifndef CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_
6 #define CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_ 6 #define CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "chromeos/chromeos_export.h"
11 #include "chromeos/settings/cros_settings_provider.h" 12 #include "chromeos/settings/cros_settings_provider.h"
12 #include "third_party/icu/source/i18n/unicode/timezone.h" 13 #include "third_party/icu/source/i18n/unicode/timezone.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 namespace system { 16 namespace system {
16 17
18 // Canonical name of UTC timezone.
19 CHROMEOS_EXPORT extern const char kUTCTimezoneName[];
20
17 // This interface provides access to Chrome OS timezone settings. 21 // This interface provides access to Chrome OS timezone settings.
18 class CHROMEOS_EXPORT TimezoneSettings { 22 class CHROMEOS_EXPORT TimezoneSettings {
19 public: 23 public:
20 class Observer { 24 class Observer {
21 public: 25 public:
22 // Called when the timezone has changed. |timezone| is non-null. 26 // Called when the timezone has changed. |timezone| is non-null.
23 virtual void TimezoneChanged(const icu::TimeZone& timezone) = 0; 27 virtual void TimezoneChanged(const icu::TimeZone& timezone) = 0;
24 protected: 28 protected:
25 virtual ~Observer(); 29 virtual ~Observer();
26 }; 30 };
(...skipping 17 matching lines...) Expand all
44 static base::string16 GetTimezoneID(const icu::TimeZone& timezone); 48 static base::string16 GetTimezoneID(const icu::TimeZone& timezone);
45 49
46 protected: 50 protected:
47 virtual ~TimezoneSettings() {} 51 virtual ~TimezoneSettings() {}
48 }; 52 };
49 53
50 } // namespace system 54 } // namespace system
51 } // namespace chromeos 55 } // namespace chromeos
52 56
53 #endif // CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_ 57 #endif // CHROMEOS_SETTINGS_TIMEZONE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698