Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(794)

Side by Side Diff: Source/core/html/shadow/MediaControlElements.h

Issue 20123003: [oilpan] The Node hierarchy should have correct accept method chains (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698