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

Side by Side Diff: Source/core/html/shadow/MediaControls.h

Issue 1219013005: Fix virtual/override/final usage in Source/core/html/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2011, 2012 Google Inc. All rights 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void hideMediaControlsTimerFired(Timer<MediaControls>*); 97 void hideMediaControlsTimerFired(Timer<MediaControls>*);
98 void startHideMediaControlsTimer(); 98 void startHideMediaControlsTimer();
99 void stopHideMediaControlsTimer(); 99 void stopHideMediaControlsTimer();
100 void resetHideMediaControlsTimer(); 100 void resetHideMediaControlsTimer();
101 101
102 // Attempts to show the overlay cast button. If it is covered by another 102 // Attempts to show the overlay cast button. If it is covered by another
103 // element in the page, it will be hidden. 103 // element in the page, it will be hidden.
104 void tryShowOverlayCastButton(); 104 void tryShowOverlayCastButton();
105 105
106 // Node 106 // Node
107 virtual bool isMediaControls() const override { return true; } 107 bool isMediaControls() const override { return true; }
108 virtual bool willRespondToMouseMoveEvents() override { return true; } 108 bool willRespondToMouseMoveEvents() override { return true; }
109 virtual void defaultEventHandler(Event*) override; 109 void defaultEventHandler(Event*) override;
110 bool containsRelatedTarget(Event*); 110 bool containsRelatedTarget(Event*);
111 111
112 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; 112 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement;
113 113
114 // Media control elements. 114 // Media control elements.
115 RawPtrWillBeMember<MediaControlOverlayEnclosureElement> m_overlayEnclosure; 115 RawPtrWillBeMember<MediaControlOverlayEnclosureElement> m_overlayEnclosure;
116 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton ; 116 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton ;
117 RawPtrWillBeMember<MediaControlCastButtonElement> m_overlayCastButton; 117 RawPtrWillBeMember<MediaControlCastButtonElement> m_overlayCastButton;
118 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; 118 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure;
119 RawPtrWillBeMember<MediaControlPanelElement> m_panel; 119 RawPtrWillBeMember<MediaControlPanelElement> m_panel;
(...skipping 11 matching lines...) Expand all
131 unsigned m_hideTimerBehaviorFlags; 131 unsigned m_hideTimerBehaviorFlags;
132 bool m_isMouseOverControls : 1; 132 bool m_isMouseOverControls : 1;
133 bool m_isPausedForScrubbing : 1; 133 bool m_isPausedForScrubbing : 1;
134 }; 134 };
135 135
136 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 136 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
137 137
138 } 138 }
139 139
140 #endif 140 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.h ('k') | Source/core/html/shadow/MeterShadowElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698