| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 246 | 246 | 
| 247 void WebThemeEngineImpl::getOverlayScrollbarStyle(ScrollbarStyle* style) { | 247 void WebThemeEngineImpl::getOverlayScrollbarStyle(ScrollbarStyle* style) { | 
| 248   style->fadeOutDelaySeconds = ui::kOverlayScrollbarFadeOutDelay.InSecondsF(); | 248   style->fadeOutDelaySeconds = ui::kOverlayScrollbarFadeOutDelay.InSecondsF(); | 
| 249   style->fadeOutDurationSeconds = | 249   style->fadeOutDurationSeconds = | 
| 250       ui::kOverlayScrollbarFadeOutDuration.InSecondsF(); | 250       ui::kOverlayScrollbarFadeOutDuration.InSecondsF(); | 
| 251   // The other fields in this struct are used only on Android to draw solid | 251   // The other fields in this struct are used only on Android to draw solid | 
| 252   // color scrollbars. On other platforms the scrollbars are painted in | 252   // color scrollbars. On other platforms the scrollbars are painted in | 
| 253   // NativeTheme so these fields are unused. | 253   // NativeTheme so these fields are unused. | 
| 254 } | 254 } | 
| 255 | 255 | 
|  | 256 bool WebThemeEngineImpl::supportsNinePatch(Part part) const { | 
|  | 257   return ui::NativeTheme::GetInstanceForWeb()->SupportsNinePatch( | 
|  | 258       NativeThemePart(part)); | 
|  | 259 } | 
|  | 260 | 
|  | 261 blink::WebSize WebThemeEngineImpl::ninePatchCanvasSize(Part part) const { | 
|  | 262   return ui::NativeTheme::GetInstanceForWeb()->GetNinePatchCanvasSize( | 
|  | 263       NativeThemePart(part)); | 
|  | 264 } | 
|  | 265 | 
|  | 266 blink::WebRect WebThemeEngineImpl::ninePatchAperture(Part part) const { | 
|  | 267   return ui::NativeTheme::GetInstanceForWeb()->GetNinePatchAperture( | 
|  | 268       NativeThemePart(part)); | 
|  | 269 } | 
|  | 270 | 
| 256 #if defined(OS_WIN) | 271 #if defined(OS_WIN) | 
| 257 // static | 272 // static | 
| 258 void WebThemeEngineImpl::cacheScrollBarMetrics( | 273 void WebThemeEngineImpl::cacheScrollBarMetrics( | 
| 259     int32_t vertical_scroll_bar_width, | 274     int32_t vertical_scroll_bar_width, | 
| 260     int32_t horizontal_scroll_bar_height, | 275     int32_t horizontal_scroll_bar_height, | 
| 261     int32_t vertical_arrow_bitmap_height, | 276     int32_t vertical_arrow_bitmap_height, | 
| 262     int32_t horizontal_arrow_bitmap_width) { | 277     int32_t horizontal_arrow_bitmap_width) { | 
| 263   g_vertical_scroll_bar_width = vertical_scroll_bar_width; | 278   g_vertical_scroll_bar_width = vertical_scroll_bar_width; | 
| 264   g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; | 279   g_horizontal_scroll_bar_height = horizontal_scroll_bar_height; | 
| 265   g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; | 280   g_vertical_arrow_bitmap_height = vertical_arrow_bitmap_height; | 
| 266   g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; | 281   g_horizontal_arrow_bitmap_width = horizontal_arrow_bitmap_width; | 
| 267 } | 282 } | 
| 268 #endif | 283 #endif | 
| 269 | 284 | 
| 270 }  // namespace content | 285 }  // namespace content | 
| OLD | NEW | 
|---|