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

Side by Side Diff: Source/core/layout/LayoutSlider.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/layout/LayoutSearchField.h ('k') | Source/core/layout/LayoutSliderContainer.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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 15 matching lines...) Expand all
26 namespace blink { 26 namespace blink {
27 27
28 class HTMLInputElement; 28 class HTMLInputElement;
29 class SliderThumbElement; 29 class SliderThumbElement;
30 30
31 class LayoutSlider final : public LayoutFlexibleBox { 31 class LayoutSlider final : public LayoutFlexibleBox {
32 public: 32 public:
33 static const int defaultTrackLength; 33 static const int defaultTrackLength;
34 34
35 explicit LayoutSlider(HTMLInputElement*); 35 explicit LayoutSlider(HTMLInputElement*);
36 virtual ~LayoutSlider(); 36 ~LayoutSlider() override;
37 37
38 bool inDragMode() const; 38 bool inDragMode() const;
39 39
40 virtual const char* name() const override { return "LayoutSlider"; } 40 const char* name() const override { return "LayoutSlider"; }
41 41
42 private: 42 private:
43 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectSlider || LayoutFlexibleBox::isOfType(type); } 43 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSlider || LayoutFlexibleBox::isOfType(type); }
44 44
45 virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode , LinePositionMode = PositionOnContainingLine) const override; 45 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override;
46 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const override; 46 void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const override;
47 virtual void layout() override; 47 void layout() override;
48 48
49 SliderThumbElement* sliderThumbElement() const; 49 SliderThumbElement* sliderThumbElement() const;
50 }; 50 };
51 51
52 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider()); 52 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSlider, isSlider());
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // LayoutSlider_h 56 #endif // LayoutSlider_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutSearchField.h ('k') | Source/core/layout/LayoutSliderContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698