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 #include "views/controls/menu/menu_image_util_gtk.h" | 5 #include "views/controls/menu/menu_image_util_linux.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "grit/ui_resources.h" | 8 #include "grit/ui_resources.h" |
9 #include "third_party/skia/include/effects/SkGradientShader.h" | 9 #include "third_party/skia/include/effects/SkGradientShader.h" |
10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
11 #include "ui/gfx/canvas_skia.h" | 11 #include "ui/gfx/canvas_skia.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 // Size of the radio button inciator. | 15 // Size of the radio button inciator. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 return selected ? kRadioOn : kRadioOff; | 106 return selected ? kRadioOn : kRadioOff; |
107 } | 107 } |
108 | 108 |
109 const SkBitmap* GetSubmenuArrowImage() { | 109 const SkBitmap* GetSubmenuArrowImage() { |
110 return base::i18n::IsRTL() ? | 110 return base::i18n::IsRTL() ? |
111 GetRtlSubmenuArrowImage() : | 111 GetRtlSubmenuArrowImage() : |
112 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_MENU_ARROW); | 112 ResourceBundle::GetSharedInstance().GetBitmapNamed(IDR_MENU_ARROW); |
113 } | 113 } |
114 | 114 |
115 } // namespace views; | 115 } // namespace views; |
OLD | NEW |