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

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

Issue 297783004: Implement heuristic for showing media controls during playback w/o a mouse (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: IgnoreSelfHover -> IgnoreVideoHover; Tweak comment. Created 6 years, 7 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 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; 307 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
308 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 308 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
309 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE F INAL; 309 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE F INAL;
310 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE; 310 virtual void didNotifySubtreeInsertionsToDocument() OVERRIDE;
311 virtual void removedFrom(ContainerNode*) OVERRIDE FINAL; 311 virtual void removedFrom(ContainerNode*) OVERRIDE FINAL;
312 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL; 312 virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE FINAL;
313 313
314 virtual void didBecomeFullscreenElement() OVERRIDE FINAL; 314 virtual void didBecomeFullscreenElement() OVERRIDE FINAL;
315 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL; 315 virtual void willStopBeingFullscreenElement() OVERRIDE FINAL;
316 virtual bool isInteractiveContent() const OVERRIDE FINAL; 316 virtual bool isInteractiveContent() const OVERRIDE FINAL;
317 virtual void defaultEventHandler(Event*) OVERRIDE FINAL;
317 318
318 // ActiveDOMObject functions. 319 // ActiveDOMObject functions.
319 virtual void stop() OVERRIDE FINAL; 320 virtual void stop() OVERRIDE FINAL;
320 321
321 virtual void updateDisplayState() { } 322 virtual void updateDisplayState() { }
322 323
323 void setReadyState(MediaPlayer::ReadyState); 324 void setReadyState(MediaPlayer::ReadyState);
324 void setNetworkState(MediaPlayer::NetworkState); 325 void setNetworkState(MediaPlayer::NetworkState);
325 326
326 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL; 327 virtual void mediaPlayerNetworkStateChanged() OVERRIDE FINAL;
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 inline bool isHTMLMediaElement(const HTMLElement& element) 554 inline bool isHTMLMediaElement(const HTMLElement& element)
554 { 555 {
555 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 556 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
556 } 557 }
557 558
558 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 559 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
559 560
560 } //namespace 561 } //namespace
561 562
562 #endif 563 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698