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

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

Issue 2526333002: ash: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase Created 4 years 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
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 class AnimationObserver;
22
23 // Type of icon which dictates color theme and VPN badging 21 // Type of icon which dictates color theme and VPN badging
24 enum IconType { 22 enum IconType {
25 ICON_TYPE_TRAY, // light icons with VPN badges 23 ICON_TYPE_TRAY, // light icons with VPN badges
26 ICON_TYPE_DEFAULT_VIEW, // dark icons with VPN badges 24 ICON_TYPE_DEFAULT_VIEW, // dark icons with VPN badges
27 ICON_TYPE_LIST, // dark icons without VPN badges 25 ICON_TYPE_LIST, // dark icons without VPN badges
28 }; 26 };
29 27
30 // Gets the image for the network associated with |service_path|. |network| must 28 // Gets the image for the network associated with |service_path|. |network| must
31 // not be NULL. |icon_type| determines the color theme and whether or not to 29 // not be NULL. |icon_type| determines the color theme and whether or not to
32 // show the VPN badge. This caches badged icons per network per |icon_type|. 30 // show the VPN badge. This caches badged icons per network per |icon_type|.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 66
69 // Called when the list of networks changes. Retreives the list of networks 67 // Called when the list of networks changes. Retreives the list of networks
70 // from the global NetworkStateHandler instance and removes cached entries 68 // from the global NetworkStateHandler instance and removes cached entries
71 // that are no longer in the list. 69 // that are no longer in the list.
72 ASH_EXPORT void PurgeNetworkIconCache(); 70 ASH_EXPORT void PurgeNetworkIconCache();
73 71
74 } // namespace network_icon 72 } // namespace network_icon
75 } // namespace ash 73 } // namespace ash
76 74
77 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ 75 #endif // ASH_COMMON_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_
OLDNEW
« no previous file with comments | « ash/common/system/chromeos/ime_menu/ime_menu_tray.h ('k') | ash/common/system/chromeos/network/network_list_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698