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 bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, const IntRect&);
46 virtual String extraMediaControlsStyleSheet();
47 #if ENABLE(FULLSCREEN_API)
48 virtual String extraFullScreenStyleSheet();
51 virtual bool paintMediaSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
52 virtual bool paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo&, const IntRect&);
53 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, const IntRect&);
54 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
55 virtual IntPoint volumeSliderOffsetFromMuteButton(RenderBox*, const IntSize&) const OVERRIDE;
56 virtual bool usesMediaControlStatusDisplay() { return false; }
57 virtual bool hasOwnDisabledStateHandlingFor(ControlPart) const { return true; }
60 virtual bool usesTestModeFocusRingColor() const;
61 virtual NSView* documentViewFor(RenderObject*) const;
63 virtual int popupInternalPaddingLeft(RenderStyle*) const;
64 virtual int popupInternalPaddingRight(RenderStyle*) const;
67 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; }
68 virtual void updateActiveState(NSCell*, const RenderObject*);
69 virtual String extraDefaultStyleSheet();
70 #if ENABLE(CALENDAR_PICKER)
71 virtual CString extraCalendarPickerStyleSheet() OVERRIDE;
73 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE;
76 } // namespace WebCore
78 #endif // RenderThemeChromiumMac_h