OLD | NEW |
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 #include "chrome/browser/chromeos/status/network_menu_icon.h" | 5 #include "chrome/browser/chromeos/status/network_menu_icon.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 11 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
12 #include "chrome/browser/chromeos/cros/cros_library.h" | 12 #include "chrome/browser/chromeos/cros/cros_library.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
| 15 #include "grit/theme_resources_standard.h" |
15 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
16 #include "ui/base/resource/resource_bundle.h" | 17 #include "ui/base/resource/resource_bundle.h" |
17 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
18 #include "ui/gfx/skbitmap_operations.h" | 19 #include "ui/gfx/skbitmap_operations.h" |
19 | 20 |
20 using std::max; | 21 using std::max; |
21 using std::min; | 22 using std::min; |
22 | 23 |
23 namespace chromeos { | 24 namespace chromeos { |
24 | 25 |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 const gfx::ImageSkia NetworkMenuIcon::GetConnectedImage(ImageType type, | 875 const gfx::ImageSkia NetworkMenuIcon::GetConnectedImage(ImageType type, |
875 ResourceColorTheme color) { | 876 ResourceColorTheme color) { |
876 return GetImage(type, NumImages(type) - 1, color); | 877 return GetImage(type, NumImages(type) - 1, color); |
877 } | 878 } |
878 | 879 |
879 int NetworkMenuIcon::NumImages(ImageType type) { | 880 int NetworkMenuIcon::NumImages(ImageType type) { |
880 return (type == ARCS) ? kNumArcsImages : kNumBarsImages; | 881 return (type == ARCS) ? kNumArcsImages : kNumBarsImages; |
881 } | 882 } |
882 | 883 |
883 } // chromeos | 884 } // chromeos |
OLD | NEW |