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

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

Issue 131793003: Update remaining HTML classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove useless FINAL Created 6 years, 11 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 virtual void stopHideFullscreenControlsTimer(); 88 virtual void stopHideFullscreenControlsTimer();
89 89
90 virtual void createTextTrackDisplay(); 90 virtual void createTextTrackDisplay();
91 virtual void showTextTrackDisplay(); 91 virtual void showTextTrackDisplay();
92 virtual void hideTextTrackDisplay(); 92 virtual void hideTextTrackDisplay();
93 virtual void updateTextTrackDisplay(); 93 virtual void updateTextTrackDisplay();
94 94
95 protected: 95 protected:
96 explicit MediaControls(Document&); 96 explicit MediaControls(Document&);
97 97
98 virtual void defaultEventHandler(Event*); 98 virtual void defaultEventHandler(Event*) OVERRIDE;
99 99
100 virtual bool containsRelatedTarget(Event*); 100 bool containsRelatedTarget(Event*);
101 101
102 MediaControllerInterface* m_mediaController; 102 MediaControllerInterface* m_mediaController;
103 103
104 // Container for the media control elements. 104 // Container for the media control elements.
105 MediaControlPanelElement* m_panel; 105 MediaControlPanelElement* m_panel;
106 106
107 // Container for the text track cues. 107 // Container for the text track cues.
108 MediaControlTextTrackContainerElement* m_textDisplayContainer; 108 MediaControlTextTrackContainerElement* m_textDisplayContainer;
109 109
110 // Media control elements. 110 // Media control elements.
111 MediaControlPlayButtonElement* m_playButton; 111 MediaControlPlayButtonElement* m_playButton;
112 MediaControlCurrentTimeDisplayElement* m_currentTimeDisplay; 112 MediaControlCurrentTimeDisplayElement* m_currentTimeDisplay;
113 MediaControlTimelineElement* m_timeline; 113 MediaControlTimelineElement* m_timeline;
114 MediaControlPanelMuteButtonElement* m_panelMuteButton; 114 MediaControlPanelMuteButtonElement* m_panelMuteButton;
115 MediaControlPanelVolumeSliderElement* m_volumeSlider; 115 MediaControlPanelVolumeSliderElement* m_volumeSlider;
116 MediaControlToggleClosedCaptionsButtonElement* m_toggleClosedCaptionsButton; 116 MediaControlToggleClosedCaptionsButtonElement* m_toggleClosedCaptionsButton;
117 MediaControlFullscreenButtonElement* m_fullScreenButton; 117 MediaControlFullscreenButtonElement* m_fullScreenButton;
118 118
119 Timer<MediaControls> m_hideFullscreenControlsTimer; 119 Timer<MediaControls> m_hideFullscreenControlsTimer;
120 bool m_isFullscreen; 120 bool m_isFullscreen;
121 bool m_isMouseOverControls; 121 bool m_isMouseOverControls;
122 122
123 private: 123 private:
124 virtual bool isMediaControls() const { return true; } 124 virtual bool isMediaControls() const OVERRIDE FINAL { return true; }
125 125
126 virtual const AtomicString& shadowPseudoId() const; 126 virtual const AtomicString& shadowPseudoId() const OVERRIDE;
127 }; 127 };
128 128
129 DEFINE_NODE_TYPE_CASTS(MediaControls, isMediaControls()); 129 DEFINE_NODE_TYPE_CASTS(MediaControls, isMediaControls());
130 130
131 } 131 }
132 132
133 #endif 133 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.h ('k') | Source/core/html/shadow/MediaControlsChromiumAndroid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698