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

Unified Diff: Source/core/paint/MediaControlsPainter.h

Issue 1102353008: Split ThemePainter out of LayoutTheme (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: themePainter() -> theme().painter() Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/MediaControlsPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/MediaControlsPainter.h
diff --git a/Source/core/layout/LayoutMediaControls.h b/Source/core/paint/MediaControlsPainter.h
similarity index 84%
rename from Source/core/layout/LayoutMediaControls.h
rename to Source/core/paint/MediaControlsPainter.h
index b6091896cf4a480dea4ae483fdc82a5b610d8264..0f15ccf66a3e3d2446f14a817c1a54c197c4b0d2 100644
--- a/Source/core/layout/LayoutMediaControls.h
+++ b/Source/core/paint/MediaControlsPainter.h
@@ -25,26 +25,25 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef LayoutMediaControls_h
-#define LayoutMediaControls_h
+#ifndef MediaControlsPainter_h
+#define MediaControlsPainter_h
-#include "core/html/shadow/MediaControlElements.h"
+#include "core/html/shadow/MediaControlElementTypes.h"
namespace blink {
struct PaintInfo;
+class ComputedStyle;
class IntRect;
class LayoutObject;
-class LayoutMediaControls {
+class MediaControlsPainter {
public:
static bool paintMediaControlsPart(MediaControlElementType, LayoutObject*, const PaintInfo&, const IntRect&);
static void adjustMediaSliderThumbSize(ComputedStyle&);
- static String formatMediaControlsTime(float time);
- static String formatMediaControlsCurrentTime(float currentTime, float duration);
};
} // namespace blink
-#endif // LayoutMediaControls_h
+#endif // MediaControlsPainter_h
« no previous file with comments | « Source/core/paint/BoxPainter.cpp ('k') | Source/core/paint/MediaControlsPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698