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

Side by Side Diff: ash/mus/system_tray_delegate_mus.h

Issue 2351893002: mash: Fix system tray clock 12/24 hour time setting (Closed)
Patch Set: review comments Created 4 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
7
8 #include "ash/common/system/tray/default_system_tray_delegate.h"
9 #include "ash/public/interfaces/system_tray.mojom.h"
10 #include "base/i18n/time_formatting.h"
11 #include "base/macros.h"
12
13 namespace ash {
14
15 // Handles the settings displayed in the system tray menu. For mus most settings
16 // are obtained from chrome browser via mojo IPC. For the classic ash version
17 // see SystemTrayDelegateChromeOS.
18 //
19 // TODO: Support all methods in SystemTrayDelegate. http://crbug.com/647412.
20 class SystemTrayDelegateMus : public DefaultSystemTrayDelegate,
21 public mojom::SystemTray {
22 public:
23 SystemTrayDelegateMus();
24 ~SystemTrayDelegateMus() override;
25
26 static SystemTrayDelegateMus* Get();
27
28 private:
29 // SystemTrayDelegate:
30 base::HourClockType GetHourClockType() const override;
31
32 // mojom::SystemTray:
33 void SetUse24HourClock(bool use_24_hour) override;
34
35 // 12 or 24 hour display.
36 base::HourClockType hour_clock_type_;
37
38 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus);
39 };
40
41 } // namespace ash
42
43 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698