| 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.isLeftVerticalScrollbar = |
| 203 extra_params->scrollbarThumb.isLeftVerticalScrollbar; |
| 202 break; | 204 break; |
| 203 default: | 205 default: |
| 204 break; // Parts that have no extra params get here. | 206 break; // Parts that have no extra params get here. |
| 205 } | 207 } |
| 206 } | 208 } |
| 207 | 209 |
| 208 blink::WebSize WebThemeEngineImpl::getSize(WebThemeEngine::Part part) { | 210 blink::WebSize WebThemeEngineImpl::getSize(WebThemeEngine::Part part) { |
| 209 ui::NativeTheme::ExtraParams extra; | 211 ui::NativeTheme::ExtraParams extra; |
| 210 ui::NativeTheme::Part native_theme_part = NativeThemePart(part); | 212 ui::NativeTheme::Part native_theme_part = NativeThemePart(part); |
| 211 #if defined(OS_WIN) | 213 #if defined(OS_WIN) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 int32_t vertical_arrow_bitmap_height, | 278 int32_t vertical_arrow_bitmap_height, |
| 277 int32_t horizontal_arrow_bitmap_width) { | 279 int32_t horizontal_arrow_bitmap_width) { |
| 278 g_vertical_scroll_bar_width = vertical_scroll_bar_width; | 280 g_vertical_scroll_bar_width = vertical_scroll_bar_width; |
| 279 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; | 281 g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; |
| 280 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; | 282 g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; |
| 281 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; | 283 g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; |
| 282 } | 284 } |
| 283 #endif | 285 #endif |
| 284 | 286 |
| 285 } // namespace content | 287 } // namespace content |
| OLD | NEW |