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

Side by Side Diff: ui/views/controls/textfield/textfield.h

Issue 2612793006: Remove unused Textfield::SetShadows. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 5 #ifndef UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 6 #define UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void SetSelectionTextColor(SkColor color); 132 void SetSelectionTextColor(SkColor color);
133 void UseDefaultSelectionTextColor(); 133 void UseDefaultSelectionTextColor();
134 134
135 // Gets/sets the selection background color to be used when painting the 135 // Gets/sets the selection background color to be used when painting the
136 // Textfield. Call UseDefaultSelectionBackgroundColor() to restore the default 136 // Textfield. Call UseDefaultSelectionBackgroundColor() to restore the default
137 // system color. 137 // system color.
138 SkColor GetSelectionBackgroundColor() const; 138 SkColor GetSelectionBackgroundColor() const;
139 void SetSelectionBackgroundColor(SkColor color); 139 void SetSelectionBackgroundColor(SkColor color);
140 void UseDefaultSelectionBackgroundColor(); 140 void UseDefaultSelectionBackgroundColor();
141 141
142 // Set drop shadows underneath the text.
143 void SetShadows(const gfx::ShadowValues& shadows);
144
145 // Gets/Sets whether or not the cursor is enabled. 142 // Gets/Sets whether or not the cursor is enabled.
146 bool GetCursorEnabled() const; 143 bool GetCursorEnabled() const;
147 void SetCursorEnabled(bool enabled); 144 void SetCursorEnabled(bool enabled);
148 145
149 // Gets/Sets the fonts used when rendering the text within the Textfield. 146 // Gets/Sets the fonts used when rendering the text within the Textfield.
150 const gfx::FontList& GetFontList() const; 147 const gfx::FontList& GetFontList() const;
151 void SetFontList(const gfx::FontList& font_list); 148 void SetFontList(const gfx::FontList& font_list);
152 149
153 // Sets the default width of the text control. See default_width_in_chars_. 150 // Sets the default width of the text control. See default_width_in_chars_.
154 void set_default_width_in_chars(int default_width) { 151 void set_default_width_in_chars(int default_width) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 526
530 // Used to bind callback functions to this object. 527 // Used to bind callback functions to this object.
531 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 528 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
532 529
533 DISALLOW_COPY_AND_ASSIGN(Textfield); 530 DISALLOW_COPY_AND_ASSIGN(Textfield);
534 }; 531 };
535 532
536 } // namespace views 533 } // namespace views
537 534
538 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 535 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698