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

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

Issue 14866009: Enable proper zooming of checkbox and radio button on Win and Mac. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/rendering/RenderTheme.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('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 * 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 virtual String formatMediaControlsTime(float time) const; 195 virtual String formatMediaControlsTime(float time) const;
196 virtual String formatMediaControlsCurrentTime(float currentTime, float durat ion) const; 196 virtual String formatMediaControlsCurrentTime(float currentTime, float durat ion) const;
197 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, con st IntRect&); 197 virtual bool paintMediaFullscreenButton(RenderObject*, const PaintInfo&, con st IntRect&);
198 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint Info&, const IntRect&); 198 virtual bool paintMediaToggleClosedCaptionsButton(RenderObject*, const Paint Info&, const IntRect&);
199 199
200 // Controls color values returned from platformFocusRingColor(). systemColor () will be used when false. 200 // Controls color values returned from platformFocusRingColor(). systemColor () will be used when false.
201 bool usesTestModeFocusRingColor() const; 201 bool usesTestModeFocusRingColor() const;
202 // A view associated to the contained document. Subclasses may not have such a view and return a fake. 202 // A view associated to the contained document. Subclasses may not have such a view and return a fake.
203 NSView* documentViewFor(RenderObject*) const; 203 NSView* documentViewFor(RenderObject*) const;
204 204
205 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE;
206
205 private: 207 private:
206 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; } 208 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; }
207 virtual void updateActiveState(NSCell*, const RenderObject*); 209 virtual void updateActiveState(NSCell*, const RenderObject*);
208 virtual String extraDefaultStyleSheet(); 210 virtual String extraDefaultStyleSheet();
209 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE; 211 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE;
210 212
211 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; 213 mutable RetainPtr<NSPopUpButtonCell> m_popupButton;
212 mutable RetainPtr<NSSearchFieldCell> m_search; 214 mutable RetainPtr<NSSearchFieldCell> m_search;
213 mutable RetainPtr<NSMenu> m_searchMenuTemplate; 215 mutable RetainPtr<NSMenu> m_searchMenuTemplate;
214 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal; 216 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal;
215 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical; 217 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical;
216 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; 218 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator;
217 mutable RetainPtr<NSTextFieldCell> m_textField; 219 mutable RetainPtr<NSTextFieldCell> m_textField;
218 220
219 bool m_isSliderThumbHorizontalPressed; 221 bool m_isSliderThumbHorizontalPressed;
220 bool m_isSliderThumbVerticalPressed; 222 bool m_isSliderThumbVerticalPressed;
221 223
222 mutable HashMap<int, RGBA32> m_systemColorCache; 224 mutable HashMap<int, RGBA32> m_systemColorCache;
223 225
224 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; 226 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver;
225 }; 227 };
226 228
227 } // namespace WebCore 229 } // namespace WebCore
228 230
229 #endif // RenderThemeChromiumMac_h 231 #endif // RenderThemeChromiumMac_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698