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

Side by Side Diff: ui/views/controls/menu/menu_image_util.h

Issue 10437006: Converts ui/views/controls, ui/views/examples, ui/base/models to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 7 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) 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698