| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 void adjustStyle(ComputedStyle&, Element*); | 67 void adjustStyle(ComputedStyle&, Element*); |
| 68 | 68 |
| 69 // The remaining methods should be implemented by the platform-specific port
ion of the theme, e.g., | 69 // The remaining methods should be implemented by the platform-specific port
ion of the theme, e.g., |
| 70 // LayoutThemeMac.cpp for Mac OS X. | 70 // LayoutThemeMac.cpp for Mac OS X. |
| 71 | 71 |
| 72 // These methods return the theme's extra style sheets rules, to let each pl
atform | 72 // These methods return the theme's extra style sheets rules, to let each pl
atform |
| 73 // adjust the default CSS rules in html.css, quirks.css or mediaControls.css
. | 73 // adjust the default CSS rules in html.css, quirks.css or mediaControls.css
. |
| 74 virtual String extraDefaultStyleSheet(); | 74 virtual String extraDefaultStyleSheet(); |
| 75 virtual String extraQuirksStyleSheet() { return String(); } | 75 virtual String extraQuirksStyleSheet() { return String(); } |
| 76 virtual String extraMediaControlsStyleSheet() { return String(); } | 76 virtual String extraMediaControlsStyleSheet() { return String(); } |
| 77 virtual String extraFullScreenStyleSheet() { return String(); } | 77 virtual String extraFullscreenStyleSheet() { return String(); } |
| 78 | 78 |
| 79 // A method to obtain the baseline position for a "leaf" control. This will
only be used if a baseline | 79 // A method to obtain the baseline position for a "leaf" control. This will
only be used if a baseline |
| 80 // position cannot be determined by examining child content. Checkboxes and
radio buttons are examples of | 80 // position cannot be determined by examining child content. Checkboxes and
radio buttons are examples of |
| 81 // controls that need to do this. | 81 // controls that need to do this. |
| 82 virtual int baselinePosition(const LayoutObject*) const; | 82 virtual int baselinePosition(const LayoutObject*) const; |
| 83 | 83 |
| 84 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like | 84 // A method for asking if a control is a container or not. Leaf controls ha
ve to have some special behavior (like |
| 85 // the baseline position API above). | 85 // the baseline position API above). |
| 86 bool isControlContainer(ControlPart) const; | 86 bool isControlContainer(ControlPart) const; |
| 87 | 87 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 249 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 250 | 250 |
| 251 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 251 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 252 | 252 |
| 253 Theme* m_platformTheme; // The platform-specific theme. | 253 Theme* m_platformTheme; // The platform-specific theme. |
| 254 }; | 254 }; |
| 255 | 255 |
| 256 } // namespace blink | 256 } // namespace blink |
| 257 | 257 |
| 258 #endif // LayoutTheme_h | 258 #endif // LayoutTheme_h |
| OLD | NEW |