Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: Source/core/rendering/RenderThemeChromiumMac.mm

Issue 573553002: Move the user agent styles sheets to blink_resources.grd (Part 3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase! Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/frame/FrameView.h" 30 #import "core/frame/FrameView.h"
32 #import "core/html/HTMLInputElement.h" 31 #import "core/html/HTMLInputElement.h"
33 #import "core/html/HTMLMediaElement.h" 32 #import "core/html/HTMLMediaElement.h"
34 #import "core/html/HTMLMeterElement.h" 33 #import "core/html/HTMLMeterElement.h"
35 #import "core/html/TimeRanges.h" 34 #import "core/html/TimeRanges.h"
36 #import "core/html/shadow/MediaControlElements.h" 35 #import "core/html/shadow/MediaControlElements.h"
37 #import "core/rendering/PaintInfo.h" 36 #import "core/rendering/PaintInfo.h"
38 #import "core/rendering/RenderLayer.h" 37 #import "core/rendering/RenderLayer.h"
39 #import "core/rendering/RenderMedia.h" 38 #import "core/rendering/RenderMedia.h"
40 #import "core/rendering/RenderMediaControls.h" 39 #import "core/rendering/RenderMediaControls.h"
41 #import "core/rendering/RenderMeter.h" 40 #import "core/rendering/RenderMeter.h"
42 #import "core/rendering/RenderProgress.h" 41 #import "core/rendering/RenderProgress.h"
43 #import "core/rendering/RenderSlider.h" 42 #import "core/rendering/RenderSlider.h"
44 #import "core/rendering/RenderView.h" 43 #import "core/rendering/RenderView.h"
45 #import "core/rendering/style/ShadowList.h" 44 #import "core/rendering/style/ShadowList.h"
46 #import "platform/LayoutTestSupport.h" 45 #import "platform/LayoutTestSupport.h"
46 #import "platform/PlatformResourceLoader.h"
47 #import "platform/SharedBuffer.h" 47 #import "platform/SharedBuffer.h"
48 #import "platform/geometry/FloatRoundedRect.h" 48 #import "platform/geometry/FloatRoundedRect.h"
49 #import "platform/graphics/BitmapImage.h" 49 #import "platform/graphics/BitmapImage.h"
50 #import "platform/graphics/GraphicsContextStateSaver.h" 50 #import "platform/graphics/GraphicsContextStateSaver.h"
51 #import "platform/graphics/Image.h" 51 #import "platform/graphics/Image.h"
52 #import "platform/graphics/ImageBuffer.h" 52 #import "platform/graphics/ImageBuffer.h"
53 #import "platform/mac/ColorMac.h" 53 #import "platform/mac/ColorMac.h"
54 #import "platform/mac/LocalCurrentGraphicsContext.h" 54 #import "platform/mac/LocalCurrentGraphicsContext.h"
55 #import "platform/mac/ThemeMac.h" 55 #import "platform/mac/ThemeMac.h"
56 #import "platform/mac/WebCoreNSCellExtras.h" 56 #import "platform/mac/WebCoreNSCellExtras.h"
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1790 1790
1791 String RenderThemeChromiumMac::extraFullScreenStyleSheet() 1791 String RenderThemeChromiumMac::extraFullScreenStyleSheet()
1792 { 1792 {
1793 // FIXME: Chromium may wish to style its default media controls differently in fullscreen. 1793 // FIXME: Chromium may wish to style its default media controls differently in fullscreen.
1794 return String(); 1794 return String();
1795 } 1795 }
1796 1796
1797 String RenderThemeChromiumMac::extraDefaultStyleSheet() 1797 String RenderThemeChromiumMac::extraDefaultStyleSheet()
1798 { 1798 {
1799 return RenderTheme::extraDefaultStyleSheet() + 1799 return RenderTheme::extraDefaultStyleSheet() +
1800 String(themeChromiumCss, sizeof(themeChromiumCss)) + 1800 loadResourceAsASCIIString("themeChromium.css") +
1801 String(themeInputMultipleFieldsCss, sizeof(themeInputMultipleFieldsCss)) + 1801 loadResourceAsASCIIString("themeInputMultipleFields.css") +
1802 String(themeMacCss, sizeof(themeMacCss)); 1802 loadResourceAsASCIIString("themeMac.css");
1803 } 1803 }
1804 1804
1805 bool RenderThemeChromiumMac::paintMediaVolumeSliderContainer(RenderObject* objec t, const PaintInfo& paintInfo, const IntRect& rect) 1805 bool RenderThemeChromiumMac::paintMediaVolumeSliderContainer(RenderObject* objec t, const PaintInfo& paintInfo, const IntRect& rect)
1806 { 1806 {
1807 return true; 1807 return true;
1808 } 1808 }
1809 1809
1810 bool RenderThemeChromiumMac::paintMediaVolumeSliderTrack(RenderObject* object, c onst PaintInfo& paintInfo, const IntRect& rect) 1810 bool RenderThemeChromiumMac::paintMediaVolumeSliderTrack(RenderObject* object, c onst PaintInfo& paintInfo, const IntRect& rect)
1811 { 1811 {
1812 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSlider, object , paintInfo, rect); 1812 return RenderMediaControls::paintMediaControlsPart(MediaVolumeSlider, object , paintInfo, rect);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1844 1844
1845 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const 1845 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const
1846 { 1846 {
1847 ControlPart part = style->appearance(); 1847 ControlPart part = style->appearance();
1848 if (part == CheckboxPart || part == RadioPart) 1848 if (part == CheckboxPart || part == RadioPart)
1849 return style->effectiveZoom() != 1; 1849 return style->effectiveZoom() != 1;
1850 return false; 1850 return false;
1851 } 1851 }
1852 1852
1853 } // namespace blink 1853 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumLinux.cpp ('k') | Source/core/rendering/RenderThemeChromiumSkia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698