| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/dom/Element.h" | 8 #include "core/dom/Element.h" |
| 9 #include "core/dom/Node.h" | 9 #include "core/dom/Node.h" |
| 10 #include "core/html/HTMLElement.h" | 10 #include "core/html/HTMLElement.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 class ImeRequestTrackingWebViewClient : public FrameTestHelpers::TestWebViewClie
nt { | 27 class ImeRequestTrackingWebViewClient : public FrameTestHelpers::TestWebViewClie
nt { |
| 28 public: | 28 public: |
| 29 ImeRequestTrackingWebViewClient() : | 29 ImeRequestTrackingWebViewClient() : |
| 30 m_imeRequestCount(0) | 30 m_imeRequestCount(0) |
| 31 { | 31 { |
| 32 } | 32 } |
| 33 | 33 |
| 34 // WebWidgetClient methods | 34 // WebWidgetClient methods |
| 35 virtual void showImeIfNeeded() OVERRIDE | 35 virtual void showImeIfNeeded() override |
| 36 { | 36 { |
| 37 ++m_imeRequestCount; | 37 ++m_imeRequestCount; |
| 38 } | 38 } |
| 39 | 39 |
| 40 // Local methds | 40 // Local methds |
| 41 void reset() | 41 void reset() |
| 42 { | 42 { |
| 43 m_imeRequestCount = 0; | 43 m_imeRequestCount = 0; |
| 44 } | 44 } |
| 45 | 45 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 { | 149 { |
| 150 runImeOnFocusTest("ime-on-focus-after-navigation-within-page.html", 1, IntPo
int(50, 50), "input"); | 150 runImeOnFocusTest("ime-on-focus-after-navigation-within-page.html", 1, IntPo
int(50, 50), "input"); |
| 151 } | 151 } |
| 152 | 152 |
| 153 TEST_F(ImeOnFocusTest, AfterFrameLoadOnGesture) | 153 TEST_F(ImeOnFocusTest, AfterFrameLoadOnGesture) |
| 154 { | 154 { |
| 155 runImeOnFocusTest("ime-on-focus-after-frame-load-on-gesture.html", 1, IntPoi
nt(50, 50), "input", "frame.html"); | 155 runImeOnFocusTest("ime-on-focus-after-frame-load-on-gesture.html", 1, IntPoi
nt(50, 50), "input", "frame.html"); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } | 158 } |
| OLD | NEW |