| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 void mediaElementFocused(); | 76 void mediaElementFocused(); |
| 77 | 77 |
| 78 // Returns the layout object for the part of the controls that should be | 78 // Returns the layout object for the part of the controls that should be |
| 79 // used for overlap checking during text track layout. May be null. | 79 // used for overlap checking during text track layout. May be null. |
| 80 LayoutObject* layoutObjectForTextTrackLayout(); | 80 LayoutObject* layoutObjectForTextTrackLayout(); |
| 81 | 81 |
| 82 // Notify us that our controls enclosure has changed width. | 82 // Notify us that our controls enclosure has changed width. |
| 83 void notifyPanelWidthChanged(const LayoutUnit& newWidth); | 83 void notifyPanelWidthChanged(const LayoutUnit& newWidth); |
| 84 | 84 |
| 85 // Notify us that the media element's network state has changed. |
| 86 void networkStateChanged(); |
| 87 |
| 85 DECLARE_VIRTUAL_TRACE(); | 88 DECLARE_VIRTUAL_TRACE(); |
| 86 | 89 |
| 87 private: | 90 private: |
| 91 void invalidate(Element*); |
| 92 |
| 88 class BatchedControlUpdate; | 93 class BatchedControlUpdate; |
| 89 | 94 |
| 90 explicit MediaControls(HTMLMediaElement&); | 95 explicit MediaControls(HTMLMediaElement&); |
| 91 | 96 |
| 92 void initializeControls(); | 97 void initializeControls(); |
| 93 | 98 |
| 94 void makeOpaque(); | 99 void makeOpaque(); |
| 95 void makeTransparent(); | 100 void makeTransparent(); |
| 96 | 101 |
| 97 void updatePlayState(); | 102 void updatePlayState(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int m_panelWidth; | 153 int m_panelWidth; |
| 149 | 154 |
| 150 bool m_allowHiddenVolumeControls : 1; | 155 bool m_allowHiddenVolumeControls : 1; |
| 151 }; | 156 }; |
| 152 | 157 |
| 153 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); | 158 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); |
| 154 | 159 |
| 155 } | 160 } |
| 156 | 161 |
| 157 #endif | 162 #endif |
| OLD | NEW |