| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 #include "ui/views/test/views_test_base.h" | 46 #include "ui/views/test/views_test_base.h" |
| 47 #include "ui/views/test/widget_test.h" | 47 #include "ui/views/test/widget_test.h" |
| 48 #include "ui/views/widget/widget.h" | 48 #include "ui/views/widget/widget.h" |
| 49 #include "url/gurl.h" | 49 #include "url/gurl.h" |
| 50 | 50 |
| 51 #if defined(OS_WIN) | 51 #if defined(OS_WIN) |
| 52 #include "base/win/windows_version.h" | 52 #include "base/win/windows_version.h" |
| 53 #endif | 53 #endif |
| 54 | 54 |
| 55 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 55 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 56 #include "ui/events/linux/text_edit_key_bindings_delegate_auralinux.h" | 56 #include "ui/base/ime/linux/text_edit_key_bindings_delegate_auralinux.h" |
| 57 #endif | 57 #endif |
| 58 | 58 |
| 59 #if defined(USE_X11) | 59 #if defined(USE_X11) |
| 60 #include "ui/events/event_utils.h" | 60 #include "ui/events/event_utils.h" |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 using base::ASCIIToUTF16; | 63 using base::ASCIIToUTF16; |
| 64 using base::UTF8ToUTF16; | 64 using base::UTF8ToUTF16; |
| 65 using base::WideToUTF16; | 65 using base::WideToUTF16; |
| 66 | 66 |
| (...skipping 2587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2654 | 2654 |
| 2655 textfield_->SetTextInputType(ui::TEXT_INPUT_TYPE_PASSWORD); | 2655 textfield_->SetTextInputType(ui::TEXT_INPUT_TYPE_PASSWORD); |
| 2656 ui::AXViewState state_protected; | 2656 ui::AXViewState state_protected; |
| 2657 textfield_->GetAccessibleState(&state_protected); | 2657 textfield_->GetAccessibleState(&state_protected); |
| 2658 EXPECT_EQ(ui::AX_ROLE_TEXT_FIELD, state_protected.role); | 2658 EXPECT_EQ(ui::AX_ROLE_TEXT_FIELD, state_protected.role); |
| 2659 EXPECT_EQ(ASCIIToUTF16("********"), state_protected.value); | 2659 EXPECT_EQ(ASCIIToUTF16("********"), state_protected.value); |
| 2660 EXPECT_TRUE(state_protected.HasStateFlag(ui::AX_STATE_PROTECTED)); | 2660 EXPECT_TRUE(state_protected.HasStateFlag(ui::AX_STATE_PROTECTED)); |
| 2661 } | 2661 } |
| 2662 | 2662 |
| 2663 } // namespace views | 2663 } // namespace views |
| OLD | NEW |