summaryrefslogtreecommitdiffstats
path: root/views/controls/menu/menu_image_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/menu/menu_image_util.h')
-rw-r--r--views/controls/menu/menu_image_util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/views/controls/menu/menu_image_util.h b/views/controls/menu/menu_image_util.h
new file mode 100644
index 0000000..bcf62fb
--- /dev/null
+++ b/views/controls/menu/menu_image_util.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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 VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_
+#define VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_
+#pragma once
+
+#include "third_party/skia/include/core/SkBitmap.h"
+
+namespace views {
+
+// Return the RadioButton image for given state.
+// It returns the "selected" image when |selected| is
+// true, or the "unselected" image if false.
+// The returned image is global object and should not be freed.
+const SkBitmap* GetRadioButtonImage(bool selected);
+
+// Returns the image for submenu arrow for current RTL setting.
+const SkBitmap* GetSubmenuArrowImage();
+
+} // namespace views
+
+#endif // VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_