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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h

Issue 2700663002: Adds keyboard functionality for videos. (Closed)
Patch Set: Addresses mlamouri's #22, adds tests. Created 3 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
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void OnPlay(); 194 void OnPlay();
195 void OnPlaying(); 195 void OnPlaying();
196 void OnPause(); 196 void OnPause();
197 void OnTextTracksAddedOrRemoved(); 197 void OnTextTracksAddedOrRemoved();
198 void OnTextTracksChanged(); 198 void OnTextTracksChanged();
199 void OnError(); 199 void OnError();
200 void OnLoadedMetadata(); 200 void OnLoadedMetadata();
201 void OnEnteredFullscreen(); 201 void OnEnteredFullscreen();
202 void OnExitedFullscreen(); 202 void OnExitedFullscreen();
203 void OnPanelKeypress(); 203 void OnPanelKeypress();
204 void OnMediaKeyboardEvent(Event* event) { DefaultEventHandler(event); }
204 205
205 // Media control elements. 206 // Media control elements.
206 Member<MediaControlOverlayEnclosureElement> overlay_enclosure_; 207 Member<MediaControlOverlayEnclosureElement> overlay_enclosure_;
207 Member<MediaControlOverlayPlayButtonElement> overlay_play_button_; 208 Member<MediaControlOverlayPlayButtonElement> overlay_play_button_;
208 Member<MediaControlCastButtonElement> overlay_cast_button_; 209 Member<MediaControlCastButtonElement> overlay_cast_button_;
209 Member<MediaControlPanelEnclosureElement> enclosure_; 210 Member<MediaControlPanelEnclosureElement> enclosure_;
210 Member<MediaControlPanelElement> panel_; 211 Member<MediaControlPanelElement> panel_;
211 Member<MediaControlPlayButtonElement> play_button_; 212 Member<MediaControlPlayButtonElement> play_button_;
212 Member<MediaControlTimelineElement> timeline_; 213 Member<MediaControlTimelineElement> timeline_;
213 Member<MediaControlCurrentTimeDisplayElement> current_time_display_; 214 Member<MediaControlCurrentTimeDisplayElement> current_time_display_;
(...skipping 27 matching lines...) Expand all
241 IntSize size_; 242 IntSize size_;
242 243
243 bool keep_showing_until_timer_fires_ : 1; 244 bool keep_showing_until_timer_fires_ : 1;
244 }; 245 };
245 246
246 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); 247 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls());
247 248
248 } // namespace blink 249 } // namespace blink
249 250
250 #endif 251 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698