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

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: tweak 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 private:
27 // SystemTrayDelegate:
28 base::HourClockType GetHourClockType() const override;
29
30 // mojom::SystemTray:
31 void SetUse24HourClock(bool use_24_hour) override;
32
33 // 12 or 24 hour display.
34 base::HourClockType hour_clock_type_;
35
36 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus);
37 };
38
39 } // namespace ash
40
41 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698