OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/child/webthemeengine_impl_default.h" | 5 #include "content/child/webthemeengine_impl_default.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
9 #include "third_party/WebKit/public/platform/WebRect.h" | 9 #include "third_party/WebKit/public/platform/WebRect.h" |
10 #include "third_party/WebKit/public/platform/WebSize.h" | 10 #include "third_party/WebKit/public/platform/WebSize.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 native_theme_extra_params->progress_bar.value_rect_width = | 192 native_theme_extra_params->progress_bar.value_rect_width = |
193 extra_params->progressBar.valueRectWidth; | 193 extra_params->progressBar.valueRectWidth; |
194 native_theme_extra_params->progress_bar.value_rect_height = | 194 native_theme_extra_params->progress_bar.value_rect_height = |
195 extra_params->progressBar.valueRectHeight; | 195 extra_params->progressBar.valueRectHeight; |
196 break; | 196 break; |
197 case WebThemeEngine::PartScrollbarHorizontalThumb: | 197 case WebThemeEngine::PartScrollbarHorizontalThumb: |
198 case WebThemeEngine::PartScrollbarVerticalThumb: | 198 case WebThemeEngine::PartScrollbarVerticalThumb: |
199 native_theme_extra_params->scrollbar_thumb.scrollbar_theme = | 199 native_theme_extra_params->scrollbar_thumb.scrollbar_theme = |
200 NativeThemeScrollbarOverlayColorTheme( | 200 NativeThemeScrollbarOverlayColorTheme( |
201 extra_params->scrollbarThumb.scrollbarTheme); | 201 extra_params->scrollbarThumb.scrollbarTheme); |
| 202 native_theme_extra_params->scrollbar_thumb.isVerticalScrollbar = |
| 203 extra_params->scrollbarThumb.isVerticalScrollbar; |
| 204 native_theme_extra_params->scrollbar_thumb.isLeftVerticalScrollbar = |
| 205 extra_params->scrollbarThumb.isLeftVerticalScrollbar; |
| 206 native_theme_extra_params->scrollbar_thumb.hitStart = |
| 207 extra_params->scrollbarThumb.hitStart; |
| 208 native_theme_extra_params->scrollbar_thumb.hitEnd = |
| 209 extra_params->scrollbarThumb.hitEnd; |
202 break; | 210 break; |
203 default: | 211 default: |
204 break; // Parts that have no extra params get here. | 212 break; // Parts that have no extra params get here. |
205 } | 213 } |
206 } | 214 } |
207 | 215 |
208 blink::WebSize WebThemeEngineImpl::getSize(WebThemeEngine::Part part) { | 216 blink::WebSize WebThemeEngineImpl::getSize(WebThemeEngine::Part part) { |
209 ui::NativeTheme::ExtraParams extra; | 217 ui::NativeTheme::ExtraParams extra; |
210 ui::NativeTheme::Part native_theme_part = NativeThemePart(part); | 218 ui::NativeTheme::Part native_theme_part = NativeThemePart(part); |
211 #if defined(OS_WIN) | 219 #if defined(OS_WIN) |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 int32_t vertical_arrow_bitmap_height, | 284 int32_t vertical_arrow_bitmap_height, |
277 int32_t horizontal_arrow_bitmap_width) { | 285 int32_t horizontal_arrow_bitmap_width) { |
278 g_vertical_scroll_bar_width = vertical_scroll_bar_width; | 286 g_vertical_scroll_bar_width = vertical_scroll_bar_width; |
279 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; | 287 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; |
280 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; | 288 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; |
281 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; | 289 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; |
282 } | 290 } |
283 #endif | 291 #endif |
284 | 292 |
285 } // namespace content | 293 } // namespace content |
OLD | NEW |