summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/menu/menu_image_util.h
blob: 5097c4852f9e9e13f9af85f404063e9a67afcf78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_
#define UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_

#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/image/image_skia.h"

namespace views {

// The width/height of the check and submenu arrows.
const int kMenuCheckSize = 16;
const int kSubmenuArrowSize = 8;

// Returns the Menu Check box image (always checked).
gfx::ImageSkia GetMenuCheckImage(SkColor icon_color);

// Return the RadioButton image for given state. |toggled| is true when
// the radio option is active, |hovered| describes the menu higlight/selection
// state, and |default_icon_color| is the base color that should be used for
// the icon (which may be ignored based on the other two flags).
gfx::ImageSkia GetRadioButtonImage(bool toggled,
                                   bool hovered,
                                   SkColor default_icon_color);

// Returns the image for submenu arrow for current RTL setting.
gfx::ImageSkia GetSubmenuArrowImage(SkColor icon_color);

}  // namespace views

#endif  // UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_