OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008, 2009, 2010 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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace WebCore { | 29 namespace WebCore { |
30 | 30 |
31 enum ControlState { | 31 enum ControlState { |
32 HoverState = 1, | 32 HoverState = 1, |
33 PressedState = 1 << 1, | 33 PressedState = 1 << 1, |
34 FocusState = 1 << 2, | 34 FocusState = 1 << 2, |
35 EnabledState = 1 << 3, | 35 EnabledState = 1 << 3, |
36 CheckedState = 1 << 4, | 36 CheckedState = 1 << 4, |
37 ReadOnlyState = 1 << 5, | 37 ReadOnlyState = 1 << 5, |
38 DefaultState = 1 << 6, | |
39 WindowInactiveState = 1 << 7, | 38 WindowInactiveState = 1 << 7, |
40 IndeterminateState = 1 << 8, | 39 IndeterminateState = 1 << 8, |
41 SpinUpState = 1 << 9, // Sub-state for HoverState and PressedState. | 40 SpinUpState = 1 << 9, // Sub-state for HoverState and PressedState. |
42 AllStates = 0xffffffff | 41 AllStates = 0xffffffff |
43 }; | 42 }; |
44 | 43 |
45 typedef unsigned ControlStates; | 44 typedef unsigned ControlStates; |
46 | 45 |
47 // Must follow CSSValueKeywords.in order | 46 // Must follow CSSValueKeywords.in order |
48 enum ControlPart { | 47 enum ControlPart { |
49 NoControlPart, CheckboxPart, RadioPart, PushButtonPart, SquareButtonPart, Bu
ttonPart, | 48 NoControlPart, CheckboxPart, RadioPart, PushButtonPart, SquareButtonPart, Bu
ttonPart, |
50 ButtonBevelPart, DefaultButtonPart, InnerSpinButtonPart, InputSpeechButtonPa
rt, ListboxPart, ListItemPart, | 49 ButtonBevelPart, InnerSpinButtonPart, InputSpeechButtonPart, ListboxPart, Li
stItemPart, |
51 MediaEnterFullscreenButtonPart, MediaExitFullscreenButtonPart, MediaFullScre
enVolumeSliderPart, MediaFullScreenVolumeSliderThumbPart, MediaMuteButtonPart, M
ediaPlayButtonPart, | 50 MediaEnterFullscreenButtonPart, MediaExitFullscreenButtonPart, MediaFullScre
enVolumeSliderPart, MediaFullScreenVolumeSliderThumbPart, MediaMuteButtonPart, M
ediaPlayButtonPart, |
52 MediaOverlayPlayButtonPart, MediaSeekBackButtonPart, MediaSeekForwardButtonP
art, MediaRewindButtonPart, MediaReturnToRealtimeButtonPart, MediaToggleClosedCa
ptionsButtonPart, | 51 MediaOverlayPlayButtonPart, MediaSeekBackButtonPart, MediaSeekForwardButtonP
art, MediaRewindButtonPart, MediaReturnToRealtimeButtonPart, MediaToggleClosedCa
ptionsButtonPart, |
53 MediaSliderPart, MediaSliderThumbPart, MediaVolumeSliderContainerPart, Media
VolumeSliderPart, MediaVolumeSliderThumbPart, | 52 MediaSliderPart, MediaSliderThumbPart, MediaVolumeSliderContainerPart, Media
VolumeSliderPart, MediaVolumeSliderThumbPart, |
54 MediaVolumeSliderMuteButtonPart, MediaControlsBackgroundPart, MediaControlsF
ullscreenBackgroundPart, MediaCurrentTimePart, MediaTimeRemainingPart, | 53 MediaVolumeSliderMuteButtonPart, MediaControlsBackgroundPart, MediaControlsF
ullscreenBackgroundPart, MediaCurrentTimePart, MediaTimeRemainingPart, |
55 MenulistPart, MenulistButtonPart, MenulistTextPart, MenulistTextFieldPart, M
eterPart, ProgressBarPart, ProgressBarValuePart, | 54 MenulistPart, MenulistButtonPart, MenulistTextPart, MenulistTextFieldPart, M
eterPart, ProgressBarPart, ProgressBarValuePart, |
56 SliderHorizontalPart, SliderVerticalPart, SliderThumbHorizontalPart, | 55 SliderHorizontalPart, SliderVerticalPart, SliderThumbHorizontalPart, |
57 SliderThumbVerticalPart, CaretPart, SearchFieldPart, SearchFieldDecorationPa
rt, | 56 SliderThumbVerticalPart, CaretPart, SearchFieldPart, SearchFieldDecorationPa
rt, |
58 SearchFieldResultsDecorationPart, SearchFieldResultsButtonPart, | 57 SearchFieldResultsDecorationPart, SearchFieldResultsButtonPart, |
59 SearchFieldCancelButtonPart, TextFieldPart, | 58 SearchFieldCancelButtonPart, TextFieldPart, |
60 RelevancyLevelIndicatorPart, ContinuousCapacityLevelIndicatorPart, DiscreteC
apacityLevelIndicatorPart, RatingLevelIndicatorPart, | 59 RelevancyLevelIndicatorPart, ContinuousCapacityLevelIndicatorPart, DiscreteC
apacityLevelIndicatorPart, RatingLevelIndicatorPart, |
(...skipping 11 matching lines...) Expand all Loading... |
72 enum ThemeColor { | 71 enum ThemeColor { |
73 ActiveBorderColor, ActiveCaptionColor, AppWorkspaceColor, BackgroundColor, B
uttonFaceColor, ButtonHighlightColor, ButtonShadowColor, | 72 ActiveBorderColor, ActiveCaptionColor, AppWorkspaceColor, BackgroundColor, B
uttonFaceColor, ButtonHighlightColor, ButtonShadowColor, |
74 ButtonTextColor, CaptionTextColor, GrayTextColor, HighlightColor, HighlightT
extColor, InactiveBorderColor, InactiveCaptionColor, | 73 ButtonTextColor, CaptionTextColor, GrayTextColor, HighlightColor, HighlightT
extColor, InactiveBorderColor, InactiveCaptionColor, |
75 InactiveCaptionTextColor, InfoBackgroundColor, InfoTextColor, MatchColor, Me
nuTextColor, ScrollbarColor, ThreeDDarkDhasowColor, | 74 InactiveCaptionTextColor, InfoBackgroundColor, InfoTextColor, MatchColor, Me
nuTextColor, ScrollbarColor, ThreeDDarkDhasowColor, |
76 ThreeDFaceColor, ThreeDHighlightColor, ThreeDLightShadowColor, ThreeDShadowC
Lor, WindowColor, WindowFrameColor, WindowTextColor, | 75 ThreeDFaceColor, ThreeDHighlightColor, ThreeDLightShadowColor, ThreeDShadowC
Lor, WindowColor, WindowFrameColor, WindowTextColor, |
77 FocusRingColor | 76 FocusRingColor |
78 }; | 77 }; |
79 | 78 |
80 } | 79 } |
81 #endif | 80 #endif |
OLD | NEW |