| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/public/test/layouttest_support.h" | 5 #include "content/public/test/layouttest_support.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 | 1131 |
| 1132 void SchedulerRunIdleTasks(const base::Closure& callback) { | 1132 void SchedulerRunIdleTasks(const base::Closure& callback) { |
| 1133 blink::scheduler::RendererScheduler* scheduler = | 1133 blink::scheduler::RendererScheduler* scheduler = |
| 1134 content::RenderThreadImpl::current()->GetRendererScheduler(); | 1134 content::RenderThreadImpl::current()->GetRendererScheduler(); |
| 1135 blink::scheduler::RunIdleTasksForTesting(scheduler, callback); | 1135 blink::scheduler::RunIdleTasksForTesting(scheduler, callback); |
| 1136 } | 1136 } |
| 1137 | 1137 |
| 1138 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { | 1138 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { |
| 1139 if (auto* render_widget = | 1139 if (auto* render_widget = |
| 1140 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { | 1140 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { |
| 1141 render_widget->UpdateTextInputState(ShowIme::IF_NEEDED, | 1141 render_widget->UpdateTextInputState(ShowIme::IF_NEEDED); |
| 1142 ChangeSource::FROM_NON_IME); | |
| 1143 } | 1142 } |
| 1144 } | 1143 } |
| 1145 | 1144 |
| 1146 } // namespace content | 1145 } // namespace content |
| OLD | NEW |