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

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

Issue 2698473007: Convert path usage in NetworkListViewBase subclasses to use guids. (Closed)
Patch Set: Tweak NetworkPortalNotificationControllerTest to create GUIDs for new NetworkStates. Created 3 years, 10 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/common/system/chromeos/network/network_info.h » ('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_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "ui/gfx/image/image_skia.h" 12 #include "ui/gfx/image/image_skia.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 class NetworkState; 15 class NetworkState;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 namespace network_icon { 19 namespace network_icon {
20 20
21 // Type of icon which dictates color theme and VPN badging 21 // Type of icon which dictates color theme and VPN badging
22 enum IconType { 22 enum IconType {
23 ICON_TYPE_TRAY, // light icons with VPN badges 23 ICON_TYPE_TRAY, // light icons with VPN badges
24 ICON_TYPE_DEFAULT_VIEW, // dark icons with VPN badges 24 ICON_TYPE_DEFAULT_VIEW, // dark icons with VPN badges
25 ICON_TYPE_LIST, // dark icons without VPN badges; in-line status 25 ICON_TYPE_LIST, // dark icons without VPN badges; in-line status
26 ICON_TYPE_MENU_LIST, // dark icons without VPN badges; separate status 26 ICON_TYPE_MENU_LIST, // dark icons without VPN badges; separate status
27 }; 27 };
28 28
29 // Gets the image for the network associated with |service_path|. |network| must 29 // Gets the image for provided |network|. |network| must not be NULL.
30 // not be NULL. |icon_type| determines the color theme and whether or not to 30 // |icon_type| determines the color theme and whether or not to show the VPN
31 // show the VPN badge. This caches badged icons per network per |icon_type|. 31 // badge. This caches badged icons per network per |icon_type|.
32 ASH_EXPORT gfx::ImageSkia GetImageForNetwork( 32 ASH_EXPORT gfx::ImageSkia GetImageForNetwork(
33 const chromeos::NetworkState* network, 33 const chromeos::NetworkState* network,
34 IconType icon_type); 34 IconType icon_type);
35 35
36 // Gets the full strength image for a Wi-Fi network. 36 // Gets the full strength image for a Wi-Fi network.
37 // TODO(estade): Expose SignalStrengthImageSource and use that instead. 37 // TODO(estade): Expose SignalStrengthImageSource and use that instead.
38 ASH_EXPORT gfx::ImageSkia GetImageForConnectedMobileNetwork(); 38 ASH_EXPORT gfx::ImageSkia GetImageForConnectedMobileNetwork();
39 39
40 // Gets the disconnected image for a cell network. 40 // Gets the disconnected image for a cell network.
41 // TODO(estade): Expose SignalStrengthImageSource and use that instead. 41 // TODO(estade): Expose SignalStrengthImageSource and use that instead.
(...skipping 23 matching lines...) Expand all
65 65
66 // Called when the list of networks changes. Retreives the list of networks 66 // Called when the list of networks changes. Retreives the list of networks
67 // from the global NetworkStateHandler instance and removes cached entries 67 // from the global NetworkStateHandler instance and removes cached entries
68 // that are no longer in the list. 68 // that are no longer in the list.
69 ASH_EXPORT void PurgeNetworkIconCache(); 69 ASH_EXPORT void PurgeNetworkIconCache();
70 70
71 } // namespace network_icon 71 } // namespace network_icon
72 } // namespace ash 72 } // namespace ash
73 73
74 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ 74 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/chromeos/network/network_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698