| OLD | NEW |
| 1 /** | 1 /** |
| 2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
| 3 * | 3 * |
| 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "core/layout/LayoutBox.h" | 43 #include "core/layout/LayoutBox.h" |
| 44 #include "core/layout/LayoutThemeMobile.h" | 44 #include "core/layout/LayoutThemeMobile.h" |
| 45 #include "core/page/FocusController.h" | 45 #include "core/page/FocusController.h" |
| 46 #include "core/page/Page.h" | 46 #include "core/page/Page.h" |
| 47 #include "core/style/ComputedStyle.h" | 47 #include "core/style/ComputedStyle.h" |
| 48 #include "platform/FileMetadata.h" | 48 #include "platform/FileMetadata.h" |
| 49 #include "platform/LayoutTestSupport.h" | 49 #include "platform/LayoutTestSupport.h" |
| 50 #include "platform/RuntimeEnabledFeatures.h" | 50 #include "platform/RuntimeEnabledFeatures.h" |
| 51 #include "platform/Theme.h" | 51 #include "platform/Theme.h" |
| 52 #include "platform/fonts/FontSelector.h" | 52 #include "platform/fonts/FontSelector.h" |
| 53 #include "platform/graphics/TouchAction.h" |
| 53 #include "platform/text/PlatformLocale.h" | 54 #include "platform/text/PlatformLocale.h" |
| 54 #include "platform/text/StringTruncator.h" | 55 #include "platform/text/StringTruncator.h" |
| 55 #include "platform/wtf/text/StringBuilder.h" | 56 #include "platform/wtf/text/StringBuilder.h" |
| 56 #include "public/platform/Platform.h" | 57 #include "public/platform/Platform.h" |
| 57 #include "public/platform/WebFallbackThemeEngine.h" | 58 #include "public/platform/WebFallbackThemeEngine.h" |
| 58 #include "public/platform/WebRect.h" | 59 #include "public/platform/WebRect.h" |
| 59 | 60 |
| 60 // The methods in this file are shared by all themes on every platform. | 61 // The methods in this file are shared by all themes on every platform. |
| 61 | 62 |
| 62 namespace blink { | 63 namespace blink { |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 input_element->type() != InputTypeNames::range; | 620 input_element->type() != InputTypeNames::range; |
| 620 } | 621 } |
| 621 | 622 |
| 622 void LayoutTheme::AdjustMenuListButtonStyle(ComputedStyle&, Element*) const {} | 623 void LayoutTheme::AdjustMenuListButtonStyle(ComputedStyle&, Element*) const {} |
| 623 | 624 |
| 624 void LayoutTheme::AdjustSliderContainerStyle(ComputedStyle& style, | 625 void LayoutTheme::AdjustSliderContainerStyle(ComputedStyle& style, |
| 625 Element* e) const { | 626 Element* e) const { |
| 626 if (e && (e->ShadowPseudoId() == "-webkit-media-slider-container" || | 627 if (e && (e->ShadowPseudoId() == "-webkit-media-slider-container" || |
| 627 e->ShadowPseudoId() == "-webkit-slider-container")) { | 628 e->ShadowPseudoId() == "-webkit-slider-container")) { |
| 628 if (style.Appearance() == kSliderVerticalPart) { | 629 if (style.Appearance() == kSliderVerticalPart) { |
| 629 style.SetTouchAction(kTouchActionPanX); | 630 style.SetTouchAction(TouchAction::kTouchActionPanX); |
| 630 style.SetAppearance(kNoControlPart); | 631 style.SetAppearance(kNoControlPart); |
| 631 } else { | 632 } else { |
| 632 style.SetTouchAction(kTouchActionPanY); | 633 style.SetTouchAction(TouchAction::kTouchActionPanY); |
| 633 style.SetAppearance(kNoControlPart); | 634 style.SetAppearance(kNoControlPart); |
| 634 } | 635 } |
| 635 } | 636 } |
| 636 } | 637 } |
| 637 | 638 |
| 638 void LayoutTheme::AdjustSliderThumbStyle(ComputedStyle& style) const { | 639 void LayoutTheme::AdjustSliderThumbStyle(ComputedStyle& style) const { |
| 639 AdjustSliderThumbSize(style); | 640 AdjustSliderThumbSize(style); |
| 640 } | 641 } |
| 641 | 642 |
| 642 void LayoutTheme::AdjustSliderThumbSize(ComputedStyle&) const {} | 643 void LayoutTheme::AdjustSliderThumbSize(ComputedStyle&) const {} |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 912 // padding - not honored by WinIE, needs to be removed. | 913 // padding - not honored by WinIE, needs to be removed. |
| 913 style.ResetPadding(); | 914 style.ResetPadding(); |
| 914 | 915 |
| 915 // border - honored by WinIE, but looks terrible (just paints in the control | 916 // border - honored by WinIE, but looks terrible (just paints in the control |
| 916 // box and turns off the Windows XP theme) | 917 // box and turns off the Windows XP theme) |
| 917 // for now, we will not honor it. | 918 // for now, we will not honor it. |
| 918 style.ResetBorder(); | 919 style.ResetBorder(); |
| 919 } | 920 } |
| 920 | 921 |
| 921 } // namespace blink | 922 } // namespace blink |
| OLD | NEW |