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

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

Issue 2001433002: Update appearance of omnibox focus for MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: share constant 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
« no previous file with comments | « ui/native_theme/native_theme_dark_aura.cc ('k') | 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 // Clears Edit history. 200 // Clears Edit history.
201 void ClearEditHistory(); 201 void ClearEditHistory();
202 202
203 // Set the accessible name of the text field. 203 // Set the accessible name of the text field.
204 void SetAccessibleName(const base::string16& name); 204 void SetAccessibleName(const base::string16& name);
205 205
206 // Performs the action associated with the specified command id. 206 // Performs the action associated with the specified command id.
207 void ExecuteCommand(int command_id); 207 void ExecuteCommand(int command_id);
208 208
209 void SetFocusPainter(std::unique_ptr<Painter> focus_painter);
210
211 // Returns whether there is a drag operation originating from the textfield. 209 // Returns whether there is a drag operation originating from the textfield.
212 bool HasTextBeingDragged(); 210 bool HasTextBeingDragged();
213 211
214 // View overrides: 212 // View overrides:
215 gfx::Insets GetInsets() const override; 213 gfx::Insets GetInsets() const override;
216 int GetBaseline() const override; 214 int GetBaseline() const override;
217 gfx::Size GetPreferredSize() const override; 215 gfx::Size GetPreferredSize() const override;
218 const char* GetClassName() const override; 216 const char* GetClassName() const override;
219 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; 217 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
220 bool OnMousePressed(const ui::MouseEvent& event) override; 218 bool OnMousePressed(const ui::MouseEvent& event) override;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 // dispatch of that key event (see comment in TextInputClient). 401 // dispatch of that key event (see comment in TextInputClient).
404 int scheduled_edit_command_; 402 int scheduled_edit_command_;
405 403
406 // True if this Textfield cannot accept input and is read-only. 404 // True if this Textfield cannot accept input and is read-only.
407 bool read_only_; 405 bool read_only_;
408 406
409 // The default number of average characters for the width of this text field. 407 // The default number of average characters for the width of this text field.
410 // This will be reported as the "desired size". Defaults to 0. 408 // This will be reported as the "desired size". Defaults to 0.
411 int default_width_in_chars_; 409 int default_width_in_chars_;
412 410
413 std::unique_ptr<Painter> focus_painter_;
414
415 // Flags indicating whether various system colors should be used, and if not, 411 // Flags indicating whether various system colors should be used, and if not,
416 // what overriding color values should be used instead. 412 // what overriding color values should be used instead.
417 bool use_default_text_color_; 413 bool use_default_text_color_;
418 bool use_default_background_color_; 414 bool use_default_background_color_;
419 bool use_default_selection_text_color_; 415 bool use_default_selection_text_color_;
420 bool use_default_selection_background_color_; 416 bool use_default_selection_background_color_;
421 SkColor text_color_; 417 SkColor text_color_;
422 SkColor background_color_; 418 SkColor background_color_;
423 SkColor selection_text_color_; 419 SkColor selection_text_color_;
424 SkColor selection_background_color_; 420 SkColor selection_background_color_;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 484
489 // Used to bind callback functions to this object. 485 // Used to bind callback functions to this object.
490 base::WeakPtrFactory<Textfield> weak_ptr_factory_; 486 base::WeakPtrFactory<Textfield> weak_ptr_factory_;
491 487
492 DISALLOW_COPY_AND_ASSIGN(Textfield); 488 DISALLOW_COPY_AND_ASSIGN(Textfield);
493 }; 489 };
494 490
495 } // namespace views 491 } // namespace views
496 492
497 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_ 493 #endif // UI_VIEWS_CONTROLS_TEXTFIELD_TEXTFIELD_H_
OLDNEW
« no previous file with comments | « ui/native_theme/native_theme_dark_aura.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698