| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #import "config.h" | 21 #import "config.h" |
| 22 #import "core/rendering/RenderThemeChromiumMac.h" | 22 #import "core/rendering/RenderThemeChromiumMac.h" |
| 23 | 23 |
| 24 #import "core/CSSValueKeywords.h" | 24 #import "core/CSSValueKeywords.h" |
| 25 #import "core/HTMLNames.h" | 25 #import "core/HTMLNames.h" |
| 26 #import "core/UserAgentStyleSheets.h" | |
| 27 #import "core/css/CSSValueList.h" | 26 #import "core/css/CSSValueList.h" |
| 28 #import "core/dom/Document.h" | 27 #import "core/dom/Document.h" |
| 29 #import "core/dom/Element.h" | 28 #import "core/dom/Element.h" |
| 30 #import "core/fileapi/FileList.h" | 29 #import "core/fileapi/FileList.h" |
| 31 #import "core/html/HTMLInputElement.h" | 30 #import "core/html/HTMLInputElement.h" |
| 32 #import "core/html/HTMLMediaElement.h" | 31 #import "core/html/HTMLMediaElement.h" |
| 33 #import "core/html/HTMLMeterElement.h" | 32 #import "core/html/HTMLMeterElement.h" |
| 34 #import "core/html/TimeRanges.h" | 33 #import "core/html/TimeRanges.h" |
| 35 #import "core/html/shadow/MediaControlElements.h" | 34 #import "core/html/shadow/MediaControlElements.h" |
| 36 #import "core/frame/FrameView.h" | 35 #import "core/frame/FrameView.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 48 #import "platform/graphics/BitmapImage.h" | 47 #import "platform/graphics/BitmapImage.h" |
| 49 #import "platform/graphics/GraphicsContextStateSaver.h" | 48 #import "platform/graphics/GraphicsContextStateSaver.h" |
| 50 #import "platform/graphics/Image.h" | 49 #import "platform/graphics/Image.h" |
| 51 #import "platform/graphics/ImageBuffer.h" | 50 #import "platform/graphics/ImageBuffer.h" |
| 52 #import "platform/mac/ColorMac.h" | 51 #import "platform/mac/ColorMac.h" |
| 53 #import "platform/mac/LocalCurrentGraphicsContext.h" | 52 #import "platform/mac/LocalCurrentGraphicsContext.h" |
| 54 #import "platform/mac/ThemeMac.h" | 53 #import "platform/mac/ThemeMac.h" |
| 55 #import "platform/mac/WebCoreNSCellExtras.h" | 54 #import "platform/mac/WebCoreNSCellExtras.h" |
| 56 #import "platform/text/PlatformLocale.h" | 55 #import "platform/text/PlatformLocale.h" |
| 57 #import "platform/text/StringTruncator.h" | 56 #import "platform/text/StringTruncator.h" |
| 57 #import "public/platform/Platform.h" |
| 58 #import "public/platform/WebData.h" |
| 58 | 59 |
| 59 #import <AvailabilityMacros.h> | 60 #import <AvailabilityMacros.h> |
| 60 #import <Carbon/Carbon.h> | 61 #import <Carbon/Carbon.h> |
| 61 #import <Cocoa/Cocoa.h> | 62 #import <Cocoa/Cocoa.h> |
| 62 #import <math.h> | 63 #import <math.h> |
| 63 #import <wtf/RetainPtr.h> | 64 #import <wtf/RetainPtr.h> |
| 64 #import <wtf/StdLibExtras.h> | 65 #import <wtf/StdLibExtras.h> |
| 65 | 66 |
| 66 // The methods in this file are specific to the Mac OS X platform. | 67 // The methods in this file are specific to the Mac OS X platform. |
| 67 | 68 |
| (...skipping 1785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1853 } | 1854 } |
| 1854 | 1855 |
| 1855 String RenderThemeChromiumMac::extraFullScreenStyleSheet() | 1856 String RenderThemeChromiumMac::extraFullScreenStyleSheet() |
| 1856 { | 1857 { |
| 1857 // FIXME: Chromium may wish to style its default media controls differently
in fullscreen. | 1858 // FIXME: Chromium may wish to style its default media controls differently
in fullscreen. |
| 1858 return String(); | 1859 return String(); |
| 1859 } | 1860 } |
| 1860 | 1861 |
| 1861 String RenderThemeChromiumMac::extraDefaultStyleSheet() | 1862 String RenderThemeChromiumMac::extraDefaultStyleSheet() |
| 1862 { | 1863 { |
| 1864 const blink::WebData& themeChromiumCssResource = blink::Platform::current()-
>loadResource("themeChromium.css"); |
| 1865 const blink::WebData& themeInputMultipleFieldsCssResource = blink::Platform:
:current()->loadResource("themeInputMultipleFields.css"); |
| 1866 const blink::WebData& themeMacCssResource = blink::Platform::current()->load
Resource("themeMac.css"); |
| 1867 |
| 1863 return RenderTheme::extraDefaultStyleSheet() + | 1868 return RenderTheme::extraDefaultStyleSheet() + |
| 1864 String(themeChromiumCss, sizeof(themeChromiumCss)) + | 1869 String(themeChromiumCssResource.data(), themeChromiumCssResource.size())
+ |
| 1865 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss))
+ | 1870 String(themeInputMultipleFieldsCssResource.data(), themeInputMultipleFie
ldsCssResource.size()) + |
| 1866 String(themeMacCss, sizeof(themeMacCss)); | 1871 String(themeMacCssResource.data(), themeMacCssResource.size()); |
| 1867 } | 1872 } |
| 1868 | 1873 |
| 1869 bool RenderThemeChromiumMac::paintMediaVolumeSliderContainer(RenderObject* objec
t, const PaintInfo& paintInfo, const IntRect& rect) | 1874 bool RenderThemeChromiumMac::paintMediaVolumeSliderContainer(RenderObject* objec
t, const PaintInfo& paintInfo, const IntRect& rect) |
| 1870 { | 1875 { |
| 1871 return true; | 1876 return true; |
| 1872 } | 1877 } |
| 1873 | 1878 |
| 1874 bool RenderThemeChromiumMac::paintMediaVolumeSliderTrack(RenderObject* object, c
onst PaintInfo& paintInfo, const IntRect& rect) | 1879 bool RenderThemeChromiumMac::paintMediaVolumeSliderTrack(RenderObject* object, c
onst PaintInfo& paintInfo, const IntRect& rect) |
| 1875 { | 1880 { |
| 1876 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSlider, object
, paintInfo, rect); | 1881 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSlider, object
, paintInfo, rect); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1908 | 1913 |
| 1909 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1914 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
| 1910 { | 1915 { |
| 1911 ControlPart part = style->appearance(); | 1916 ControlPart part = style->appearance(); |
| 1912 if (part == CheckboxPart || part == RadioPart) | 1917 if (part == CheckboxPart || part == RadioPart) |
| 1913 return style->effectiveZoom() != 1; | 1918 return style->effectiveZoom() != 1; |
| 1914 return false; | 1919 return false; |
| 1915 } | 1920 } |
| 1916 | 1921 |
| 1917 } // namespace blink | 1922 } // namespace blink |
| OLD | NEW |