Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(533)

Side by Side Diff: Source/core/paint/ThemePainterMac.h

Issue 1102353008: Split ThemePainter out of LayoutTheme (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: themePainter() -> theme().painter() Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/ThemePainterDefault.cpp ('k') | Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 ThemePainterMac_h
25 #define ThemePainterMac_h
26
27 #import "core/paint/ThemePainter.h"
28
29 namespace blink {
30
31 class LayoutThemeMac;
32
33 class ThemePainterMac final : public ThemePainter {
34 public:
35 ThemePainterMac(LayoutThemeMac& layoutTheme) : m_layoutTheme(layoutTheme) { }
36
37 private:
38 virtual bool paintCapsLockIndicator(LayoutObject*, const PaintInfo&, const I ntRect&) override;
39 virtual bool paintMeter(LayoutObject*, const PaintInfo&, const IntRect&) ove rride;
40 virtual bool paintTextField(LayoutObject*, const PaintInfo&, const IntRect&) override;
41 virtual bool paintTextArea(LayoutObject*, const PaintInfo&, const IntRect&) override;
42 virtual bool paintMenuList(LayoutObject*, const PaintInfo&, const IntRect&) override;
43 virtual bool paintMenuListButton(LayoutObject*, const PaintInfo&, const IntR ect&) override;
44 virtual bool paintProgressBar(LayoutObject*, const PaintInfo&, const IntRect &) override;
45 virtual bool paintSliderTrack(LayoutObject*, const PaintInfo&, const IntRect &) override;
46 virtual bool paintSliderThumb(LayoutObject*, const PaintInfo&, const IntRect &) override;
47 virtual bool paintSearchField(LayoutObject*, const PaintInfo&, const IntRect &) override;
48 virtual bool paintSearchFieldCancelButton(LayoutObject*, const PaintInfo&, c onst IntRect&) override;
49 virtual bool paintSearchFieldDecoration(LayoutObject*, const PaintInfo&, con st IntRect&) override;
50 virtual bool paintSearchFieldResultsDecoration(LayoutObject*, const PaintInf o&, const IntRect&) override;
51 virtual bool paintMediaPlayButton(LayoutObject*, const PaintInfo&, const Int Rect&) override;
52 virtual bool paintMediaOverlayPlayButton(LayoutObject*, const PaintInfo&, co nst IntRect&) override;
53 virtual bool paintMediaMuteButton(LayoutObject*, const PaintInfo&, const Int Rect&) override;
54 virtual bool paintMediaSliderTrack(LayoutObject*, const PaintInfo&, const In tRect&) override;
55 virtual bool paintMediaSliderThumb(LayoutObject*, const PaintInfo&, const In tRect&) override;
56 virtual bool paintMediaVolumeSliderContainer(LayoutObject*, const PaintInfo& , const IntRect&) override;
57 virtual bool paintMediaVolumeSliderTrack(LayoutObject*, const PaintInfo&, co nst IntRect&) override;
58 virtual bool paintMediaVolumeSliderThumb(LayoutObject*, const PaintInfo&, co nst IntRect&) override;
59 virtual bool paintMediaFullscreenButton(LayoutObject*, const PaintInfo&, con st IntRect&) override;
60 virtual bool paintMediaToggleClosedCaptionsButton(LayoutObject*, const Paint Info&, const IntRect&) override;
61
62 LayoutThemeMac& m_layoutTheme;
63 };
64
65 } // namespace blink
66
67 #endif // ThemePainterMac_h
OLDNEW
« no previous file with comments | « Source/core/paint/ThemePainterDefault.cpp ('k') | Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698