Home | History | Annotate | Download | only in rendering
      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 "RenderThemeMac.h"
     28 
     29 namespace WebCore {
     30 
     31 class RenderThemeChromiumMac : public RenderThemeMac {
     32 public:
     33     static PassRefPtr<RenderTheme> create();
     34 protected:
     35 #if ENABLE(VIDEO)
     36     virtual void adjustMediaSliderThumbSize(RenderObject*) 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();
     44 #endif
     45 
     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; }
     53 #endif
     54 
     55     virtual bool usesTestModeFocusRingColor() const;
     56     virtual NSView* documentViewFor(RenderObject*) const;
     57 private:
     58     virtual void updateActiveState(NSCell*, const RenderObject*);
     59 };
     60 
     61 } // namespace WebCore
     62 
     63 #endif // RenderThemeChromiumMac_h
     64