OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/status_area_button.h" | 5 #include "chrome/browser/chromeos/status/status_area_button.h" |
6 | 6 |
7 #include "app/gfx/canvas.h" | |
8 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "gfx/canvas.h" |
9 #include "gfx/skbitmap_operations.h" | 9 #include "gfx/skbitmap_operations.h" |
10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
11 #include "views/border.h" | 11 #include "views/border.h" |
12 #include "views/view.h" | 12 #include "views/view.h" |
13 | 13 |
14 namespace chromeos { | 14 namespace chromeos { |
15 | 15 |
16 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
17 // StatusAreaButton | 17 // StatusAreaButton |
18 | 18 |
(...skipping 18 matching lines...) Expand all Loading... |
37 gfx::Size prefsize(kIconWidth + insets.width(), | 37 gfx::Size prefsize(kIconWidth + insets.width(), |
38 kIconHeight + insets.height()); | 38 kIconHeight + insets.height()); |
39 return prefsize; | 39 return prefsize; |
40 } | 40 } |
41 | 41 |
42 void StatusAreaButton::DrawIcon(gfx::Canvas* canvas) { | 42 void StatusAreaButton::DrawIcon(gfx::Canvas* canvas) { |
43 canvas->DrawBitmapInt(icon(), 0, 0); | 43 canvas->DrawBitmapInt(icon(), 0, 0); |
44 } | 44 } |
45 | 45 |
46 } // namespace chromeos | 46 } // namespace chromeos |
OLD | NEW |