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

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

Issue 2477203002: Media Controls: delegate 'volumechange' and 'focusin' handling to an EventListener. (Closed)
Patch Set: add comment Created 4 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 InsertionNotificationRequest insertedInto(ContainerNode*) final; 344 InsertionNotificationRequest insertedInto(ContainerNode*) final;
345 void didNotifySubtreeInsertionsToDocument() override; 345 void didNotifySubtreeInsertionsToDocument() override;
346 void removedFrom(ContainerNode*) final; 346 void removedFrom(ContainerNode*) final;
347 void didRecalcStyle(StyleRecalcChange) final; 347 void didRecalcStyle(StyleRecalcChange) final;
348 348
349 bool canStartSelection() const override { return false; } 349 bool canStartSelection() const override { return false; }
350 350
351 void didBecomeFullscreenElement() final; 351 void didBecomeFullscreenElement() final;
352 void willStopBeingFullscreenElement() final; 352 void willStopBeingFullscreenElement() final;
353 bool isInteractiveContent() const final; 353 bool isInteractiveContent() const final;
354 void defaultEventHandler(Event*) final;
355 354
356 // ActiveDOMObject functions. 355 // ActiveDOMObject functions.
357 void contextDestroyed() final; 356 void contextDestroyed() final;
358 357
359 virtual void updateDisplayState() {} 358 virtual void updateDisplayState() {}
360 359
361 void setReadyState(ReadyState); 360 void setReadyState(ReadyState);
362 void setNetworkState(WebMediaPlayer::NetworkState); 361 void setNetworkState(WebMediaPlayer::NetworkState);
363 362
364 // WebMediaPlayerClient implementation. 363 // WebMediaPlayerClient implementation.
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 734
736 inline bool isHTMLMediaElement(const HTMLElement& element) { 735 inline bool isHTMLMediaElement(const HTMLElement& element) {
737 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 736 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
738 } 737 }
739 738
740 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 739 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
741 740
742 } // namespace blink 741 } // namespace blink
743 742
744 #endif // HTMLMediaElement_h 743 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/BUILD.gn ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698