summaryrefslogtreecommitdiffstats
path: root/ui/gfx/native_theme_linux.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 19:03:13 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-15 19:03:13 +0000
commit1116c19900c5d7219b3d3ebecd38a569d5db03f3 (patch)
treea06caca3edcf6f3f7e2b209f5c77cb0722977884 /ui/gfx/native_theme_linux.h
parent4793f054bd615d8c139fa40935633534876ad3f1 (diff)
downloadchromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.zip
chromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.tar.gz
chromium_src-1116c19900c5d7219b3d3ebecd38a569d5db03f3.tar.bz2
Make the size of menulists on Linux the same size as on Windows.
We do this by adding an extra flag in MenuListExtraParams to suppress the border in the same case that we don't draw it on Windows. We also change ButtonExtraParams because paintMenuList calls into paintButton. BUG=41729 Review URL: http://codereview.chromium.org/6490014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/native_theme_linux.h')
-rw-r--r--ui/gfx/native_theme_linux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gfx/native_theme_linux.h b/ui/gfx/native_theme_linux.h
index b557dfc..5bd9a28 100644
--- a/ui/gfx/native_theme_linux.h
+++ b/ui/gfx/native_theme_linux.h
@@ -60,6 +60,7 @@ class NativeThemeLinux {
bool checked;
bool indeterminate; // Whether the button state is indeterminate.
bool is_default; // Whether the button is default button.
+ bool has_border;
SkColor background_color;
};
@@ -70,6 +71,8 @@ class NativeThemeLinux {
};
struct MenuListExtraParams {
+ bool has_border;
+ bool has_border_radius;
int arrow_x;
int arrow_y;
SkColor background_color;