| 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 ash.mojom; | 5 module ash.mojom; |
| 6 | 6 |
| 7 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. | 7 // Allows clients (e.g. Chrome browser) to control the ash system tray menu. |
| 8 interface SystemTray { | 8 interface SystemTray { |
| 9 // Sets the client interface. |
| 10 SetClient(SystemTrayClient system_tray_client); |
| 11 |
| 9 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. | 12 // Sets the clock to use 24 hour time formatting if |use_24_hour| is true. |
| 10 // Otherwise sets 12 hour time formatting. | 13 // Otherwise sets 12 hour time formatting. |
| 11 SetUse24HourClock(bool use_24_hour); | 14 SetUse24HourClock(bool use_24_hour); |
| 12 }; | 15 }; |
| 13 | 16 |
| 14 // TODO(jamescook): SystemTrayDelegate to communicate from ash to chrome. | 17 // Allows ash system tray to control a client (e.g. Chrome browser). Requests |
| 18 // often involve preferences or web UI that is not available to ash. |
| 19 interface SystemTrayClient { |
| 20 // Shows the settings related to date, timezone etc. |
| 21 ShowDateSettings(); |
| 22 }; |
| OLD | NEW |