| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 virtual bool willRespondToMouseMoveEvents() OVERRIDE { return true; } | 114 virtual bool willRespondToMouseMoveEvents() OVERRIDE { return true; } |
| 115 | 115 |
| 116 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | 116 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 explicit MediaControlPanelMuteButtonElement(Handle<Document>, MediaControls*
); | 119 explicit MediaControlPanelMuteButtonElement(Handle<Document>, MediaControls*
); |
| 120 | 120 |
| 121 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 121 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
| 122 virtual void defaultEventHandler(Event*) OVERRIDE; | 122 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 123 | 123 |
| 124 MediaControls* m_controls; | 124 Member<MediaControls> m_controls; |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 // ---------------------------- | 127 // ---------------------------- |
| 128 | 128 |
| 129 class MediaControlVolumeSliderMuteButtonElement : public MediaControlMuteButtonE
lement { | 129 class MediaControlVolumeSliderMuteButtonElement : public MediaControlMuteButtonE
lement { |
| 130 public: | 130 public: |
| 131 static Result<MediaControlVolumeSliderMuteButtonElement> create(Handle<Docum
ent>); | 131 static Result<MediaControlVolumeSliderMuteButtonElement> create(Handle<Docum
ent>); |
| 132 | 132 |
| 133 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | 133 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 134 | 134 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | 221 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 222 | 222 |
| 223 private: | 223 private: |
| 224 MediaControlClosedCaptionsTrackListElement(Handle<Document>, MediaControls*)
; | 224 MediaControlClosedCaptionsTrackListElement(Handle<Document>, MediaControls*)
; |
| 225 | 225 |
| 226 void rebuildTrackListMenu(); | 226 void rebuildTrackListMenu(); |
| 227 | 227 |
| 228 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 228 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
| 229 virtual void defaultEventHandler(Event*) OVERRIDE; | 229 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 230 | 230 |
| 231 typedef Vector<RefPtr<Element> > TrackMenuItems; | 231 typedef Vector<Member<Element> > TrackMenuItems; |
| 232 TrackMenuItems m_menuItems; | 232 TrackMenuItems m_menuItems; |
| 233 // FIXME(oilpan): Implement a weak HashMap. |
| 233 typedef HashMap<RefPtr<Element>, RefPtr<TextTrack> > MenuItemToTrackMap; | 234 typedef HashMap<RefPtr<Element>, RefPtr<TextTrack> > MenuItemToTrackMap; |
| 234 MenuItemToTrackMap m_menuToTrackMap; | 235 MenuItemToTrackMap m_menuToTrackMap; |
| 235 MediaControls* m_controls; | 236 Member<MediaControls> m_controls; |
| 236 bool m_trackListHasChanged; | 237 bool m_trackListHasChanged; |
| 237 }; | 238 }; |
| 238 | 239 |
| 239 // ---------------------------- | 240 // ---------------------------- |
| 240 | 241 |
| 241 class MediaControlTimelineElement : public MediaControlInputElement { | 242 class MediaControlTimelineElement : public MediaControlInputElement { |
| 242 public: | 243 public: |
| 243 static Result<MediaControlTimelineElement> create(Handle<Document>, MediaCon
trols*); | 244 static Result<MediaControlTimelineElement> create(Handle<Document>, MediaCon
trols*); |
| 244 | 245 |
| 245 virtual bool willRespondToMouseClickEvents() OVERRIDE; | 246 virtual bool willRespondToMouseClickEvents() OVERRIDE; |
| 246 | 247 |
| 247 void setPosition(double); | 248 void setPosition(double); |
| 248 void setDuration(double); | 249 void setDuration(double); |
| 249 | 250 |
| 250 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; | 251 virtual void acceptHeapVisitor(Visitor*) const OVERRIDE; |
| 251 | 252 |
| 252 private: | 253 private: |
| 253 explicit MediaControlTimelineElement(Handle<Document>, MediaControls*); | 254 explicit MediaControlTimelineElement(Handle<Document>, MediaControls*); |
| 254 | 255 |
| 255 virtual const AtomicString& shadowPseudoId() const OVERRIDE; | 256 virtual const AtomicString& shadowPseudoId() const OVERRIDE; |
| 256 virtual void defaultEventHandler(Event*) OVERRIDE; | 257 virtual void defaultEventHandler(Event*) OVERRIDE; |
| 257 | 258 |
| 258 MediaControls* m_controls; | 259 Member<MediaControls> m_controls; |
| 259 }; | 260 }; |
| 260 | 261 |
| 261 // ---------------------------- | 262 // ---------------------------- |
| 262 | 263 |
| 263 class MediaControlFullscreenButtonElement : public MediaControlInputElement { | 264 class MediaControlFullscreenButtonElement : public MediaControlInputElement { |
| 264 public: | 265 public: |
| 265 static Result<MediaControlFullscreenButtonElement> create(Handle<Document>); | 266 static Result<MediaControlFullscreenButtonElement> create(Handle<Document>); |
| 266 | 267 |
| 267 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } | 268 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } |
| 268 | 269 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 OwnPtr<TextTrackRepresentation> m_textTrackRepresentation; | 340 OwnPtr<TextTrackRepresentation> m_textTrackRepresentation; |
| 340 | 341 |
| 341 IntRect m_videoDisplaySize; | 342 IntRect m_videoDisplaySize; |
| 342 float m_fontSize; | 343 float m_fontSize; |
| 343 }; | 344 }; |
| 344 | 345 |
| 345 | 346 |
| 346 } // namespace WebCore | 347 } // namespace WebCore |
| 347 | 348 |
| 348 #endif // MediaControlElements_h | 349 #endif // MediaControlElements_h |
| OLD | NEW |