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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbarPart.h

Issue 2008343002: Move ScrollBehavior to ScrollTypes.h, so that ComputedStyle.h doesn't need to include ScrollableAre… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef LayoutScrollbarPart_h 26 #ifndef LayoutScrollbarPart_h
27 #define LayoutScrollbarPart_h 27 #define LayoutScrollbarPart_h
28 28
29 #include "core/layout/LayoutBlock.h" 29 #include "core/layout/LayoutBlock.h"
30 #include "platform/scroll/ScrollTypes.h" 30 #include "platform/scroll/ScrollTypes.h"
31 31
32 namespace blink { 32 namespace blink {
33 33
34 class LayoutScrollbar; 34 class LayoutScrollbar;
35 class ScrollableArea;
35 36
36 class LayoutScrollbarPart final : public LayoutBlock { 37 class LayoutScrollbarPart final : public LayoutBlock {
37 public: 38 public:
38 static LayoutScrollbarPart* createAnonymous(Document*, ScrollableArea*, 39 static LayoutScrollbarPart* createAnonymous(Document*, ScrollableArea*,
39 LayoutScrollbar* = nullptr, ScrollbarPart = NoPart); 40 LayoutScrollbar* = nullptr, ScrollbarPart = NoPart);
40 ~LayoutScrollbarPart() override; 41 ~LayoutScrollbarPart() override;
41 42
42 const char* name() const override { return "LayoutScrollbarPart"; } 43 const char* name() const override { return "LayoutScrollbarPart"; }
43 44
44 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; } 45 PaintLayerType layerTypeRequired() const override { return NoPaintLayer; }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 UntracedMember<ScrollableArea> m_scrollableArea; 117 UntracedMember<ScrollableArea> m_scrollableArea;
117 UntracedMember<LayoutScrollbar> m_scrollbar; 118 UntracedMember<LayoutScrollbar> m_scrollbar;
118 ScrollbarPart m_part; 119 ScrollbarPart m_part;
119 }; 120 };
120 121
121 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart()); 122 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutScrollbarPart, isLayoutScrollbarPart());
122 123
123 } // namespace blink 124 } // namespace blink
124 125
125 #endif // LayoutScrollbarPart_h 126 #endif // LayoutScrollbarPart_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698