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

Side by Side Diff: ui/views/controls/textfield/textfield_unittest.cc

Issue 2064053002: Move ui/events/linux/* to ui/base/ime/linux/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor7_correct_text_edit_command_aura_typo
Patch Set: Rebase. Created 4 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
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/linux_ui/linux_ui.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « ui/views/controls/textfield/textfield.cc ('k') | ui/views/linux_ui/linux_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698