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

Side by Side Diff: sky/engine/public/platform/WebFallbackThemeEngine.h

Issue 653993007: Remove straggling bits of listboxes. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/public/platform/WebThemeEngine.h » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 PartScrollbarHorizontalThumb, 51 PartScrollbarHorizontalThumb,
52 PartScrollbarVerticalThumb, 52 PartScrollbarVerticalThumb,
53 PartScrollbarHorizontalTrack, 53 PartScrollbarHorizontalTrack,
54 PartScrollbarVerticalTrack, 54 PartScrollbarVerticalTrack,
55 PartScrollbarCorner, 55 PartScrollbarCorner,
56 56
57 // RenderTheme parts 57 // RenderTheme parts
58 PartCheckbox, 58 PartCheckbox,
59 PartRadio, 59 PartRadio,
60 PartButton, 60 PartButton,
61 PartTextField,
62 PartMenuList, 61 PartMenuList,
63 PartSliderTrack, 62 PartSliderTrack,
64 PartSliderThumb, 63 PartSliderThumb,
65 PartInnerSpinButton, 64 PartInnerSpinButton,
66 PartProgressBar 65 PartProgressBar
67 }; 66 };
68 67
69 // The current state of the associated Part. 68 // The current state of the associated Part.
70 enum State { 69 enum State {
71 StateDisabled, 70 StateDisabled,
(...skipping 14 matching lines...) Expand all
86 85
87 // Extra parameters for PartCheckbox, PartPushButton and PartRadio. 86 // Extra parameters for PartCheckbox, PartPushButton and PartRadio.
88 struct ButtonExtraParams { 87 struct ButtonExtraParams {
89 bool checked; 88 bool checked;
90 bool indeterminate; // Whether the button state is indeterminate. 89 bool indeterminate; // Whether the button state is indeterminate.
91 bool isDefault; // Whether the button is default button. 90 bool isDefault; // Whether the button is default button.
92 bool hasBorder; 91 bool hasBorder;
93 WebColor backgroundColor; 92 WebColor backgroundColor;
94 }; 93 };
95 94
96 // Extra parameters for PartTextField
97 struct TextFieldExtraParams {
98 bool isTextArea;
99 bool isListbox;
100 WebColor backgroundColor;
101 };
102
103 // Extra parameters for PartMenuList 95 // Extra parameters for PartMenuList
104 struct MenuListExtraParams { 96 struct MenuListExtraParams {
105 bool hasBorder; 97 bool hasBorder;
106 bool hasBorderRadius; 98 bool hasBorderRadius;
107 int arrowX; 99 int arrowX;
108 int arrowY; 100 int arrowY;
109 WebColor backgroundColor; 101 WebColor backgroundColor;
110 }; 102 };
111 103
112 // Extra parameters for PartSliderTrack and PartSliderThumb 104 // Extra parameters for PartSliderTrack and PartSliderThumb
(...skipping 13 matching lines...) Expand all
126 bool determinate; 118 bool determinate;
127 int valueRectX; 119 int valueRectX;
128 int valueRectY; 120 int valueRectY;
129 int valueRectWidth; 121 int valueRectWidth;
130 int valueRectHeight; 122 int valueRectHeight;
131 }; 123 };
132 124
133 union ExtraParams { 125 union ExtraParams {
134 ScrollbarTrackExtraParams scrollbarTrack; 126 ScrollbarTrackExtraParams scrollbarTrack;
135 ButtonExtraParams button; 127 ButtonExtraParams button;
136 TextFieldExtraParams textField;
137 MenuListExtraParams menuList; 128 MenuListExtraParams menuList;
138 SliderExtraParams slider; 129 SliderExtraParams slider;
139 InnerSpinButtonExtraParams innerSpin; 130 InnerSpinButtonExtraParams innerSpin;
140 ProgressBarExtraParams progressBar; 131 ProgressBarExtraParams progressBar;
141 }; 132 };
142 133
143 // Gets the size of the given theme part. For variable sized items 134 // Gets the size of the given theme part. For variable sized items
144 // like vertical scrollbar thumbs, the width will be the required width of 135 // like vertical scrollbar thumbs, the width will be the required width of
145 // the track while the height will be the minimum height. 136 // the track while the height will be the minimum height.
146 virtual WebSize getSize(Part) { return WebSize(); } 137 virtual WebSize getSize(Part) { return WebSize(); }
147 // Paint the given the given theme part. 138 // Paint the given the given theme part.
148 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { } 139 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { }
149 }; 140 };
150 141
151 } // namespace blink 142 } // namespace blink
152 143
153 #endif 144 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderObject.h ('k') | sky/engine/public/platform/WebThemeEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698