| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "unicode/timezone.h" | 11 #include "third_party/icu/public/i18n/unicode/timezone.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace system { | 14 namespace system { |
| 15 | 15 |
| 16 // This interface provides access to Chrome OS timezone settings. | 16 // This interface provides access to Chrome OS timezone settings. |
| 17 class TimezoneSettings { | 17 class TimezoneSettings { |
| 18 public: | 18 public: |
| 19 class Observer { | 19 class Observer { |
| 20 public: | 20 public: |
| 21 // Called when the timezone has changed. |timezone| is non-null. | 21 // Called when the timezone has changed. |timezone| is non-null. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 43 static string16 GetTimezoneID(const icu::TimeZone& timezone); | 43 static string16 GetTimezoneID(const icu::TimeZone& timezone); |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 virtual ~TimezoneSettings() {} | 46 virtual ~TimezoneSettings() {} |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 } // namespace system | 49 } // namespace system |
| 50 } // namespace chromeos | 50 } // namespace chromeos |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ | 52 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_SETTINGS_H_ |
| OLD | NEW |