| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 | 597 |
| 598 void SchedulerRunIdleTasks(const base::Closure& callback) { | 598 void SchedulerRunIdleTasks(const base::Closure& callback) { |
| 599 blink::scheduler::RendererScheduler* scheduler = | 599 blink::scheduler::RendererScheduler* scheduler = |
| 600 content::RenderThreadImpl::current()->GetRendererScheduler(); | 600 content::RenderThreadImpl::current()->GetRendererScheduler(); |
| 601 blink::scheduler::RunIdleTasksForTesting(scheduler, callback); | 601 blink::scheduler::RunIdleTasksForTesting(scheduler, callback); |
| 602 } | 602 } |
| 603 | 603 |
| 604 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { | 604 void ForceTextInputStateUpdateForRenderFrame(RenderFrame* frame) { |
| 605 if (auto* render_widget = | 605 if (auto* render_widget = |
| 606 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { | 606 static_cast<RenderFrameImpl*>(frame)->GetRenderWidget()) { |
| 607 render_widget->UpdateTextInputState(ShowIme::IF_NEEDED, | 607 render_widget->ShowVirtualKeyboard(); |
| 608 ChangeSource::FROM_NON_IME); | |
| 609 } | 608 } |
| 610 } | 609 } |
| 611 | 610 |
| 612 } // namespace content | 611 } // namespace content |
| OLD | NEW |