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

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: Created 6 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
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 // Sets whether to draw a shadow around the text or not.
124 void DisplayShadow(bool display_shadow);
tdanderson 2014/06/25 15:48:23 If the instance variable is has_shadow_, this shou
Nina 2014/06/26 15:20:18 Done.
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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // has been called, but OnAfterUserAction() has not yet been called. 424 // has been called, but OnAfterUserAction() has not yet been called.
422 bool performing_user_action_; 425 bool performing_user_action_;
423 426
424 // True if InputMethod::CancelComposition() should not be called. 427 // True if InputMethod::CancelComposition() should not be called.
425 bool skip_input_method_cancel_composition_; 428 bool skip_input_method_cancel_composition_;
426 429
427 // The text editing cursor repaint timer and visibility. 430 // The text editing cursor repaint timer and visibility.
428 base::RepeatingTimer<Textfield> cursor_repaint_timer_; 431 base::RepeatingTimer<Textfield> cursor_repaint_timer_;
429 bool cursor_visible_; 432 bool cursor_visible_;
430 433
434 // Indicates if the text should be drawn with a shadow.
435 bool has_shadow_;
436
431 // The drop cursor is a visual cue for where dragged text will be dropped. 437 // The drop cursor is a visual cue for where dragged text will be dropped.
432 bool drop_cursor_visible_; 438 bool drop_cursor_visible_;
433 gfx::SelectionModel drop_cursor_position_; 439 gfx::SelectionModel drop_cursor_position_;
434 440
435 // Is the user potentially dragging and dropping from this view? 441 // Is the user potentially dragging and dropping from this view?
436 bool initiating_drag_; 442 bool initiating_drag_;
437 443
438 // A timer and point used to modify the selection when dragging. 444 // A timer and point used to modify the selection when dragging.
439 base::RepeatingTimer<Textfield> drag_selection_timer_; 445 base::RepeatingTimer<Textfield> drag_selection_timer_;
440 gfx::Point last_drag_location_; 446 gfx::Point last_drag_location_;
(...skipping 12 matching lines...) Expand all
453 459
454 // Used to bind callback functions to this object. 460 // Used to bind callback functions to this object.
455 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 461 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
456 462
457 DISALLOW_COPY_AND_ASSIGN(Textfield); 463 DISALLOW_COPY_AND_ASSIGN(Textfield);
458 }; 464 };
459 465
460 } // namespace views 466 } // namespace views
461 467
462 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 468 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698