OLD | NEW |
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 #include "ui/views/controls/textfield/textfield.h" | 5 #include "ui/views/controls/textfield/textfield.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
| 10 #include "base/memory/ptr_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
13 #include "ui/accessibility/ax_action_data.h" | 14 #include "ui/accessibility/ax_action_data.h" |
14 #include "ui/accessibility/ax_node_data.h" | 15 #include "ui/accessibility/ax_node_data.h" |
15 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 16 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
16 #include "ui/base/cursor/cursor.h" | 17 #include "ui/base/cursor/cursor.h" |
17 #include "ui/base/default_style.h" | 18 #include "ui/base/default_style.h" |
18 #include "ui/base/dragdrop/drag_drop_types.h" | 19 #include "ui/base/dragdrop/drag_drop_types.h" |
19 #include "ui/base/dragdrop/drag_utils.h" | 20 #include "ui/base/dragdrop/drag_utils.h" |
(...skipping 2037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2057 } | 2058 } |
2058 | 2059 |
2059 void Textfield::OnCursorBlinkTimerFired() { | 2060 void Textfield::OnCursorBlinkTimerFired() { |
2060 DCHECK(ShouldBlinkCursor()); | 2061 DCHECK(ShouldBlinkCursor()); |
2061 gfx::RenderText* render_text = GetRenderText(); | 2062 gfx::RenderText* render_text = GetRenderText(); |
2062 render_text->set_cursor_visible(!render_text->cursor_visible()); | 2063 render_text->set_cursor_visible(!render_text->cursor_visible()); |
2063 RepaintCursor(); | 2064 RepaintCursor(); |
2064 } | 2065 } |
2065 | 2066 |
2066 } // namespace views | 2067 } // namespace views |
OLD | NEW |