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

Side by Side Diff: ash/system/network/network_icon.h

Issue 2913103002: Add Tether to Mobile NetworkTypePattern. (Closed)
Patch Set: Add Tether to Mobile NetworkTypePattern. Created 3 years, 6 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/system/network/network_icon.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NETWORK_NETWORK_ICON_H_ 5 #ifndef ASH_SYSTEM_NETWORK_NETWORK_ICON_H_
6 #define ASH_SYSTEM_NETWORK_NETWORK_ICON_H_ 6 #define ASH_SYSTEM_NETWORK_NETWORK_ICON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // main icon and |badge_color| for the badge. 48 // main icon and |badge_color| for the badge.
49 ASH_EXPORT gfx::ImageSkia GetImageForNewWifiNetwork(SkColor icon_color, 49 ASH_EXPORT gfx::ImageSkia GetImageForNewWifiNetwork(SkColor icon_color,
50 SkColor badge_color); 50 SkColor badge_color);
51 51
52 // Returns the label for |network| based on |icon_type|. |network| cannot be 52 // Returns the label for |network| based on |icon_type|. |network| cannot be
53 // nullptr. 53 // nullptr.
54 ASH_EXPORT base::string16 GetLabelForNetwork( 54 ASH_EXPORT base::string16 GetLabelForNetwork(
55 const chromeos::NetworkState* network, 55 const chromeos::NetworkState* network,
56 IconType icon_type); 56 IconType icon_type);
57 57
58 // Updates and returns the appropriate message id if the cellular network 58 // Updates and returns the appropriate message id if the mobile network
59 // is uninitialized. 59 // is uninitialized.
60 ASH_EXPORT int GetCellularUninitializedMsg(); 60 ASH_EXPORT int GetMobileUninitializedMsg();
61 61
62 // Gets the correct icon and label for |icon_type|. Also sets |animating| 62 // Gets the correct icon and label for |icon_type|. Also sets |animating|
63 // based on whether or not the icon is animating (i.e. connecting). 63 // based on whether or not the icon is animating (i.e. connecting).
64 ASH_EXPORT void GetDefaultNetworkImageAndLabel(IconType icon_type, 64 ASH_EXPORT void GetDefaultNetworkImageAndLabel(IconType icon_type,
65 gfx::ImageSkia* image, 65 gfx::ImageSkia* image,
66 base::string16* label, 66 base::string16* label,
67 bool* animating); 67 bool* animating);
68 68
69 // Called when the list of networks changes. Retreives the list of networks 69 // Called when the list of networks changes. Retreives the list of networks
70 // from the global NetworkStateHandler instance and removes cached entries 70 // from the global NetworkStateHandler instance and removes cached entries
71 // that are no longer in the list. 71 // that are no longer in the list.
72 ASH_EXPORT void PurgeNetworkIconCache(); 72 ASH_EXPORT void PurgeNetworkIconCache();
73 73
74 } // namespace network_icon 74 } // namespace network_icon
75 } // namespace ash 75 } // namespace ash
76 76
77 #endif // ASH_SYSTEM_NETWORK_NETWORK_ICON_H_ 77 #endif // ASH_SYSTEM_NETWORK_NETWORK_ICON_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/network/network_icon.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698