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

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

Issue 185363011: Merge/rename two MediaControlElements into their parent classes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: nit/oops Created 6 years, 9 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 | « no previous file | Source/core/html/shadow/MediaControlElementTypes.cpp » ('j') | 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) 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void setCurrentValue(double); 120 void setCurrentValue(double);
121 double currentValue() const { return m_currentValue; } 121 double currentValue() const { return m_currentValue; }
122 122
123 protected: 123 protected:
124 explicit MediaControlTimeDisplayElement(Document&, MediaControlElementType); 124 explicit MediaControlTimeDisplayElement(Document&, MediaControlElementType);
125 125
126 private: 126 private:
127 double m_currentValue; 127 double m_currentValue;
128 }; 128 };
129 129
130 // ----------------------------
131
132 class MediaControlMuteButtonElement : public MediaControlInputElement {
133 public:
134 void changedMute();
135
136 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; }
137
138 protected:
139 explicit MediaControlMuteButtonElement(Document&, MediaControlElementType);
140
141 virtual void defaultEventHandler(Event*) OVERRIDE;
142
143 private:
144 virtual void updateDisplayType() OVERRIDE;
145 };
146
147 // ----------------------------
148
149 class MediaControlVolumeSliderElement : public MediaControlInputElement {
150 public:
151 virtual bool willRespondToMouseMoveEvents() OVERRIDE;
152 virtual bool willRespondToMouseClickEvents() OVERRIDE;
153 void setVolume(double);
154
155 protected:
156 explicit MediaControlVolumeSliderElement(Document&);
157
158 virtual void defaultEventHandler(Event*) OVERRIDE;
159 };
160
161 } // namespace WebCore 130 } // namespace WebCore
162 131
163 #endif // MediaControlElementTypes_h 132 #endif // MediaControlElementTypes_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/shadow/MediaControlElementTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698