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

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

Issue 2005093002: Remove non-standard 'results' attribute of INPUT element. (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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual bool isModalColorChooser() const { return false; } 86 virtual bool isModalColorChooser() const { return false; }
87 87
88 protected: 88 protected:
89 LayoutThemeMac(); 89 LayoutThemeMac();
90 ~LayoutThemeMac() override; 90 ~LayoutThemeMac() override;
91 91
92 void adjustMenuListStyle(ComputedStyle&, Element*) const override; 92 void adjustMenuListStyle(ComputedStyle&, Element*) const override;
93 void adjustMenuListButtonStyle(ComputedStyle&, Element*) const override; 93 void adjustMenuListButtonStyle(ComputedStyle&, Element*) const override;
94 void adjustSearchFieldStyle(ComputedStyle&) const override; 94 void adjustSearchFieldStyle(ComputedStyle&) const override;
95 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override; 95 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override;
96 void adjustSearchFieldDecorationStyle(ComputedStyle&) const override;
97 void adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const override;
98 96
99 public: 97 public:
100 // Constants and methods shared with ThemePainterMac 98 // Constants and methods shared with ThemePainterMac
101 99
102 // Get the control size based off the font. Used by some of the controls (li ke buttons). 100 // Get the control size based off the font. Used by some of the controls (li ke buttons).
103 NSControlSize controlSizeForFont(const ComputedStyle&) const; 101 NSControlSize controlSizeForFont(const ComputedStyle&) const;
104 NSControlSize controlSizeForSystemFont(const ComputedStyle&) const; 102 NSControlSize controlSizeForSystemFont(const ComputedStyle&) const;
105 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f loat zoomLevel = 1.0f); 103 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f loat zoomLevel = 1.0f);
106 void setSizeFromFont(ComputedStyle&, const IntSize* sizes) const; 104 void setSizeFromFont(ComputedStyle&, const IntSize* sizes) const;
107 IntSize sizeForFont(const ComputedStyle&, const IntSize* sizes) const; 105 IntSize sizeForFont(const ComputedStyle&, const IntSize* sizes) const;
108 IntSize sizeForSystemFont(const ComputedStyle&, const IntSize* sizes) const; 106 IntSize sizeForSystemFont(const ComputedStyle&, const IntSize* sizes) const;
109 void setFontFromControlSize(ComputedStyle&, NSControlSize) const; 107 void setFontFromControlSize(ComputedStyle&, NSControlSize) const;
110 108
111 void updateCheckedState(NSCell*, const LayoutObject&); 109 void updateCheckedState(NSCell*, const LayoutObject&);
112 void updateEnabledState(NSCell*, const LayoutObject&); 110 void updateEnabledState(NSCell*, const LayoutObject&);
113 void updateFocusedState(NSCell*, const LayoutObject&); 111 void updateFocusedState(NSCell*, const LayoutObject&);
114 void updatePressedState(NSCell*, const LayoutObject&); 112 void updatePressedState(NSCell*, const LayoutObject&);
115 113
116 // Helpers for adjusting appearance and for painting 114 // Helpers for adjusting appearance and for painting
117 115
118 void setPopupButtonCellState(const LayoutObject&, const IntRect&); 116 void setPopupButtonCellState(const LayoutObject&, const IntRect&);
119 const IntSize* popupButtonSizes() const; 117 const IntSize* popupButtonSizes() const;
120 const int* popupButtonMargins() const; 118 const int* popupButtonMargins() const;
121 const int* popupButtonPadding(NSControlSize) const; 119 const int* popupButtonPadding(NSControlSize) const;
122 const IntSize* menuListSizes() const; 120 const IntSize* menuListSizes() const;
123 121
124 const IntSize* searchFieldSizes() const; 122 const IntSize* searchFieldSizes() const;
125 const IntSize* cancelButtonSizes() const; 123 const IntSize* cancelButtonSizes() const;
126 const IntSize* resultsButtonSizes() const;
127 void setSearchCellState(const LayoutObject&, const IntRect&); 124 void setSearchCellState(const LayoutObject&, const IntRect&);
128 void setSearchFieldSize(ComputedStyle&) const; 125 void setSearchFieldSize(ComputedStyle&) const;
129 126
130 NSPopUpButtonCell* popupButton() const; 127 NSPopUpButtonCell* popupButton() const;
131 NSSearchFieldCell* search() const; 128 NSSearchFieldCell* search() const;
132 NSTextFieldCell* textField() const; 129 NSTextFieldCell* textField() const;
133 130
134 // A view associated to the contained document. Subclasses may not have such a view and return a fake. 131 // A view associated to the contained document. Subclasses may not have such a view and return a fake.
135 NSView* documentViewFor(const LayoutObject&) const; 132 NSView* documentViewFor(const LayoutObject&) const;
136 133
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 mutable HashMap<int, RGBA32> m_systemColorCache; 181 mutable HashMap<int, RGBA32> m_systemColorCache;
185 182
186 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; 183 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver;
187 184
188 ThemePainterMac m_painter; 185 ThemePainterMac m_painter;
189 }; 186 };
190 187
191 } // namespace blink 188 } // namespace blink
192 189
193 #endif // LayoutThemeMac_h 190 #endif // LayoutThemeMac_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeDefault.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