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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumDefault.h

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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 WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com
6 * Copyright (C) 2007 Holger Hans Peter Freyther 6 * Copyright (C) 2007 Holger Hans Peter Freyther
7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
8 * Copyright (C) 2008, 2009 Google, Inc. 8 * Copyright (C) 2008, 2009 Google, Inc.
9 * All rights reserved. 9 * All rights reserved.
10 * Copyright (C) 2009 Kenneth Rohde Christiansen 10 * Copyright (C) 2009 Kenneth Rohde Christiansen
(...skipping 18 matching lines...) Expand all
29 #ifndef RenderThemeChromiumDefault_h 29 #ifndef RenderThemeChromiumDefault_h
30 #define RenderThemeChromiumDefault_h 30 #define RenderThemeChromiumDefault_h
31 31
32 #include "core/rendering/RenderThemeChromiumSkia.h" 32 #include "core/rendering/RenderThemeChromiumSkia.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class RenderThemeChromiumDefault : public RenderThemeChromiumSkia { 36 class RenderThemeChromiumDefault : public RenderThemeChromiumSkia {
37 public: 37 public:
38 static PassRefPtr<RenderTheme> create(); 38 static PassRefPtr<RenderTheme> create();
39 virtual String extraDefaultStyleSheet() OVERRIDE; 39 virtual String extraDefaultStyleSheet() override;
40 40
41 virtual Color systemColor(CSSValueID) const OVERRIDE; 41 virtual Color systemColor(CSSValueID) const override;
42 42
43 virtual bool supportsFocusRing(const RenderStyle*) const OVERRIDE; 43 virtual bool supportsFocusRing(const RenderStyle*) const override;
44 44
45 // List Box selection color 45 // List Box selection color
46 virtual Color activeListBoxSelectionBackgroundColor() const; 46 virtual Color activeListBoxSelectionBackgroundColor() const;
47 virtual Color activeListBoxSelectionForegroundColor() const; 47 virtual Color activeListBoxSelectionForegroundColor() const;
48 virtual Color inactiveListBoxSelectionBackgroundColor() const; 48 virtual Color inactiveListBoxSelectionBackgroundColor() const;
49 virtual Color inactiveListBoxSelectionForegroundColor() const; 49 virtual Color inactiveListBoxSelectionForegroundColor() const;
50 50
51 virtual Color platformActiveSelectionBackgroundColor() const OVERRIDE; 51 virtual Color platformActiveSelectionBackgroundColor() const override;
52 virtual Color platformInactiveSelectionBackgroundColor() const OVERRIDE; 52 virtual Color platformInactiveSelectionBackgroundColor() const override;
53 virtual Color platformActiveSelectionForegroundColor() const OVERRIDE; 53 virtual Color platformActiveSelectionForegroundColor() const override;
54 virtual Color platformInactiveSelectionForegroundColor() const OVERRIDE; 54 virtual Color platformInactiveSelectionForegroundColor() const override;
55 55
56 virtual IntSize sliderTickSize() const OVERRIDE; 56 virtual IntSize sliderTickSize() const override;
57 virtual int sliderTickOffsetFromTrackCenter() const OVERRIDE; 57 virtual int sliderTickOffsetFromTrackCenter() const override;
58 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const OVERRIDE; 58 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const override;
59 59
60 static void setCaretBlinkInterval(double); 60 static void setCaretBlinkInterval(double);
61 virtual double caretBlinkIntervalInternal() const OVERRIDE; 61 virtual double caretBlinkIntervalInternal() const override;
62 62
63 virtual bool paintCheckbox(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE; 63 virtual bool paintCheckbox(RenderObject*, const PaintInfo&, const IntRect&) override;
64 virtual void setCheckboxSize(RenderStyle*) const OVERRIDE; 64 virtual void setCheckboxSize(RenderStyle*) const override;
65 65
66 virtual bool paintRadio(RenderObject*, const PaintInfo&, const IntRect&) OVE RRIDE; 66 virtual bool paintRadio(RenderObject*, const PaintInfo&, const IntRect&) ove rride;
67 virtual void setRadioSize(RenderStyle*) const OVERRIDE; 67 virtual void setRadioSize(RenderStyle*) const override;
68 68
69 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&) OV ERRIDE; 69 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&) ov erride;
70 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE; 70 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&) override;
71 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&) OVERRIDE; 71 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&) override;
72 virtual bool paintMenuListButton(RenderObject*, const PaintInfo&, const IntR ect&) OVERRIDE; 72 virtual bool paintMenuListButton(RenderObject*, const PaintInfo&, const IntR ect&) override;
73 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 73 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect &) override;
74 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 74 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect &) override;
75 75
76 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const OVERRI DE; 76 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const overri de;
77 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int Rect&) OVERRIDE; 77 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int Rect&) override;
78 78
79 virtual bool popsMenuBySpaceKey() const OVERRIDE FINAL { return true; } 79 virtual bool popsMenuBySpaceKey() const override final { return true; }
80 virtual bool popsMenuByReturnKey() const OVERRIDE FINAL { return true; } 80 virtual bool popsMenuByReturnKey() const override final { return true; }
81 virtual bool popsMenuByAltDownUpOrF4Key() const OVERRIDE { return true; } 81 virtual bool popsMenuByAltDownUpOrF4Key() const override { return true; }
82 82
83 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect &) OVERRIDE; 83 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect &) override;
84 84
85 virtual bool shouldOpenPickerWithF4Key() const OVERRIDE; 85 virtual bool shouldOpenPickerWithF4Key() const override;
86 86
87 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground Color); 87 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground Color);
88 88
89 protected: 89 protected:
90 RenderThemeChromiumDefault(); 90 RenderThemeChromiumDefault();
91 virtual ~RenderThemeChromiumDefault(); 91 virtual ~RenderThemeChromiumDefault();
92 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE; 92 virtual bool shouldUseFallbackTheme(RenderStyle*) const override;
93 93
94 private: 94 private:
95 static double m_caretBlinkInterval; 95 static double m_caretBlinkInterval;
96 96
97 static unsigned m_activeSelectionBackgroundColor; 97 static unsigned m_activeSelectionBackgroundColor;
98 static unsigned m_activeSelectionForegroundColor; 98 static unsigned m_activeSelectionForegroundColor;
99 static unsigned m_inactiveSelectionBackgroundColor; 99 static unsigned m_inactiveSelectionBackgroundColor;
100 static unsigned m_inactiveSelectionForegroundColor; 100 static unsigned m_inactiveSelectionForegroundColor;
101 }; 101 };
102 102
103 } // namespace blink 103 } // namespace blink
104 104
105 #endif // RenderThemeChromiumDefault_h 105 #endif // RenderThemeChromiumDefault_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderThemeChromiumAndroid.h ('k') | Source/core/rendering/RenderThemeChromiumMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698