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

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 249483002: Disable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 void invalidateCachedTime(); 396 void invalidateCachedTime();
397 void refreshCachedTime() const; 397 void refreshCachedTime() const;
398 398
399 bool hasMediaControls() const; 399 bool hasMediaControls() const;
400 bool createMediaControls(); 400 bool createMediaControls();
401 void configureMediaControls(); 401 void configureMediaControls();
402 402
403 void prepareMediaFragmentURI(); 403 void prepareMediaFragmentURI();
404 void applyMediaFragmentURI(); 404 void applyMediaFragmentURI();
405 405
406 virtual bool willRespondToMouseClickEvents() OVERRIDE FINAL;
407 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL; 406 virtual void* preDispatchEventHandler(Event*) OVERRIDE FINAL;
408 virtual void defaultEventHandler(Event*) OVERRIDE FINAL;
409 407
410 void changeNetworkStateFromLoadingToIdle(); 408 void changeNetworkStateFromLoadingToIdle();
411 409
412 const AtomicString& mediaGroup() const; 410 const AtomicString& mediaGroup() const;
413 void setMediaGroup(const AtomicString&); 411 void setMediaGroup(const AtomicString&);
414 void updateMediaController(); 412 void updateMediaController();
415 bool isBlocked() const; 413 bool isBlocked() const;
416 bool isBlockedOnMediaController() const; 414 bool isBlockedOnMediaController() const;
417 bool isAutoplaying() const { return m_autoplaying; } 415 bool isAutoplaying() const { return m_autoplaying; }
418 416
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 inline bool isHTMLMediaElement(const HTMLElement& element) 551 inline bool isHTMLMediaElement(const HTMLElement& element)
554 { 552 {
555 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 553 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
556 } 554 }
557 555
558 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 556 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
559 557
560 } //namespace 558 } //namespace
561 559
562 #endif 560 #endif
OLDNEW
« no previous file with comments | « LayoutTests/media/activation-behavior-shadow-expected.txt ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698