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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix tests build 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 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 16 matching lines...) Expand all
27 #ifndef MediaControlsChromium_h 27 #ifndef MediaControlsChromium_h
28 #define MediaControlsChromium_h 28 #define MediaControlsChromium_h
29 29
30 #include "core/html/shadow/MediaControls.h" 30 #include "core/html/shadow/MediaControls.h"
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 class MediaControlsChromium : public MediaControls { 34 class MediaControlsChromium : public MediaControls {
35 public: 35 public:
36 // Called from port-specific parent create function to create custom control s. 36 // Called from port-specific parent create function to create custom control s.
37 static PassRefPtr<MediaControlsChromium> createControls(Document*); 37 static PassRefPtr<MediaControlsChromium> createControls(Document&);
38 38
39 virtual void setMediaController(MediaControllerInterface*) OVERRIDE; 39 virtual void setMediaController(MediaControllerInterface*) OVERRIDE;
40 40
41 virtual void reset() OVERRIDE; 41 virtual void reset() OVERRIDE;
42 42
43 virtual void playbackStarted() OVERRIDE; 43 virtual void playbackStarted() OVERRIDE;
44 44
45 void changedMute() OVERRIDE; 45 void changedMute() OVERRIDE;
46 46
47 virtual void updateCurrentTimeDisplay() OVERRIDE; 47 virtual void updateCurrentTimeDisplay() OVERRIDE;
48 48
49 void createTextTrackDisplay() OVERRIDE; 49 void createTextTrackDisplay() OVERRIDE;
50 50
51 virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContai nerElement>); 51 virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContai nerElement>);
52 52
53 protected: 53 protected:
54 explicit MediaControlsChromium(Document*); 54 explicit MediaControlsChromium(Document&);
55 55
56 bool initializeControls(Document*); 56 bool initializeControls(Document&);
57 57
58 private: 58 private:
59 MediaControlTimeRemainingDisplayElement* m_durationDisplay; 59 MediaControlTimeRemainingDisplayElement* m_durationDisplay;
60 MediaControlPanelEnclosureElement* m_enclosure; 60 MediaControlPanelEnclosureElement* m_enclosure;
61 }; 61 };
62 62
63 } 63 }
64 64
65 #endif 65 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698