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

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

Issue 141323005: Make MediaControls minimally virtual (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class RenderMedia; 42 class RenderMedia;
43 43
44 class MediaControls : public HTMLDivElement { 44 class MediaControls : public HTMLDivElement {
45 public: 45 public:
46 virtual ~MediaControls() {} 46 virtual ~MediaControls() {}
47 47
48 static PassRefPtr<MediaControls> create(Document&); 48 static PassRefPtr<MediaControls> create(Document&);
49 49
50 virtual void setMediaController(MediaControllerInterface*); 50 virtual void setMediaController(MediaControllerInterface*);
51 51
52 virtual void reset(); 52 void reset();
53 53
54 virtual void show(); 54 void show();
55 virtual void hide(); 55 void hide();
56 virtual void makeOpaque(); 56 void makeOpaque();
57 virtual void makeTransparent(); 57 void makeTransparent();
58 virtual bool shouldHideControls(); 58 virtual bool shouldHideControls();
59 59
60 virtual void bufferingProgressed(); 60 void bufferingProgressed();
61 virtual void playbackStarted(); 61 virtual void playbackStarted();
62 virtual void playbackProgressed(); 62 void playbackProgressed();
63 virtual void playbackStopped(); 63 virtual void playbackStopped();
64 64
65 virtual void updateStatusDisplay() { }; 65 void updateCurrentTimeDisplay();
66 virtual void updateCurrentTimeDisplay(); 66 void showVolumeSlider();
67 virtual void showVolumeSlider();
68 67
69 virtual void changedMute(); 68 void changedMute();
70 virtual void changedVolume(); 69 void changedVolume();
71 70
72 virtual void changedClosedCaptionsVisibility(); 71 void changedClosedCaptionsVisibility();
73 virtual void refreshClosedCaptionsButtonVisibility(); 72 void refreshClosedCaptionsButtonVisibility();
74 virtual void closedCaptionTracksChanged(); 73 void closedCaptionTracksChanged();
75 74
76 virtual void enteredFullscreen(); 75 void enteredFullscreen();
77 virtual void exitedFullscreen(); 76 void exitedFullscreen();
78 77
79 virtual bool willRespondToMouseMoveEvents() OVERRIDE { return true; } 78 virtual bool willRespondToMouseMoveEvents() OVERRIDE { return true; }
80 79
81 virtual void hideFullscreenControlsTimerFired(Timer<MediaControls>*); 80 void hideFullscreenControlsTimerFired(Timer<MediaControls>*);
82 virtual void startHideFullscreenControlsTimer(); 81 void startHideFullscreenControlsTimer();
83 virtual void stopHideFullscreenControlsTimer(); 82 void stopHideFullscreenControlsTimer();
84 83
85 virtual void createTextTrackDisplay(); 84 void createTextTrackDisplay();
86 virtual void showTextTrackDisplay(); 85 void showTextTrackDisplay();
87 virtual void hideTextTrackDisplay(); 86 void hideTextTrackDisplay();
88 virtual void updateTextTrackDisplay(); 87 void updateTextTrackDisplay();
89 virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContai nerElement>); 88 virtual void insertTextTrackContainer(PassRefPtr<MediaControlTextTrackContai nerElement>);
90 89
91 protected: 90 protected:
92 explicit MediaControls(Document&); 91 explicit MediaControls(Document&);
93 92
94 virtual bool initializeControls(Document&); 93 virtual bool initializeControls(Document&);
95 94
96 virtual void defaultEventHandler(Event*) OVERRIDE; 95 virtual void defaultEventHandler(Event*) OVERRIDE;
97 96
98 bool containsRelatedTarget(Event*); 97 bool containsRelatedTarget(Event*);
(...skipping 26 matching lines...) Expand all
125 124
126 MediaControlTimeRemainingDisplayElement* m_durationDisplay; 125 MediaControlTimeRemainingDisplayElement* m_durationDisplay;
127 MediaControlPanelEnclosureElement* m_enclosure; 126 MediaControlPanelEnclosureElement* m_enclosure;
128 }; 127 };
129 128
130 DEFINE_NODE_TYPE_CASTS(MediaControls, isMediaControls()); 129 DEFINE_NODE_TYPE_CASTS(MediaControls, isMediaControls());
131 130
132 } 131 }
133 132
134 #endif 133 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698