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

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

Issue 2360143004: mash: Add SystemTrayClient interface, use to show date settings (Closed)
Patch Set: tweaks, similarity 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
« no previous file with comments | « no previous file | ash/mus/system_tray_delegate_mus.cc » ('j') | ash/mus/system_tray_delegate_mus.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ash/mus/system_tray_delegate_mus.cc » ('j') | ash/mus/system_tray_delegate_mus.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698