| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_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 "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 16 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
| 17 #include "ui/gfx/canvas_skia.h" | 17 #include "ui/gfx/canvas_skia.h" |
| 18 #include "ui/gfx/skbitmap_operations.h" | 18 #include "ui/gfx/skbitmap_operations.h" |
| 19 | 19 |
| 20 using std::max; | 20 using std::max; |
| 21 using std::min; | 21 using std::min; |
| (...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 796 |
| 797 const SkBitmap NetworkMenuIcon::GetConnectedBitmap(BitmapType type) { | 797 const SkBitmap NetworkMenuIcon::GetConnectedBitmap(BitmapType type) { |
| 798 return GetBitmap(type, NumBitmaps(type) - 1); | 798 return GetBitmap(type, NumBitmaps(type) - 1); |
| 799 } | 799 } |
| 800 | 800 |
| 801 int NetworkMenuIcon::NumBitmaps(BitmapType type) { | 801 int NetworkMenuIcon::NumBitmaps(BitmapType type) { |
| 802 return (type == ARCS) ? kNumArcsImages : kNumBarsImages; | 802 return (type == ARCS) ? kNumArcsImages : kNumBarsImages; |
| 803 } | 803 } |
| 804 | 804 |
| 805 } // chromeos | 805 } // chromeos |
| OLD | NEW |