| 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 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 5 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
| 6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
| 7 | 7 |
| 8 #include "ash/common/system/tray/default_system_tray_delegate.h" | 8 #include "ash/common/system/tray/default_system_tray_delegate.h" |
| 9 #include "ash/public/interfaces/system_tray.mojom.h" | 9 #include "ash/public/interfaces/system_tray.mojom.h" |
| 10 #include "base/i18n/time_formatting.h" | 10 #include "base/i18n/time_formatting.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 public mojom::SystemTray { | 21 public mojom::SystemTray { |
| 22 public: | 22 public: |
| 23 SystemTrayDelegateMus(); | 23 SystemTrayDelegateMus(); |
| 24 ~SystemTrayDelegateMus() override; | 24 ~SystemTrayDelegateMus() override; |
| 25 | 25 |
| 26 static SystemTrayDelegateMus* Get(); | 26 static SystemTrayDelegateMus* Get(); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 // SystemTrayDelegate: | 29 // SystemTrayDelegate: |
| 30 base::HourClockType GetHourClockType() const override; | 30 base::HourClockType GetHourClockType() const override; |
| 31 void ShowDateSettings() override; |
| 31 | 32 |
| 32 // mojom::SystemTray: | 33 // mojom::SystemTray: |
| 34 void SetClient(mojom::SystemTrayClientPtr system_tray_client) override; |
| 33 void SetUse24HourClock(bool use_24_hour) override; | 35 void SetUse24HourClock(bool use_24_hour) override; |
| 34 | 36 |
| 37 // The client is usually chrome browser. |
| 38 mojom::SystemTrayClientPtr system_tray_client_; |
| 39 |
| 35 // 12 or 24 hour display. | 40 // 12 or 24 hour display. |
| 36 base::HourClockType hour_clock_type_; | 41 base::HourClockType hour_clock_type_; |
| 37 | 42 |
| 38 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); | 43 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); |
| 39 }; | 44 }; |
| 40 | 45 |
| 41 } // namespace ash | 46 } // namespace ash |
| 42 | 47 |
| 43 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ | 48 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ |
| OLD | NEW |