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 "core/dom/Document.h" | 5 #include "core/dom/Document.h" |
6 #include "core/dom/Element.h" | 6 #include "core/dom/Element.h" |
7 #include "core/dom/Node.h" | 7 #include "core/dom/Node.h" |
| 8 #include "core/frame/WebLocalFrameBase.h" |
8 #include "core/html/HTMLElement.h" | 9 #include "core/html/HTMLElement.h" |
9 #include "platform/testing/URLTestHelpers.h" | 10 #include "platform/testing/URLTestHelpers.h" |
10 #include "platform/testing/UnitTestHelpers.h" | 11 #include "platform/testing/UnitTestHelpers.h" |
11 #include "public/platform/Platform.h" | 12 #include "public/platform/Platform.h" |
12 #include "public/platform/WebCoalescedInputEvent.h" | 13 #include "public/platform/WebCoalescedInputEvent.h" |
13 #include "public/platform/WebURLLoaderMockFactory.h" | 14 #include "public/platform/WebURLLoaderMockFactory.h" |
14 #include "public/web/WebDocument.h" | 15 #include "public/web/WebDocument.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "web/WebLocalFrameImpl.h" | |
17 #include "web/tests/FrameTestHelpers.h" | 17 #include "web/tests/FrameTestHelpers.h" |
18 | 18 |
19 using blink::FrameTestHelpers::LoadFrame; | 19 using blink::FrameTestHelpers::LoadFrame; |
20 using blink::testing::RunPendingTasks; | 20 using blink::testing::RunPendingTasks; |
21 using blink::URLTestHelpers::RegisterMockedURLLoadFromBase; | 21 using blink::URLTestHelpers::RegisterMockedURLLoadFromBase; |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 class ImeRequestTrackingWebViewClient | 25 class ImeRequestTrackingWebViewClient |
26 : public FrameTestHelpers::TestWebWidgetClient { | 26 : public FrameTestHelpers::TestWebWidgetClient { |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 RunImeOnFocusTest("ime-on-focus-after-navigation-within-page.html", 1, | 150 RunImeOnFocusTest("ime-on-focus-after-navigation-within-page.html", 1, |
151 IntPoint(50, 50), "input"); | 151 IntPoint(50, 50), "input"); |
152 } | 152 } |
153 | 153 |
154 TEST_F(ImeOnFocusTest, AfterFrameLoadOnGesture) { | 154 TEST_F(ImeOnFocusTest, AfterFrameLoadOnGesture) { |
155 RunImeOnFocusTest("ime-on-focus-after-frame-load-on-gesture.html", 1, | 155 RunImeOnFocusTest("ime-on-focus-after-frame-load-on-gesture.html", 1, |
156 IntPoint(50, 50), "input", "frame.html"); | 156 IntPoint(50, 50), "input", "frame.html"); |
157 } | 157 } |
158 | 158 |
159 } // namespace blink | 159 } // namespace blink |
OLD | NEW |