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

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

Issue 358553004: Added text filtering to Overview Mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unittest Created 6 years, 5 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 // 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 <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 void SetSelectionTextColor(SkColor color); 113 void SetSelectionTextColor(SkColor color);
114 void UseDefaultSelectionTextColor(); 114 void UseDefaultSelectionTextColor();
115 115
116 // Gets/sets the selection background color to be used when painting the 116 // Gets/sets the selection background color to be used when painting the
117 // Textfield. Call UseDefaultSelectionBackgroundColor() to restore the default 117 // Textfield. Call UseDefaultSelectionBackgroundColor() to restore the default
118 // system color. 118 // system color.
119 SkColor GetSelectionBackgroundColor() const; 119 SkColor GetSelectionBackgroundColor() const;
120 void SetSelectionBackgroundColor(SkColor color); 120 void SetSelectionBackgroundColor(SkColor color);
121 void UseDefaultSelectionBackgroundColor(); 121 void UseDefaultSelectionBackgroundColor();
122 122
123 // Set drop shadows underneath the text.
124 void SetShadows(const gfx::ShadowValues& shadows);
125
123 // Gets/Sets whether or not the cursor is enabled. 126 // Gets/Sets whether or not the cursor is enabled.
124 bool GetCursorEnabled() const; 127 bool GetCursorEnabled() const;
125 void SetCursorEnabled(bool enabled); 128 void SetCursorEnabled(bool enabled);
126 129
127 // Gets/Sets the fonts used when rendering the text within the Textfield. 130 // Gets/Sets the fonts used when rendering the text within the Textfield.
128 const gfx::FontList& GetFontList() const; 131 const gfx::FontList& GetFontList() const;
129 void SetFontList(const gfx::FontList& font_list); 132 void SetFontList(const gfx::FontList& font_list);
130 133
131 // Sets the default width of the text control. See default_width_in_chars_. 134 // Sets the default width of the text control. See default_width_in_chars_.
132 void set_default_width_in_chars(int default_width) { 135 void set_default_width_in_chars(int default_width) {
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 456
454 // Used to bind callback functions to this object. 457 // Used to bind callback functions to this object.
455 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 458 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
456 459
457 DISALLOW_COPY_AND_ASSIGN(Textfield); 460 DISALLOW_COPY_AND_ASSIGN(Textfield);
458 }; 461 };
459 462
460 } // namespace views 463 } // namespace views
461 464
462 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 465 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698