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

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

Issue 2463703003: blink: Cleanup core class forward declarations (Closed)
Patch Set: Remove redundant empty lines Created 4 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EllipsisBoxPainter_h 5 #ifndef EllipsisBoxPainter_h
6 #define EllipsisBoxPainter_h 6 #define EllipsisBoxPainter_h
7 7
8 #include "wtf/Allocator.h" 8 #include "wtf/Allocator.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 struct PaintInfo; 12 struct PaintInfo;
13 13
14 class EllipsisBox; 14 class EllipsisBox;
15 class FloatPoint;
16 class Font;
17 class GraphicsContext;
18 class LayoutPoint; 15 class LayoutPoint;
19 class LayoutUnit; 16 class LayoutUnit;
20 class ComputedStyle; 17 class ComputedStyle;
21 18
22 class EllipsisBoxPainter { 19 class EllipsisBoxPainter {
23 STACK_ALLOCATED(); 20 STACK_ALLOCATED();
24 21
25 public: 22 public:
26 EllipsisBoxPainter(const EllipsisBox& ellipsisBox) 23 EllipsisBoxPainter(const EllipsisBox& ellipsisBox)
27 : m_ellipsisBox(ellipsisBox) {} 24 : m_ellipsisBox(ellipsisBox) {}
28 25
29 void paint(const PaintInfo&, 26 void paint(const PaintInfo&,
30 const LayoutPoint&, 27 const LayoutPoint&,
31 LayoutUnit lineTop, 28 LayoutUnit lineTop,
32 LayoutUnit lineBottom); 29 LayoutUnit lineBottom);
33 30
34 private: 31 private:
35 void paintEllipsis(const PaintInfo&, 32 void paintEllipsis(const PaintInfo&,
36 const LayoutPoint& paintOffset, 33 const LayoutPoint& paintOffset,
37 LayoutUnit lineTop, 34 LayoutUnit lineTop,
38 LayoutUnit lineBottom, 35 LayoutUnit lineBottom,
39 const ComputedStyle&); 36 const ComputedStyle&);
40 37
41 const EllipsisBox& m_ellipsisBox; 38 const EllipsisBox& m_ellipsisBox;
42 }; 39 };
43 40
44 } // namespace blink 41 } // namespace blink
45 42
46 #endif // EllipsisBoxPainter_h 43 #endif // EllipsisBoxPainter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPainter.h ('k') | third_party/WebKit/Source/core/paint/EmbeddedObjectPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698