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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class RenderBox; 43 class RenderBox;
44 class RenderMedia; 44 class RenderMedia;
45 45
46 // An abstract class with the media control elements that all ports support. 46 // An abstract class with the media control elements that all ports support.
47 class MediaControls : public HTMLDivElement { 47 class MediaControls : public HTMLDivElement {
48 public: 48 public:
49 virtual ~MediaControls() {} 49 virtual ~MediaControls() {}
50 50
51 // This function is to be implemented in your port-specific media 51 // This function is to be implemented in your port-specific media
52 // controls implementation since it will return a child instance. 52 // controls implementation since it will return a child instance.
53 static PassRefPtr<MediaControls> create(Document*); 53 static PassRefPtr<MediaControls> create(Document&);
54 54
55 virtual void setMediaController(MediaControllerInterface*); 55 virtual void setMediaController(MediaControllerInterface*);
56 56
57 virtual void reset(); 57 virtual void reset();
58 virtual void reportedError(); 58 virtual void reportedError();
59 virtual void loadedMetadata(); 59 virtual void loadedMetadata();
60 60
61 virtual void show(); 61 virtual void show();
62 virtual void hide(); 62 virtual void hide();
63 virtual void makeOpaque(); 63 virtual void makeOpaque();
(...skipping 24 matching lines...) Expand all
88 virtual void hideFullscreenControlsTimerFired(Timer<MediaControls>*); 88 virtual void hideFullscreenControlsTimerFired(Timer<MediaControls>*);
89 virtual void startHideFullscreenControlsTimer(); 89 virtual void startHideFullscreenControlsTimer();
90 virtual void stopHideFullscreenControlsTimer(); 90 virtual void stopHideFullscreenControlsTimer();
91 91
92 virtual void createTextTrackDisplay(); 92 virtual void createTextTrackDisplay();
93 virtual void showTextTrackDisplay(); 93 virtual void showTextTrackDisplay();
94 virtual void hideTextTrackDisplay(); 94 virtual void hideTextTrackDisplay();
95 virtual void updateTextTrackDisplay(); 95 virtual void updateTextTrackDisplay();
96 96
97 protected: 97 protected:
98 explicit MediaControls(Document*); 98 explicit MediaControls(Document&);
99 99
100 virtual void defaultEventHandler(Event*); 100 virtual void defaultEventHandler(Event*);
101 101
102 virtual bool containsRelatedTarget(Event*); 102 virtual bool containsRelatedTarget(Event*);
103 103
104 MediaControllerInterface* m_mediaController; 104 MediaControllerInterface* m_mediaController;
105 105
106 // Container for the media control elements. 106 // Container for the media control elements.
107 MediaControlPanelElement* m_panel; 107 MediaControlPanelElement* m_panel;
108 108
(...skipping 24 matching lines...) Expand all
133 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isMediaControls()); 133 ASSERT_WITH_SECURITY_IMPLICATION(!node || node->isMediaControls());
134 return static_cast<MediaControls*>(node); 134 return static_cast<MediaControls*>(node);
135 } 135 }
136 136
137 // This will catch anyone doing an unneccessary cast. 137 // This will catch anyone doing an unneccessary cast.
138 void toMediaControls(const MediaControls*); 138 void toMediaControls(const MediaControls*);
139 139
140 } 140 }
141 141
142 #endif 142 #endif
OLDNEW
« no previous file with comments | « Source/core/html/shadow/MediaControlElements.cpp ('k') | Source/core/html/shadow/MediaControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698