| 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 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ | 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ |
| 6 #define UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ | 6 #define UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "third_party/skia/include/core/SkBitmap.h" | 9 namespace gfx { |
| 10 class ImageSkia; |
| 11 } |
| 10 | 12 |
| 11 namespace views { | 13 namespace views { |
| 12 | 14 |
| 13 // Return the RadioButton image for given state. | 15 // Return the RadioButton image for given state. |
| 14 // It returns the "selected" image when |selected| is | 16 // It returns the "selected" image when |selected| is |
| 15 // true, or the "unselected" image if false. | 17 // true, or the "unselected" image if false. |
| 16 // The returned image is global object and should not be freed. | 18 // The returned image is global object and should not be freed. |
| 17 const SkBitmap* GetRadioButtonImage(bool selected); | 19 const gfx::ImageSkia* GetRadioButtonImage(bool selected); |
| 18 | 20 |
| 19 // Returns the image for submenu arrow for current RTL setting. | 21 // Returns the image for submenu arrow for current RTL setting. |
| 20 const SkBitmap* GetSubmenuArrowImage(); | 22 const gfx::ImageSkia* GetSubmenuArrowImage(); |
| 21 | 23 |
| 22 } // namespace views | 24 } // namespace views |
| 23 | 25 |
| 24 #endif // UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ | 26 #endif // UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ |
| OLD | NEW |