| OLD | NEW |
| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 void changedClosedCaptionsVisibility(); | 60 void changedClosedCaptionsVisibility(); |
| 61 void refreshClosedCaptionsButtonVisibility(); | 61 void refreshClosedCaptionsButtonVisibility(); |
| 62 void closedCaptionTracksChanged(); | 62 void closedCaptionTracksChanged(); |
| 63 | 63 |
| 64 void enteredFullscreen(); | 64 void enteredFullscreen(); |
| 65 void exitedFullscreen(); | 65 void exitedFullscreen(); |
| 66 | 66 |
| 67 void updateTextTrackDisplay(); | 67 void updateTextTrackDisplay(); |
| 68 | 68 |
| 69 void mediaElementFocused(); |
| 70 |
| 69 private: | 71 private: |
| 70 explicit MediaControls(HTMLMediaElement&); | 72 explicit MediaControls(HTMLMediaElement&); |
| 71 | 73 |
| 72 bool initializeControls(); | 74 bool initializeControls(); |
| 73 | 75 |
| 74 void makeOpaque(); | 76 void makeOpaque(); |
| 75 void makeTransparent(); | 77 void makeTransparent(); |
| 76 | 78 |
| 77 void updatePlayState(); | 79 void updatePlayState(); |
| 78 | 80 |
| 79 bool shouldHideMediaControls(); | 81 bool shouldHideMediaControls(); |
| 82 bool shouldShowMediaControls() const; |
| 80 void hideMediaControlsTimerFired(Timer<MediaControls>*); | 83 void hideMediaControlsTimerFired(Timer<MediaControls>*); |
| 81 void startHideMediaControlsTimer(); | 84 void startHideMediaControlsTimer(); |
| 82 void stopHideMediaControlsTimer(); | 85 void stopHideMediaControlsTimer(); |
| 83 | 86 |
| 84 void createTextTrackDisplay(); | 87 void createTextTrackDisplay(); |
| 85 void showTextTrackDisplay(); | 88 void showTextTrackDisplay(); |
| 86 void hideTextTrackDisplay(); | 89 void hideTextTrackDisplay(); |
| 87 | 90 |
| 88 // Node | 91 // Node |
| 89 virtual bool isMediaControls() const OVERRIDE { return true; } | 92 virtual bool isMediaControls() const OVERRIDE { return true; } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 118 Timer<MediaControls> m_hideMediaControlsTimer; | 121 Timer<MediaControls> m_hideMediaControlsTimer; |
| 119 bool m_isMouseOverControls : 1; | 122 bool m_isMouseOverControls : 1; |
| 120 bool m_isPausedForScrubbing : 1; | 123 bool m_isPausedForScrubbing : 1; |
| 121 }; | 124 }; |
| 122 | 125 |
| 123 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 126 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 124 | 127 |
| 125 } | 128 } |
| 126 | 129 |
| 127 #endif | 130 #endif |
| OLD | NEW |