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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutTheme.h

Issue 1747763002: Remove OSX-specific <meter> rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 19 matching lines...) Expand all
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 #include "wtf/text/WTFString.h" 32 #include "wtf/text/WTFString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class ComputedStyle; 36 class ComputedStyle;
37 class Element; 37 class Element;
38 class FileList; 38 class FileList;
39 class HTMLInputElement; 39 class HTMLInputElement;
40 class LayoutMeter;
41 class Theme; 40 class Theme;
42 class ThemePainter; 41 class ThemePainter;
43 42
44 class CORE_EXPORT LayoutTheme : public RefCounted<LayoutTheme> { 43 class CORE_EXPORT LayoutTheme : public RefCounted<LayoutTheme> {
45 protected: 44 protected:
46 explicit LayoutTheme(Theme*); 45 explicit LayoutTheme(Theme*);
47 46
48 public: 47 public:
49 virtual ~LayoutTheme() { } 48 virtual ~LayoutTheme() { }
50 49
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 150
152 // Returns the repeat interval of the animation for the progress bar. 151 // Returns the repeat interval of the animation for the progress bar.
153 virtual double animationRepeatIntervalForProgressBar() const; 152 virtual double animationRepeatIntervalForProgressBar() const;
154 // Returns the duration of the animation for the progress bar. 153 // Returns the duration of the animation for the progress bar.
155 virtual double animationDurationForProgressBar() const; 154 virtual double animationDurationForProgressBar() const;
156 155
157 // Media controls 156 // Media controls
158 String formatMediaControlsTime(float time) const; 157 String formatMediaControlsTime(float time) const;
159 String formatMediaControlsCurrentTime(float currentTime, float duration) con st; 158 String formatMediaControlsCurrentTime(float currentTime, float duration) con st;
160 159
161 virtual IntSize meterSizeForBounds(const LayoutMeter&, const IntRect&) const ;
162 virtual bool supportsMeter(ControlPart) const;
163
164 // Returns size of one slider tick mark for a horizontal track. 160 // Returns size of one slider tick mark for a horizontal track.
165 // For vertical tracks we rotate it and use it. i.e. Width is always length along the track. 161 // For vertical tracks we rotate it and use it. i.e. Width is always length along the track.
166 virtual IntSize sliderTickSize() const = 0; 162 virtual IntSize sliderTickSize() const = 0;
167 // Returns the distance of slider tick origin from the slider track center. 163 // Returns the distance of slider tick origin from the slider track center.
168 virtual int sliderTickOffsetFromTrackCenter() const = 0; 164 virtual int sliderTickOffsetFromTrackCenter() const = 0;
169 165
170 virtual bool shouldHaveSpinButton(HTMLInputElement*) const; 166 virtual bool shouldHaveSpinButton(HTMLInputElement*) const;
171 167
172 // Functions for <select> elements. 168 // Functions for <select> elements.
173 virtual bool delegatesMenuListRendering() const { return false; } 169 virtual bool delegatesMenuListRendering() const { return false; }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 static const RGBA32 defaultTapHighlightColor = 0x66000000; 246 static const RGBA32 defaultTapHighlightColor = 0x66000000;
251 247
252 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; 248 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55;
253 249
254 Theme* m_platformTheme; // The platform-specific theme. 250 Theme* m_platformTheme; // The platform-specific theme.
255 }; 251 };
256 252
257 } // namespace blink 253 } // namespace blink
258 254
259 #endif // LayoutTheme_h 255 #endif // LayoutTheme_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutMeter.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698