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

Side by Side Diff: chrome/browser/chromeos/status/network_menu_icon.cc

Issue 10539086: Add high-DPI resources for networks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test. Created 8 years, 6 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 | Annotate | Revision Log
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 #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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.cc ('k') | chrome/browser/chromeos/status/network_menu_icon_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698