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

Side by Side Diff: public/platform/default/WebThemeEngine.h

Issue 41733004: Roll up patch for running layout tests under Aura. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add even more comments about why we have special logic for the layout tests Created 7 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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 PartInnerSpinButton, 64 PartInnerSpinButton,
65 PartProgressBar 65 PartProgressBar
66 }; 66 };
67 67
68 // The current state of the associated Part. 68 // The current state of the associated Part.
69 enum State { 69 enum State {
70 StateDisabled, 70 StateDisabled,
71 StateHover, 71 StateHover,
72 StateNormal, 72 StateNormal,
73 StatePressed, 73 StatePressed,
74 StateFocused,
75 StateReadonly,
76 StateHot,
74 }; 77 };
75 78
76 // Extra parameters for drawing the PartScrollbarHorizontalTrack and 79 // Extra parameters for drawing the PartScrollbarHorizontalTrack and
77 // PartScrollbarVerticalTrack. 80 // PartScrollbarVerticalTrack.
78 struct ScrollbarTrackExtraParams { 81 struct ScrollbarTrackExtraParams {
82 bool isBack; // Whether this is the 'back' part or the 'forward' part.
jamesr 2013/11/06 21:54:09 in other parts of theming code, this is handled by
Dirk Pranke 2013/11/06 22:29:11 Yup. I was trying to avoid changes to the WebTheme
83
79 // The bounds of the entire track, as opposed to the part being painted. 84 // The bounds of the entire track, as opposed to the part being painted.
80 int trackX; 85 int trackX;
81 int trackY; 86 int trackY;
82 int trackWidth; 87 int trackWidth;
83 int trackHeight; 88 int trackHeight;
84 }; 89 };
85 90
86 // Extra parameters for PartCheckbox, PartPushButton and PartRadio. 91 // Extra parameters for PartCheckbox, PartPushButton and PartRadio.
87 struct ButtonExtraParams { 92 struct ButtonExtraParams {
88 bool checked; 93 bool checked;
89 bool indeterminate; // Whether the button state is indeterminate. 94 bool indeterminate; // Whether the button state is indeterminate.
90 bool isDefault; // Whether the button is default button. 95 bool isDefault; // Whether the button is default button.
91 bool hasBorder; 96 bool hasBorder;
92 WebColor backgroundColor; 97 WebColor backgroundColor;
93 }; 98 };
94 99
95 // Extra parameters for PartTextField 100 // Extra parameters for PartTextField
96 struct TextFieldExtraParams { 101 struct TextFieldExtraParams {
97 bool isTextArea; 102 bool isTextArea;
98 bool isListbox; 103 bool isListbox;
99 WebColor backgroundColor; 104 WebColor backgroundColor;
100 }; 105 };
101 106
102 // Extra parameters for PartMenuList 107 // Extra parameters for PartMenuList
103 struct MenuListExtraParams { 108 struct MenuListExtraParams {
104 bool hasBorder; 109 bool hasBorder;
105 bool hasBorderRadius; 110 bool hasBorderRadius;
106 int arrowX; 111 int arrowX;
107 int arrowY; 112 int arrowY;
113 int arrowHeight;
108 WebColor backgroundColor; 114 WebColor backgroundColor;
115 bool fillContentArea;
109 }; 116 };
110 117
111 // Extra parameters for PartSliderTrack and PartSliderThumb 118 // Extra parameters for PartSliderTrack and PartSliderThumb
112 struct SliderExtraParams { 119 struct SliderExtraParams {
113 bool vertical; 120 bool vertical;
114 bool inDrag; 121 bool inDrag;
115 }; 122 };
116 123
117 // Extra parameters for PartInnerSpinButton 124 // Extra parameters for PartInnerSpinButton
118 struct InnerSpinButtonExtraParams { 125 struct InnerSpinButtonExtraParams {
(...skipping 24 matching lines...) Expand all
143 // like vertical scrollbar thumbs, the width will be the required width of 150 // like vertical scrollbar thumbs, the width will be the required width of
144 // the track while the height will be the minimum height. 151 // the track while the height will be the minimum height.
145 virtual WebSize getSize(Part) { return WebSize(); } 152 virtual WebSize getSize(Part) { return WebSize(); }
146 // Paint the given the given theme part. 153 // Paint the given the given theme part.
147 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { } 154 virtual void paint(WebCanvas*, Part, State, const WebRect&, const ExtraParam s*) { }
148 }; 155 };
149 156
150 } // namespace WebKit 157 } // namespace WebKit
151 158
152 #endif 159 #endif
OLDNEW
« Source/testing/runner/WebTestThemeEngineMock.cpp ('K') | « Source/testing/runner/runner.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698