2 * This file is part of the theme implementation for form controls in WebCore.
4 * Copyright (C) 2005 Apple Computer, Inc.
5 * Copyright (C) 2008, 2009 Google, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
17 * You should have received a copy of the GNU Library General Public License
18 * along with this library; see the file COPYING.LIB. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
24 #ifndef RenderThemeChromiumMac_h
25 #define RenderThemeChromiumMac_h
27 #import "RenderThemeChromiumCommon.h"
28 #import "RenderThemeMac.h"
32 class RenderThemeChromiumMac : public RenderThemeMac {
34 static PassRefPtr<RenderTheme> create();
36 virtual bool supportsDataListUI(const AtomicString& type) const OVERRIDE;
39 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&);
41 virtual void adjustMediaSliderThumbSize(RenderStyle*) const;
42 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const IntRect&);
43 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const IntRect&);
44 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const IntRect&);
45 virtual String extraMediaControlsStyleSheet();
46 #if ENABLE(FULLSCREEN_API)
47 virtual String extraFullScreenStyleSheet();
50 virtual bool paintMediaSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
51 virtual bool paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo&, const IntRect&);
52 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, const IntRect&);
53 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
54 virtual IntPoint volumeSliderOffsetFromMuteButton(RenderBox*, const IntSize&) const OVERRIDE;
55 virtual bool usesMediaControlStatusDisplay() { return false; }
56 virtual bool hasOwnDisabledStateHandlingFor(ControlPart) const { return true; }
57 virtual bool usesVerticalVolumeSlider() const { return false; }
58 virtual String formatMediaControlsTime(float time) const;
59 virtual String formatMediaControlsCurrentTime(float currentTime, float duration) const;
60 virtual String formatMediaControlsRemainingTime(float currentTime, float duration) const;
61 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, const IntRect&);
64 virtual bool usesTestModeFocusRingColor() const;
65 virtual NSView* documentViewFor(RenderObject*) const;
67 virtual int popupInternalPaddingLeft(RenderStyle*) const;
68 virtual int popupInternalPaddingRight(RenderStyle*) const;
71 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; }
72 virtual void updateActiveState(NSCell*, const RenderObject*);
73 virtual String extraDefaultStyleSheet();
74 #if ENABLE(CALENDAR_PICKER)
75 virtual CString extraCalendarPickerStyleSheet() OVERRIDE;
77 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE;
80 } // namespace WebCore
82 #endif // RenderThemeChromiumMac_h