| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |