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

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

Issue 2700663002: Adds keyboard functionality for videos. (Closed)
Patch Set: Merge branch 'real_master' into keypress 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) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 25 matching lines...) Expand all
36 36
37 class CORE_EXPORT MediaControlVolumeSliderElement final 37 class CORE_EXPORT MediaControlVolumeSliderElement final
38 : public MediaControlInputElement { 38 : public MediaControlInputElement {
39 public: 39 public:
40 static MediaControlVolumeSliderElement* Create(MediaControls&); 40 static MediaControlVolumeSliderElement* Create(MediaControls&);
41 41
42 bool WillRespondToMouseMoveEvents() override; 42 bool WillRespondToMouseMoveEvents() override;
43 bool WillRespondToMouseClickEvents() override; 43 bool WillRespondToMouseClickEvents() override;
44 void SetVolume(double); 44 void SetVolume(double);
45 45
46 void OnMediaKeyboardEvent(Event* event) { DefaultEventHandler(event); }
47
46 private: 48 private:
47 explicit MediaControlVolumeSliderElement(MediaControls&); 49 explicit MediaControlVolumeSliderElement(MediaControls&);
48 50
49 void DefaultEventHandler(Event*) override; 51 void DefaultEventHandler(Event*) override;
50 bool KeepEventInNode(Event*) override; 52 bool KeepEventInNode(Event*) override;
51 }; 53 };
52 54
53 } // namespace blink 55 } // namespace blink
54 56
55 #endif // MediaControlElements_h 57 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698