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

Side by Side Diff: webkit/glue/webthemeengine_impl_linux.cc

Issue 6490014: Make the size of menulists on Linux the same size as on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handle border radius Created 9 years, 10 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 | « ui/gfx/native_theme_linux.cc ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "webkit/glue/webthemeengine_impl_linux.h" 5 #include "webkit/glue/webthemeengine_impl_linux.h"
6 6
7 #include "skia/ext/platform_canvas.h" 7 #include "skia/ext/platform_canvas.h"
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h" 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRect.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
10 #include "ui/gfx/native_theme_linux.h" 10 #include "ui/gfx/native_theme_linux.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 native_theme_extra_params->button.checked = extra_params->button.checked; 98 native_theme_extra_params->button.checked = extra_params->button.checked;
99 native_theme_extra_params->button.indeterminate = 99 native_theme_extra_params->button.indeterminate =
100 extra_params->button.indeterminate; 100 extra_params->button.indeterminate;
101 break; 101 break;
102 case WebKit::WebThemeEngine::PartRadio: 102 case WebKit::WebThemeEngine::PartRadio:
103 native_theme_extra_params->button.checked = extra_params->button.checked; 103 native_theme_extra_params->button.checked = extra_params->button.checked;
104 break; 104 break;
105 case WebKit::WebThemeEngine::PartButton: 105 case WebKit::WebThemeEngine::PartButton:
106 native_theme_extra_params->button.is_default = 106 native_theme_extra_params->button.is_default =
107 extra_params->button.isDefault; 107 extra_params->button.isDefault;
108 native_theme_extra_params->button.has_border =
109 extra_params->button.hasBorder;
108 native_theme_extra_params->button.background_color = 110 native_theme_extra_params->button.background_color =
109 extra_params->button.backgroundColor; 111 extra_params->button.backgroundColor;
110 break; 112 break;
111 case WebKit::WebThemeEngine::PartTextField: 113 case WebKit::WebThemeEngine::PartTextField:
112 native_theme_extra_params->text_field.is_text_area = 114 native_theme_extra_params->text_field.is_text_area =
113 extra_params->textField.isTextArea; 115 extra_params->textField.isTextArea;
114 native_theme_extra_params->text_field.is_listbox = 116 native_theme_extra_params->text_field.is_listbox =
115 extra_params->textField.isListbox; 117 extra_params->textField.isListbox;
116 native_theme_extra_params->text_field.background_color = 118 native_theme_extra_params->text_field.background_color =
117 extra_params->textField.backgroundColor; 119 extra_params->textField.backgroundColor;
118 break; 120 break;
119 case WebKit::WebThemeEngine::PartMenuList: 121 case WebKit::WebThemeEngine::PartMenuList:
122 native_theme_extra_params->menu_list.has_border =
123 extra_params->menuList.hasBorder;
124 native_theme_extra_params->menu_list.has_border_radius =
125 extra_params->menuList.hasBorderRadius;
120 native_theme_extra_params->menu_list.arrow_x = 126 native_theme_extra_params->menu_list.arrow_x =
121 extra_params->menuList.arrowX; 127 extra_params->menuList.arrowX;
122 native_theme_extra_params->menu_list.arrow_y = 128 native_theme_extra_params->menu_list.arrow_y =
123 extra_params->menuList.arrowY; 129 extra_params->menuList.arrowY;
124 native_theme_extra_params->menu_list.background_color = 130 native_theme_extra_params->menu_list.background_color =
125 extra_params->menuList.backgroundColor; 131 extra_params->menuList.backgroundColor;
126 break; 132 break;
127 case WebKit::WebThemeEngine::PartSliderTrack: 133 case WebKit::WebThemeEngine::PartSliderTrack:
128 case WebKit::WebThemeEngine::PartSliderThumb: 134 case WebKit::WebThemeEngine::PartSliderThumb:
129 native_theme_extra_params->slider.vertical = 135 native_theme_extra_params->slider.vertical =
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 GetNativeThemeExtraParams( 173 GetNativeThemeExtraParams(
168 part, state, extra_params, &native_theme_extra_params); 174 part, state, extra_params, &native_theme_extra_params);
169 gfx::NativeThemeLinux::instance()->Paint( 175 gfx::NativeThemeLinux::instance()->Paint(
170 canvas, 176 canvas,
171 NativeThemePart(part), 177 NativeThemePart(part),
172 NativeThemeState(state), 178 NativeThemeState(state),
173 WebRectToRect(rect), 179 WebRectToRect(rect),
174 native_theme_extra_params); 180 native_theme_extra_params);
175 } 181 }
176 } // namespace webkit_glue 182 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « ui/gfx/native_theme_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698