| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef MediaControlsChromiumAndroid_h | 26 #ifndef MediaControlsChromiumAndroid_h |
| 27 #define MediaControlsChromiumAndroid_h | 27 #define MediaControlsChromiumAndroid_h |
| 28 | 28 |
| 29 #include "core/html/shadow/MediaControls.h" | 29 #include "core/html/shadow/MediaControls.h" |
| 30 #include "core/html/shadow/MediaControlsChromium.h" | 30 #include "core/html/shadow/MediaControlsChromium.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 | 33 |
| 34 class MediaControlsChromiumAndroid : public MediaControlsChromium { | 34 class MediaControlsChromiumAndroid FINAL : public MediaControlsChromium { |
| 35 public: | 35 public: |
| 36 static PassRefPtr<MediaControlsChromiumAndroid> createControls(Document&); | 36 static PassRefPtr<MediaControlsChromiumAndroid> createControls(Document&); |
| 37 | 37 |
| 38 virtual void setMediaController(MediaControllerInterface*) OVERRIDE; | 38 virtual void setMediaController(MediaControllerInterface*) OVERRIDE; |
| 39 virtual void playbackStarted() OVERRIDE; | 39 virtual void playbackStarted() OVERRIDE; |
| 40 virtual void playbackStopped() OVERRIDE; | 40 virtual void playbackStopped() OVERRIDE; |
| 41 virtual bool shouldHideControls() OVERRIDE { return true; } | 41 virtual bool shouldHideControls() OVERRIDE { return true; } |
| 42 | 42 |
| 43 void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContainerEleme
nt>) OVERRIDE; | 43 virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContai
nerElement>) OVERRIDE; |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 explicit MediaControlsChromiumAndroid(Document&); | 46 explicit MediaControlsChromiumAndroid(Document&); |
| 47 | 47 |
| 48 MediaControlOverlayPlayButtonElement* m_overlayPlayButton; | 48 MediaControlOverlayPlayButtonElement* m_overlayPlayButton; |
| 49 MediaControlOverlayEnclosureElement* m_overlayEnclosure; | 49 MediaControlOverlayEnclosureElement* m_overlayEnclosure; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } | 52 } |
| 53 | 53 |
| 54 #endif | 54 #endif |
| OLD | NEW |