Fix the issue that Web Audio test case fails on PR3.
[framework/web/webkit-efl.git] / Source / WebCore / rendering / RenderThemeChromiumMac.h
1 /*
2  * This file is part of the theme implementation for form controls in WebCore.
3  *
4  * Copyright (C) 2005 Apple Computer, Inc.
5  * Copyright (C) 2008, 2009 Google, Inc.
6  *
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.
11  *
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.
16  *
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.
21  *
22  */
23
24 #ifndef RenderThemeChromiumMac_h
25 #define RenderThemeChromiumMac_h
26
27 #import "RenderThemeChromiumCommon.h"
28 #import "RenderThemeMac.h"
29
30 namespace WebCore {
31
32 class RenderThemeChromiumMac : public RenderThemeMac {
33 public:
34     static PassRefPtr<RenderTheme> create();
35
36     virtual bool supportsDataListUI(const AtomicString& type) const OVERRIDE;
37
38 protected:
39     virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&);
40 #if ENABLE(VIDEO)
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();
48 #endif
49   
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&);
62 #endif
63
64     virtual bool usesTestModeFocusRingColor() const;
65     virtual NSView* documentViewFor(RenderObject*) const;
66
67     virtual int popupInternalPaddingLeft(RenderStyle*) const;
68     virtual int popupInternalPaddingRight(RenderStyle*) const;
69
70 private:
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;
76 #endif
77     virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE;
78 };
79
80 } // namespace WebCore
81
82 #endif // RenderThemeChromiumMac_h