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

Side by Side Diff: views/controls/menu/menu_image_util_linux.cc

Issue 7464027: Wayland support for views. views_desktop on Wayland. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated native_widget_wayland.cc to match compositor changes Created 9 years, 3 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
« no previous file with comments | « views/controls/menu/menu_image_util_linux.h ('k') | views/controls/menu/menu_item_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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;
OLDNEW
« no previous file with comments | « views/controls/menu/menu_image_util_linux.h ('k') | views/controls/menu/menu_item_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698