| 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/chromeos/ime/candidate_view.h" | 5 #include "ui/chromeos/ime/candidate_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 9 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
| 10 #include "ui/events/test/event_generator.h" | 13 #include "ui/events/test/event_generator.h" |
| 11 #include "ui/views/controls/button/button.h" | 14 #include "ui/views/controls/button/button.h" |
| 12 #include "ui/views/layout/box_layout.h" | 15 #include "ui/views/layout/box_layout.h" |
| 13 #include "ui/views/layout/fill_layout.h" | 16 #include "ui/views/layout/fill_layout.h" |
| 14 #include "ui/views/test/views_test_base.h" | 17 #include "ui/views/test/views_test_base.h" |
| 15 #include "ui/views/widget/widget_delegate.h" | 18 #include "ui/views/widget/widget_delegate.h" |
| 16 | 19 |
| 17 namespace ui { | 20 namespace ui { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 GetCandidateAt(1)->GetBoundsInScreen().CenterPoint()); | 176 GetCandidateAt(1)->GetBoundsInScreen().CenterPoint()); |
| 174 EXPECT_EQ(1, GetHighlightedIndex(&highlighted_count)); | 177 EXPECT_EQ(1, GetHighlightedIndex(&highlighted_count)); |
| 175 EXPECT_EQ(1, highlighted_count); | 178 EXPECT_EQ(1, highlighted_count); |
| 176 | 179 |
| 177 event_generator()->ReleaseLeftButton(); | 180 event_generator()->ReleaseLeftButton(); |
| 178 EXPECT_EQ(1, GetLastPressedIndexAndReset()); | 181 EXPECT_EQ(1, GetLastPressedIndexAndReset()); |
| 179 } | 182 } |
| 180 | 183 |
| 181 } // namespace ime | 184 } // namespace ime |
| 182 } // namespace ui | 185 } // namespace ui |
| OLD | NEW |