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

Side by Side Diff: Source/platform/Theme.h

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/LengthBox.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Methods for obtaining platform-specific colors. 68 // Methods for obtaining platform-specific colors.
69 virtual Color selectionColor(ControlPart, ControlState, SelectionPart) const { return Color(); } 69 virtual Color selectionColor(ControlPart, ControlState, SelectionPart) const { return Color(); }
70 virtual Color textSearchHighlightColor() const { return Color(); } 70 virtual Color textSearchHighlightColor() const { return Color(); }
71 71
72 // CSS system colors and fonts 72 // CSS system colors and fonts
73 virtual Color systemColor(ThemeColor) const { return Color(); } 73 virtual Color systemColor(ThemeColor) const { return Color(); }
74 74
75 // How fast the caret blinks in text fields. 75 // How fast the caret blinks in text fields.
76 virtual double caretBlinkInterval() const { return 0.5; } 76 virtual double caretBlinkInterval() const { return 0.5; }
77 77
78 // Methods used to adjust the LayoutStyles of controls. 78 // Methods used to adjust the ComputedStyles of controls.
79 79
80 // The font description result should have a zoomed font size. 80 // The font description result should have a zoomed font size.
81 virtual FontDescription controlFont(ControlPart, const FontDescription& font Description, float /*zoomFactor*/) const { return fontDescription; } 81 virtual FontDescription controlFont(ControlPart, const FontDescription& font Description, float /*zoomFactor*/) const { return fontDescription; }
82 82
83 // The size here is in zoomed coordinates already. If a new size is returne d, it also needs to be in zoomed coordinates. 83 // The size here is in zoomed coordinates already. If a new size is returne d, it also needs to be in zoomed coordinates.
84 virtual LengthSize controlSize(ControlPart, const FontDescription&, const Le ngthSize& zoomedSize, float /*zoomFactor*/) const { return zoomedSize; } 84 virtual LengthSize controlSize(ControlPart, const FontDescription&, const Le ngthSize& zoomedSize, float /*zoomFactor*/) const { return zoomedSize; }
85 85
86 // Returns the minimum size for a control in zoomed coordinates. 86 // Returns the minimum size for a control in zoomed coordinates.
87 virtual LengthSize minimumControlSize(ControlPart, const FontDescription&, f loat /*zoomFactor*/) const { return LengthSize(Length(0, Fixed), Length(0, Fixed )); } 87 virtual LengthSize minimumControlSize(ControlPart, const FontDescription&, f loat /*zoomFactor*/) const { return LengthSize(Length(0, Fixed), Length(0, Fixed )); }
88 88
(...skipping 16 matching lines...) Expand all
105 private: 105 private:
106 mutable Color m_activeSelectionColor; 106 mutable Color m_activeSelectionColor;
107 mutable Color m_inactiveSelectionColor; 107 mutable Color m_inactiveSelectionColor;
108 }; 108 };
109 109
110 PLATFORM_EXPORT Theme* platformTheme(); 110 PLATFORM_EXPORT Theme* platformTheme();
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif // Theme_h 114 #endif // Theme_h
OLDNEW
« no previous file with comments | « Source/platform/LengthBox.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698