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

Side by Side Diff: Source/core/accessibility/AXMediaControls.cpp

Issue 200713004: Replace HTMLMediaElement::isVideo() with isHTMLVideoElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « no previous file | Source/core/html/HTMLAudioElement.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) 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 return queryString(controllingVideoElement() ? WebLocalizedString::AXMediaVi deoElementHelp : WebLocalizedString::AXMediaAudioElementHelp); 222 return queryString(controllingVideoElement() ? WebLocalizedString::AXMediaVi deoElementHelp : WebLocalizedString::AXMediaAudioElementHelp);
223 } 223 }
224 224
225 bool AXMediaControlsContainer::controllingVideoElement() const 225 bool AXMediaControlsContainer::controllingVideoElement() const
226 { 226 {
227 if (!m_renderer->node()) 227 if (!m_renderer->node())
228 return true; 228 return true;
229 229
230 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla yElement*>(m_renderer->node()); 230 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla yElement*>(m_renderer->node());
231 231
232 return toParentMediaElement(element)->isVideo(); 232 return isHTMLVideoElement(toParentMediaElement(element));
233 } 233 }
234 234
235 bool AXMediaControlsContainer::computeAccessibilityIsIgnored() const 235 bool AXMediaControlsContainer::computeAccessibilityIsIgnored() const
236 { 236 {
237 return accessibilityIsIgnoredByDefault(); 237 return accessibilityIsIgnoredByDefault();
238 } 238 }
239 239
240 // 240 //
241 // AccessibilityMediaTimeline 241 // AccessibilityMediaTimeline
242 242
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 { 307 {
308 if (!m_renderer || !m_renderer->node()) 308 if (!m_renderer || !m_renderer->node())
309 return String(); 309 return String();
310 310
311 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla yElement*>(m_renderer->node()); 311 MediaControlTimeDisplayElement* element = static_cast<MediaControlTimeDispla yElement*>(m_renderer->node());
312 float time = element->currentValue(); 312 float time = element->currentValue();
313 return localizedMediaTimeDescription(fabsf(time)); 313 return localizedMediaTimeDescription(fabsf(time));
314 } 314 }
315 315
316 } // namespace WebCore 316 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLAudioElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698