OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 module device.mojom; | 5 module device.mojom; |
6 | 6 |
7 interface TimeZoneMonitor { | 7 interface TimeZoneMonitor { |
8 // Add a client that will get notified on time zone changes. No throttling is | 8 // Add a client that will get notified on time zone changes. No throttling is |
9 // employed, as time zone changes are infrequent enough that there is no | 9 // employed, as time zone changes are infrequent enough that there is no |
10 // realistic risk of flooding. | 10 // realistic risk of flooding. |
11 AddClient(TimeZoneMonitorClient client); | 11 AddClient(TimeZoneMonitorClient client); |
12 }; | 12 }; |
13 | 13 |
14 interface TimeZoneMonitorClient { | 14 interface TimeZoneMonitorClient { |
15 // Called on a time zone change. |tz_info| is the new time zone ID. | 15 // Called on a time zone change. |tz_info| is the new time zone ID. |
16 OnTimeZoneChange(string tz_info); | 16 OnTimeZoneChange(string tz_info); |
17 }; | 17 }; |
OLD | NEW |