OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "ui/gfx/image/image_skia.h" |
| 11 |
| 12 namespace chromeos { |
| 13 class NetworkState; |
| 14 } |
| 15 |
| 16 namespace ash { |
| 17 namespace network_icon { |
| 18 |
| 19 class AnimationObserver; |
| 20 |
| 21 // Color theme based on icon background. |
| 22 enum ResourceColorTheme { |
| 23 COLOR_DARK, |
| 24 COLOR_LIGHT, |
| 25 }; |
| 26 |
| 27 // Get the image for the network associated with |service_path|. |
| 28 // |color| determines the color theme. If the icon is animating (i.e the |
| 29 // network is connecting) and |observer| is provided, it will be notified |
| 30 // when the icon changes. |
| 31 gfx::ImageSkia GetImageForNetwork(const chromeos::NetworkState* network, |
| 32 ResourceColorTheme color, |
| 33 AnimationObserver* observer); |
| 34 |
| 35 } // namespace network_icon |
| 36 } // namespace ash |
| 37 |
| 38 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_ICON_H_ |
OLD | NEW |