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

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

Issue 1747763002: Remove OSX-specific <meter> rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 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 Apple Computer, Inc. 4 * Copyright (C) 2005 Apple Computer, Inc.
5 * Copyright (C) 2008, 2009 Google, Inc. 5 * Copyright (C) 2008, 2009 Google, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 int sliderTickOffsetFromTrackCenter() const override; 67 int sliderTickOffsetFromTrackCenter() const override;
68 68
69 int popupInternalPaddingLeft(const ComputedStyle&) const override; 69 int popupInternalPaddingLeft(const ComputedStyle&) const override;
70 int popupInternalPaddingRight(const ComputedStyle&) const override; 70 int popupInternalPaddingRight(const ComputedStyle&) const override;
71 int popupInternalPaddingTop(const ComputedStyle&) const override; 71 int popupInternalPaddingTop(const ComputedStyle&) const override;
72 int popupInternalPaddingBottom(const ComputedStyle&) const override; 72 int popupInternalPaddingBottom(const ComputedStyle&) const override;
73 73
74 bool popsMenuByArrowKeys() const override { return true; } 74 bool popsMenuByArrowKeys() const override { return true; }
75 bool popsMenuBySpaceKey() const final { return true; } 75 bool popsMenuBySpaceKey() const final { return true; }
76 76
77 IntSize meterSizeForBounds(const LayoutMeter&, const IntRect&) const overrid e;
78 bool supportsMeter(ControlPart) const override;
79
80 // Returns the repeat interval of the animation for the progress bar. 77 // Returns the repeat interval of the animation for the progress bar.
81 double animationRepeatIntervalForProgressBar() const override; 78 double animationRepeatIntervalForProgressBar() const override;
82 // Returns the duration of the animation for the progress bar. 79 // Returns the duration of the animation for the progress bar.
83 double animationDurationForProgressBar() const override; 80 double animationDurationForProgressBar() const override;
84 81
85 Color systemColor(CSSValueID) const override; 82 Color systemColor(CSSValueID) const override;
86 83
87 bool supportsSelectionForegroundColors() const override { return false; } 84 bool supportsSelectionForegroundColors() const override { return false; }
88 85
89 virtual bool isModalColorChooser() const { return false; } 86 virtual bool isModalColorChooser() const { return false; }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const IntSize* searchFieldSizes() const; 124 const IntSize* searchFieldSizes() const;
128 const IntSize* cancelButtonSizes() const; 125 const IntSize* cancelButtonSizes() const;
129 const IntSize* resultsButtonSizes() const; 126 const IntSize* resultsButtonSizes() const;
130 void setSearchCellState(const LayoutObject&, const IntRect&); 127 void setSearchCellState(const LayoutObject&, const IntRect&);
131 void setSearchFieldSize(ComputedStyle&) const; 128 void setSearchFieldSize(ComputedStyle&) const;
132 129
133 NSPopUpButtonCell* popupButton() const; 130 NSPopUpButtonCell* popupButton() const;
134 NSSearchFieldCell* search() const; 131 NSSearchFieldCell* search() const;
135 NSTextFieldCell* textField() const; 132 NSTextFieldCell* textField() const;
136 133
137 NSLevelIndicatorStyle levelIndicatorStyleFor(ControlPart) const;
138 NSLevelIndicatorCell* levelIndicatorFor(const LayoutMeter&) const;
139
140 // A view associated to the contained document. Subclasses may not have such a view and return a fake. 134 // A view associated to the contained document. Subclasses may not have such a view and return a fake.
141 NSView* documentViewFor(const LayoutObject&) const; 135 NSView* documentViewFor(const LayoutObject&) const;
142 136
143 int minimumProgressBarHeight(const ComputedStyle&) const; 137 int minimumProgressBarHeight(const ComputedStyle&) const;
144 const IntSize* progressBarSizes() const; 138 const IntSize* progressBarSizes() const;
145 const int* progressBarMargins(NSControlSize) const; 139 const int* progressBarMargins(NSControlSize) const;
146 140
147 void updateActiveState(NSCell*, const LayoutObject&); 141 void updateActiveState(NSCell*, const LayoutObject&);
148 142
149 // We estimate the animation rate of a Mac OS X progress bar is 33 fps. 143 // We estimate the animation rate of a Mac OS X progress bar is 33 fps.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 mutable HashMap<int, RGBA32> m_systemColorCache; 184 mutable HashMap<int, RGBA32> m_systemColorCache;
191 185
192 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; 186 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver;
193 187
194 ThemePainterMac m_painter; 188 ThemePainterMac m_painter;
195 }; 189 };
196 190
197 } // namespace blink 191 } // namespace blink
198 192
199 #endif // LayoutThemeMac_h 193 #endif // LayoutThemeMac_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698