| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "ChromiumBridge.h" | 30 #include "ChromiumBridge.h" |
| 31 #include "CSSValueKeywords.h" | 31 #include "CSSValueKeywords.h" |
| 32 #include "Document.h" | 32 #include "Document.h" |
| 33 #include "FontSelector.h" | 33 #include "FontSelector.h" |
| 34 #include "FontUtilsWin.h" | 34 #include "FontUtilsWin.h" |
| 35 #include "GraphicsContext.h" | 35 #include "GraphicsContext.h" |
| 36 #include "ScrollbarTheme.h" | 36 #include "ScrollbarTheme.h" |
| 37 #include "SkiaUtils.h" | 37 #include "SkiaUtils.h" |
| 38 #include "ThemeHelperWin.h" | 38 #include "ThemeHelperWin.h" |
| 39 | 39 |
| 40 #include "base/gfx/native_theme.h" | 40 #include "base/gfx/native_theme.h" // TODO(brettw) fix this dependency. |
| 41 #include "base/gfx/skia_utils.h" | 41 #include "base/win_util.h" // TODO(brettw) fix this dependency. |
| 42 #include "base/win_util.h" | |
| 43 | 42 |
| 44 namespace { | 43 namespace { |
| 45 | 44 |
| 46 enum PaddingType { | 45 enum PaddingType { |
| 47 TopPadding, | 46 TopPadding, |
| 48 RightPadding, | 47 RightPadding, |
| 49 BottomPadding, | 48 BottomPadding, |
| 50 LeftPadding | 49 LeftPadding |
| 51 }; | 50 }; |
| 52 | 51 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 // set. | 564 // set. |
| 566 if (o->style()->hasBorderRadius()) | 565 if (o->style()->hasBorderRadius()) |
| 567 return false; | 566 return false; |
| 568 | 567 |
| 569 const ThemeData& themeData = getThemeData(o); | 568 const ThemeData& themeData = getThemeData(o); |
| 570 | 569 |
| 571 WebCore::ThemeHelperWin helper(i.context, r); | 570 WebCore::ThemeHelperWin helper(i.context, r); |
| 572 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); | 571 gfx::PlatformCanvas* canvas = helper.context()->platformContext()->canvas(); |
| 573 | 572 |
| 574 HDC hdc = canvas->beginPlatformPaint(); | 573 HDC hdc = canvas->beginPlatformPaint(); |
| 575 COLORREF clr = gfx::SkColorToCOLORREF(o->style()->backgroundColor().rgb()); | 574 COLORREF clr = o->style()->backgroundColor().rgb(); |
| 576 RECT renderRect = helper.rect(); | 575 RECT renderRect = helper.rect(); |
| 577 | 576 |
| 578 gfx::NativeTheme::instance()->PaintTextField(hdc, | 577 gfx::NativeTheme::instance()->PaintTextField(hdc, |
| 579 themeData.m_part, | 578 themeData.m_part, |
| 580 themeData.m_state, | 579 themeData.m_state, |
| 581 themeData.m_classicState, | 580 themeData.m_classicState, |
| 582 &renderRect, | 581 &renderRect, |
| 583 clr, | 582 clr, |
| 584 true, | 583 true, |
| 585 drawEdges); | 584 drawEdges); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 608 // static | 607 // static |
| 609 void RenderThemeWin::setFindInPageMode(bool enable) { | 608 void RenderThemeWin::setFindInPageMode(bool enable) { |
| 610 if (m_findInPageMode == enable) | 609 if (m_findInPageMode == enable) |
| 611 return; | 610 return; |
| 612 | 611 |
| 613 m_findInPageMode = enable; | 612 m_findInPageMode = enable; |
| 614 theme()->platformColorsDidChange(); | 613 theme()->platformColorsDidChange(); |
| 615 } | 614 } |
| 616 | 615 |
| 617 } // namespace WebCore | 616 } // namespace WebCore |
| OLD | NEW |