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