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 "RenderThemeMac.h"
31 class RenderThemeChromiumMac : public RenderThemeMac {
33 static PassRefPtr<RenderTheme> create();
36 virtual void adjustMediaSliderThumbSize(RenderStyle*) const;
37 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const IntRect&);
38 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const IntRect&);
39 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const IntRect&);
40 virtual bool paintMediaControlsBackground(RenderObject*, const PaintInfo&, const IntRect&);
41 virtual String extraMediaControlsStyleSheet();
42 #if ENABLE(FULLSCREEN_API)
43 virtual String extraFullScreenStyleSheet();
46 virtual bool paintMediaSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
47 virtual bool paintMediaVolumeSliderContainer(RenderObject*, const PaintInfo&, const IntRect&);
48 virtual bool paintMediaVolumeSliderTrack(RenderObject*, const PaintInfo&, const IntRect&);
49 virtual bool paintMediaVolumeSliderThumb(RenderObject*, const PaintInfo&, const IntRect&);
50 virtual IntPoint volumeSliderOffsetFromMuteButton(RenderBox*, const IntSize&) const;
51 virtual bool usesMediaControlStatusDisplay() { return false; }
52 virtual bool hasOwnDisabledStateHandlingFor(ControlPart) const { return true; }
55 virtual bool usesTestModeFocusRingColor() const;
56 virtual NSView* documentViewFor(RenderObject*) const;
58 virtual int popupInternalPaddingLeft(RenderStyle*) const;
59 virtual int popupInternalPaddingRight(RenderStyle*) const;
61 virtual void updateActiveState(NSCell*, const RenderObject*);
62 virtual String extraDefaultStyleSheet();
65 } // namespace WebCore
67 #endif // RenderThemeChromiumMac_h