| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/native_textfield_views.h" | 5 #include "ui/views/controls/textfield/native_textfield_views.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
| 12 #include "base/i18n/case_conversion.h" | 12 #include "base/i18n/case_conversion.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 16 #include "grit/app_locale_settings.h" | 16 #include "grit/app_locale_settings.h" |
| 17 #include "grit/ui_strings.h" | 17 #include "grit/ui_strings.h" |
| 18 #include "third_party/icu/public/common/unicode/uchar.h" | 18 #include "third_party/icu/public/common/unicode/uchar.h" |
| 19 #include "third_party/skia/include/core/SkColor.h" | 19 #include "third_party/skia/include/core/SkColor.h" |
| 20 #include "ui/base/clipboard/clipboard.h" | 20 #include "ui/base/clipboard/clipboard.h" |
| 21 #include "ui/base/dragdrop/drag_drop_types.h" | 21 #include "ui/base/dragdrop/drag_drop_types.h" |
| 22 #include "ui/base/dragdrop/drag_utils.h" | 22 #include "ui/base/dragdrop/drag_utils.h" |
| 23 #include "ui/base/events/event.h" | 23 #include "ui/base/events/event.h" |
| 24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
| (...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 if (index != -1) { | 1508 if (index != -1) { |
| 1509 obscured_reveal_timer_.Start( | 1509 obscured_reveal_timer_.Start( |
| 1510 FROM_HERE, | 1510 FROM_HERE, |
| 1511 duration, | 1511 duration, |
| 1512 base::Bind(&NativeTextfieldViews::RevealObscuredChar, | 1512 base::Bind(&NativeTextfieldViews::RevealObscuredChar, |
| 1513 base::Unretained(this), -1, base::TimeDelta())); | 1513 base::Unretained(this), -1, base::TimeDelta())); |
| 1514 } | 1514 } |
| 1515 } | 1515 } |
| 1516 | 1516 |
| 1517 } // namespace views | 1517 } // namespace views |
| OLD | NEW |