OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 case MediaExitFullscreenButton: | 94 case MediaExitFullscreenButton: |
95 return queryString(WebLocalizedString::AXMediaExitFullscreenButton); | 95 return queryString(WebLocalizedString::AXMediaExitFullscreenButton); |
96 case MediaMuteButton: | 96 case MediaMuteButton: |
97 return queryString(WebLocalizedString::AXMediaMuteButton); | 97 return queryString(WebLocalizedString::AXMediaMuteButton); |
98 case MediaPlayButton: | 98 case MediaPlayButton: |
99 return queryString(WebLocalizedString::AXMediaPlayButton); | 99 return queryString(WebLocalizedString::AXMediaPlayButton); |
100 case MediaUnMuteButton: | 100 case MediaUnMuteButton: |
101 return queryString(WebLocalizedString::AXMediaUnMuteButton); | 101 return queryString(WebLocalizedString::AXMediaUnMuteButton); |
102 case MediaPauseButton: | 102 case MediaPauseButton: |
103 return queryString(WebLocalizedString::AXMediaPauseButton); | 103 return queryString(WebLocalizedString::AXMediaPauseButton); |
104 case MediaStatusDisplay: | |
105 return queryString(WebLocalizedString::AXMediaStatusDisplay); | |
106 case MediaCurrentTimeDisplay: | 104 case MediaCurrentTimeDisplay: |
107 return queryString(WebLocalizedString::AXMediaCurrentTimeDisplay); | 105 return queryString(WebLocalizedString::AXMediaCurrentTimeDisplay); |
108 case MediaTimeRemainingDisplay: | 106 case MediaTimeRemainingDisplay: |
109 return queryString(WebLocalizedString::AXMediaTimeRemainingDisplay); | 107 return queryString(WebLocalizedString::AXMediaTimeRemainingDisplay); |
110 case MediaShowClosedCaptionsButton: | 108 case MediaShowClosedCaptionsButton: |
111 return queryString(WebLocalizedString::AXMediaShowClosedCaptionsButton); | 109 return queryString(WebLocalizedString::AXMediaShowClosedCaptionsButton); |
112 case MediaHideClosedCaptionsButton: | 110 case MediaHideClosedCaptionsButton: |
113 return queryString(WebLocalizedString::AXMediaHideClosedCaptionsButton); | 111 return queryString(WebLocalizedString::AXMediaHideClosedCaptionsButton); |
114 case MediaCastOffButton: | 112 case MediaCastOffButton: |
115 return queryString(WebLocalizedString::AxMediaCastOffButton); | 113 return queryString(WebLocalizedString::AxMediaCastOffButton); |
(...skipping 12 matching lines...) Expand all Loading... |
128 case MediaExitFullscreenButton: | 126 case MediaExitFullscreenButton: |
129 return queryString(WebLocalizedString::AXMediaExitFullscreenButtonHelp); | 127 return queryString(WebLocalizedString::AXMediaExitFullscreenButtonHelp); |
130 case MediaMuteButton: | 128 case MediaMuteButton: |
131 return queryString(WebLocalizedString::AXMediaMuteButtonHelp); | 129 return queryString(WebLocalizedString::AXMediaMuteButtonHelp); |
132 case MediaPlayButton: | 130 case MediaPlayButton: |
133 return queryString(WebLocalizedString::AXMediaPlayButtonHelp); | 131 return queryString(WebLocalizedString::AXMediaPlayButtonHelp); |
134 case MediaUnMuteButton: | 132 case MediaUnMuteButton: |
135 return queryString(WebLocalizedString::AXMediaUnMuteButtonHelp); | 133 return queryString(WebLocalizedString::AXMediaUnMuteButtonHelp); |
136 case MediaPauseButton: | 134 case MediaPauseButton: |
137 return queryString(WebLocalizedString::AXMediaPauseButtonHelp); | 135 return queryString(WebLocalizedString::AXMediaPauseButtonHelp); |
138 case MediaStatusDisplay: | |
139 return queryString(WebLocalizedString::AXMediaStatusDisplayHelp); | |
140 case MediaCurrentTimeDisplay: | 136 case MediaCurrentTimeDisplay: |
141 return queryString(WebLocalizedString::AXMediaCurrentTimeDisplayHelp); | 137 return queryString(WebLocalizedString::AXMediaCurrentTimeDisplayHelp); |
142 case MediaTimeRemainingDisplay: | 138 case MediaTimeRemainingDisplay: |
143 return queryString(WebLocalizedString::AXMediaTimeRemainingDisplayHelp); | 139 return queryString(WebLocalizedString::AXMediaTimeRemainingDisplayHelp); |
144 case MediaShowClosedCaptionsButton: | 140 case MediaShowClosedCaptionsButton: |
145 return queryString(WebLocalizedString::AXMediaShowClosedCaptionsButtonHe
lp); | 141 return queryString(WebLocalizedString::AXMediaShowClosedCaptionsButtonHe
lp); |
146 case MediaHideClosedCaptionsButton: | 142 case MediaHideClosedCaptionsButton: |
147 return queryString(WebLocalizedString::AXMediaHideClosedCaptionsButtonHe
lp); | 143 return queryString(WebLocalizedString::AXMediaHideClosedCaptionsButtonHe
lp); |
148 case MediaCastOffButton: | 144 case MediaCastOffButton: |
149 return queryString(WebLocalizedString::AxMediaCastOffButtonHelp); | 145 return queryString(WebLocalizedString::AxMediaCastOffButtonHelp); |
(...skipping 18 matching lines...) Expand all Loading... |
168 case MediaEnterFullscreenButton: | 164 case MediaEnterFullscreenButton: |
169 case MediaExitFullscreenButton: | 165 case MediaExitFullscreenButton: |
170 case MediaMuteButton: | 166 case MediaMuteButton: |
171 case MediaPlayButton: | 167 case MediaPlayButton: |
172 case MediaUnMuteButton: | 168 case MediaUnMuteButton: |
173 case MediaPauseButton: | 169 case MediaPauseButton: |
174 case MediaShowClosedCaptionsButton: | 170 case MediaShowClosedCaptionsButton: |
175 case MediaHideClosedCaptionsButton: | 171 case MediaHideClosedCaptionsButton: |
176 return ButtonRole; | 172 return ButtonRole; |
177 | 173 |
178 case MediaStatusDisplay: | |
179 return StaticTextRole; | |
180 | |
181 case MediaTimelineContainer: | 174 case MediaTimelineContainer: |
182 return GroupRole; | 175 return GroupRole; |
183 | 176 |
184 default: | 177 default: |
185 break; | 178 break; |
186 } | 179 } |
187 | 180 |
188 return UnknownRole; | 181 return UnknownRole; |
189 } | 182 } |
190 | 183 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 { | 281 { |
289 if (!m_renderer || !m_renderer->node()) | 282 if (!m_renderer || !m_renderer->node()) |
290 return String(); | 283 return String(); |
291 | 284 |
292 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); | 285 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla
yElement*>(m_renderer->node()); |
293 float time = element->currentValue(); | 286 float time = element->currentValue(); |
294 return localizedMediaTimeDescription(fabsf(time)); | 287 return localizedMediaTimeDescription(fabsf(time)); |
295 } | 288 } |
296 | 289 |
297 } // namespace blink | 290 } // namespace blink |
OLD | NEW |