| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "gfx/canvas.h" | |
| 8 #include "gfx/skbitmap_operations.h" | |
| 9 #include "grit/theme_resources.h" | 7 #include "grit/theme_resources.h" |
| 8 #include "ui/gfx/canvas.h" |
| 9 #include "ui/gfx/skbitmap_operations.h" |
| 10 #include "views/border.h" | 10 #include "views/border.h" |
| 11 #include "views/view.h" | 11 #include "views/view.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 // A 0.7 black to decorate status text. Same color is used for icon borders. | 15 // A 0.7 black to decorate status text. Same color is used for icon borders. |
| 16 static const SkColor kStatusTextHaloColor = SkColorSetARGB(0xB3, 0, 0, 0); | 16 static const SkColor kStatusTextHaloColor = SkColorSetARGB(0xB3, 0, 0, 0); |
| 17 | 17 |
| 18 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
| 19 // StatusAreaButton | 19 // StatusAreaButton |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 bool StatusAreaButton::Activate() { | 90 bool StatusAreaButton::Activate() { |
| 91 if (active_) { | 91 if (active_) { |
| 92 return views::MenuButton::Activate(); | 92 return views::MenuButton::Activate(); |
| 93 } else { | 93 } else { |
| 94 return true; | 94 return true; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 } // namespace chromeos | 98 } // namespace chromeos |
| OLD | NEW |