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

Side by Side Diff: ash/system/tray/system_tray_delegate.h

Issue 9702024: ash: Take the 24h clock pref into consideration when showing the time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/system/user/login_status.h" 9 #include "ash/system/user/login_status.h"
10 #include "base/i18n/time_formatting.h"
10 #include "base/string16.h" 11 #include "base/string16.h"
11 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
12 13
13 class SkBitmap; 14 class SkBitmap;
14 15
15 namespace ash { 16 namespace ash {
16 17
17 struct NetworkIconInfo { 18 struct NetworkIconInfo {
18 SkBitmap image; 19 SkBitmap image;
19 string16 name; 20 string16 name;
20 string16 description; 21 string16 description;
21 }; 22 };
22 23
23 class SystemTrayDelegate { 24 class SystemTrayDelegate {
24 public: 25 public:
25 virtual ~SystemTrayDelegate() {} 26 virtual ~SystemTrayDelegate() {}
26 27
27 // Gets information about the logged in user. 28 // Gets information about the logged in user.
28 virtual const std::string GetUserDisplayName() const = 0; 29 virtual const std::string GetUserDisplayName() const = 0;
29 virtual const std::string GetUserEmail() const = 0; 30 virtual const std::string GetUserEmail() const = 0;
30 virtual const SkBitmap& GetUserImage() const = 0; 31 virtual const SkBitmap& GetUserImage() const = 0;
31 virtual user::LoginStatus GetUserLoginStatus() const = 0; 32 virtual user::LoginStatus GetUserLoginStatus() const = 0;
32 33
33 // Returns whether a system upgrade is available. 34 // Returns whether a system upgrade is available.
34 virtual bool SystemShouldUpgrade() const = 0; 35 virtual bool SystemShouldUpgrade() const = 0;
35 36
36 // Returns the resource id for the icon to show for the update notification. 37 // Returns the resource id for the icon to show for the update notification.
37 virtual int GetSystemUpdateIconResource() const = 0; 38 virtual int GetSystemUpdateIconResource() const = 0;
38 39
40 // Returns the desired hour clock type.
41 virtual base::HourClockType GetHourClockType() const = 0;
42
39 // Shows settings. 43 // Shows settings.
40 virtual void ShowSettings() = 0; 44 virtual void ShowSettings() = 0;
41 45
42 // Shows the settings related to date, timezone etc. 46 // Shows the settings related to date, timezone etc.
43 virtual void ShowDateSettings() = 0; 47 virtual void ShowDateSettings() = 0;
44 48
45 // Shows help. 49 // Shows help.
46 virtual void ShowHelp() = 0; 50 virtual void ShowHelp() = 0;
47 51
48 // Is the system audio muted? 52 // Is the system audio muted?
(...skipping 19 matching lines...) Expand all
68 72
69 // Returns information about the most relevant network. Relevance is 73 // Returns information about the most relevant network. Relevance is
70 // determined by the implementor (e.g. a connecting network may be more 74 // determined by the implementor (e.g. a connecting network may be more
71 // relevant over a connected network etc.) 75 // relevant over a connected network etc.)
72 virtual NetworkIconInfo GetMostRelevantNetworkIcon() = 0; 76 virtual NetworkIconInfo GetMostRelevantNetworkIcon() = 0;
73 }; 77 };
74 78
75 } // namespace ash 79 } // namespace ash
76 80
77 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 81 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/power/tray_power_date.cc ('k') | chrome/browser/chromeos/system/ash_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698