| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webthemeengine_impl_win.h" | 5 #include "webkit/glue/webthemeengine_impl_win.h" |
| 6 | 6 |
| 7 #include "base/gfx/native_theme.h" | 7 #include "base/gfx/native_theme.h" |
| 8 #include "skia/ext/platform_canvas.h" | 8 #include "skia/ext/platform_canvas.h" |
| 9 #include "skia/ext/skia_utils_win.h" | 9 #include "skia/ext/skia_utils_win.h" |
| 10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebRect.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 RECT native_rect = WebRectToRECT(rect); | 95 RECT native_rect = WebRectToRECT(rect); |
| 96 COLORREF c = skia::SkColorToCOLORREF(color); | 96 COLORREF c = skia::SkColorToCOLORREF(color); |
| 97 | 97 |
| 98 gfx::NativeTheme::instance()->PaintTextField( | 98 gfx::NativeTheme::instance()->PaintTextField( |
| 99 hdc, part, state, classic_state, &native_rect, c, fill_content_area, | 99 hdc, part, state, classic_state, &native_rect, c, fill_content_area, |
| 100 draw_edges); | 100 draw_edges); |
| 101 | 101 |
| 102 canvas->endPlatformPaint(); | 102 canvas->endPlatformPaint(); |
| 103 } | 103 } |
| 104 | 104 |
| 105 void WebThemeEngineImpl::paintTrackbar( |
| 106 WebCanvas* canvas, int part, int state, int classic_state, |
| 107 const WebRect& rect) { |
| 108 HDC hdc = canvas->beginPlatformPaint(); |
| 109 |
| 110 RECT native_rect = WebRectToRECT(rect); |
| 111 gfx::NativeTheme::instance()->PaintTrackbar( |
| 112 hdc, part, state, classic_state, &native_rect, canvas); |
| 113 |
| 114 canvas->endPlatformPaint(); |
| 115 } |
| 116 |
| 105 } // namespace webkit_glue | 117 } // namespace webkit_glue |
| OLD | NEW |