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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 16 matching lines...) Expand all
27 #include "wtf/Allocator.h" 27 #include "wtf/Allocator.h"
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class IntRect; 31 class IntRect;
32 class LayoutObject; 32 class LayoutObject;
33 33
34 struct PaintInfo; 34 struct PaintInfo;
35 35
36 class ThemePainter { 36 class ThemePainter {
37 DISALLOW_ALLOCATION(); 37 DISALLOW_NEW();
38 public: 38 public:
39 // This method is called to paint the widget as a background of the LayoutOb ject. A widget's foreground, e.g., the 39 // This method is called to paint the widget as a background of the LayoutOb ject. A widget's foreground, e.g., the
40 // text of a button, is always rendered by the engine itself. The boolean r eturn value indicates 40 // text of a button, is always rendered by the engine itself. The boolean r eturn value indicates
41 // whether the CSS border/background should also be painted. 41 // whether the CSS border/background should also be painted.
42 bool paint(const LayoutObject&, const PaintInfo&, const IntRect&); 42 bool paint(const LayoutObject&, const PaintInfo&, const IntRect&);
43 bool paintBorderOnly(const LayoutObject&, const PaintInfo&, const IntRect&); 43 bool paintBorderOnly(const LayoutObject&, const PaintInfo&, const IntRect&);
44 bool paintDecorations(const LayoutObject&, const PaintInfo&, const IntRect&) ; 44 bool paintDecorations(const LayoutObject&, const PaintInfo&, const IntRect&) ;
45 45
46 virtual bool paintCapsLockIndicator(const LayoutObject&, const PaintInfo&, c onst IntRect&) { return 0; } 46 virtual bool paintCapsLockIndicator(const LayoutObject&, const PaintInfo&, c onst IntRect&) { return 0; }
47 void paintSliderTicks(const LayoutObject&, const PaintInfo&, const IntRect&) ; 47 void paintSliderTicks(const LayoutObject&, const PaintInfo&, const IntRect&) ;
(...skipping 20 matching lines...) Expand all
68 virtual bool paintSearchFieldResultsDecoration(const LayoutObject&, const Pa intInfo&, const IntRect&) { return true; } 68 virtual bool paintSearchFieldResultsDecoration(const LayoutObject&, const Pa intInfo&, const IntRect&) { return true; }
69 69
70 bool paintUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const In tRect&); 70 bool paintUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const In tRect&);
71 bool paintCheckboxUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const IntRect&); 71 bool paintCheckboxUsingFallbackTheme(const LayoutObject&, const PaintInfo&, const IntRect&);
72 bool paintRadioUsingFallbackTheme(const LayoutObject&, const PaintInfo&, con st IntRect&); 72 bool paintRadioUsingFallbackTheme(const LayoutObject&, const PaintInfo&, con st IntRect&);
73 }; 73 };
74 74
75 } // namespace blink 75 } // namespace blink
76 76
77 #endif // ThemePainter_h 77 #endif // ThemePainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScopeRecorder.h ('k') | third_party/WebKit/Source/core/style/AppliedTextDecoration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698