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

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

Issue 2309593002: Factor code from ThemeMac into ThemeMacPainter. (Closed)
Patch Set: none Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * This file is part of the theme implementation for form controls in WebCore. 2 * This file is part of the theme implementation for form controls in WebCore.
3 * 3 *
4 * Copyright (C) 2005 Apple Computer, Inc. 4 * Copyright (C) 2005 Apple Computer, Inc.
5 * Copyright (C) 2008, 2009 Google, Inc. 5 * Copyright (C) 2008, 2009 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 14 matching lines...) Expand all
25 #define ThemePainterMac_h 25 #define ThemePainterMac_h
26 26
27 #import "core/paint/ThemePainter.h" 27 #import "core/paint/ThemePainter.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class LayoutThemeMac; 31 class LayoutThemeMac;
32 32
33 class ThemePainterMac final : public ThemePainter { 33 class ThemePainterMac final : public ThemePainter {
34 public: 34 public:
35 ThemePainterMac(LayoutThemeMac&, Theme*); 35 ThemePainterMac(LayoutThemeMac&);
36 36
37 private: 37 private:
38 bool paintButton(const LayoutObject&, const PaintInfo&, const IntRect&) over ride;
39 bool paintCheckbox(const LayoutObject&, const PaintInfo&, const IntRect&) ov erride;
38 bool paintCapsLockIndicator(const LayoutObject&, const PaintInfo&, const Int Rect&) override; 40 bool paintCapsLockIndicator(const LayoutObject&, const PaintInfo&, const Int Rect&) override;
39 bool paintTextField(const LayoutObject&, const PaintInfo&, const IntRect&) o verride; 41 bool paintInnerSpinButton(const LayoutObject&, const PaintInfo&, const IntRe ct&) override;
40 bool paintTextArea(const LayoutObject&, const PaintInfo&, const IntRect&) ov erride;
41 bool paintMenuList(const LayoutObject&, const PaintInfo&, const IntRect&) ov erride; 42 bool paintMenuList(const LayoutObject&, const PaintInfo&, const IntRect&) ov erride;
42 bool paintMenuListButton(const LayoutObject&, const PaintInfo&, const IntRec t&) override; 43 bool paintMenuListButton(const LayoutObject&, const PaintInfo&, const IntRec t&) override;
43 bool paintProgressBar(const LayoutObject&, const PaintInfo&, const IntRect&) override; 44 bool paintProgressBar(const LayoutObject&, const PaintInfo&, const IntRect&) override;
45 bool paintRadio(const LayoutObject&, const PaintInfo&, const IntRect&) overr ide;
46 bool paintSliderThumb(const LayoutObject&, const PaintInfo&, const IntRect&) override;
44 bool paintSliderTrack(const LayoutObject&, const PaintInfo&, const IntRect&) override; 47 bool paintSliderTrack(const LayoutObject&, const PaintInfo&, const IntRect&) override;
45 bool paintSliderThumb(const LayoutObject&, const PaintInfo&, const IntRect&) override;
46 bool paintSearchField(const LayoutObject&, const PaintInfo&, const IntRect&) override; 48 bool paintSearchField(const LayoutObject&, const PaintInfo&, const IntRect&) override;
47 bool paintSearchFieldCancelButton(const LayoutObject&, const PaintInfo&, con st IntRect&) override; 49 bool paintSearchFieldCancelButton(const LayoutObject&, const PaintInfo&, con st IntRect&) override;
50 bool paintTextArea(const LayoutObject&, const PaintInfo&, const IntRect&) ov erride;
51 bool paintTextField(const LayoutObject&, const PaintInfo&, const IntRect&) o verride;
48 52
49 LayoutThemeMac& m_layoutTheme; 53 LayoutThemeMac& m_layoutTheme;
50 }; 54 };
51 55
52 } // namespace blink 56 } // namespace blink
53 57
54 #endif // ThemePainterMac_h 58 #endif // ThemePainterMac_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterDefault.cpp ('k') | third_party/WebKit/Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698