OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 PassRefPtr<RenderTheme> RenderTheme::themeForPage(Page* page) | 50 PassRefPtr<RenderTheme> RenderTheme::themeForPage(Page* page) |
51 { | 51 { |
52 static RenderTheme* renderTheme = RenderThemeChromiumAndroid::create().leakR
ef(); | 52 static RenderTheme* renderTheme = RenderThemeChromiumAndroid::create().leakR
ef(); |
53 return renderTheme; | 53 return renderTheme; |
54 } | 54 } |
55 | 55 |
56 RenderThemeChromiumAndroid::~RenderThemeChromiumAndroid() | 56 RenderThemeChromiumAndroid::~RenderThemeChromiumAndroid() |
57 { | 57 { |
58 } | 58 } |
59 | 59 |
60 Color RenderThemeChromiumAndroid::systemColor(int cssValueId) const | 60 Color RenderThemeChromiumAndroid::systemColor(CSSValueID cssValueId) const |
61 { | 61 { |
62 if (isRunningLayoutTest() && cssValueId == CSSValueButtonface) { | 62 if (isRunningLayoutTest() && cssValueId == CSSValueButtonface) { |
63 // Match Chromium Linux' button color in layout tests. | 63 // Match Chromium Linux' button color in layout tests. |
64 static const Color linuxButtonGrayColor(0xffdddddd); | 64 static const Color linuxButtonGrayColor(0xffdddddd); |
65 return linuxButtonGrayColor; | 65 return linuxButtonGrayColor; |
66 } | 66 } |
67 return RenderTheme::systemColor(cssValueId); | 67 return RenderTheme::systemColor(cssValueId); |
68 } | 68 } |
69 | 69 |
70 String RenderThemeChromiumAndroid::extraMediaControlsStyleSheet() | 70 String RenderThemeChromiumAndroid::extraMediaControlsStyleSheet() |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 IntSize scrollbarSize = WebKit::Platform::current()->themeEngine()->getSize(
WebKit::WebThemeEngine::PartScrollbarDownArrow); | 102 IntSize scrollbarSize = WebKit::Platform::current()->themeEngine()->getSize(
WebKit::WebThemeEngine::PartScrollbarDownArrow); |
103 return scrollbarSize.width(); | 103 return scrollbarSize.width(); |
104 } | 104 } |
105 | 105 |
106 bool RenderThemeChromiumAndroid::supportsDataListUI(const AtomicString& type) co
nst | 106 bool RenderThemeChromiumAndroid::supportsDataListUI(const AtomicString& type) co
nst |
107 { | 107 { |
108 return false; | 108 return false; |
109 } | 109 } |
110 | 110 |
111 } // namespace WebCore | 111 } // namespace WebCore |
OLD | NEW |