Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Side by Side Diff: content/test/layouttest_support.cc

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)
Patch Set: use correct patch Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« content/renderer/render_widget.cc ('K') | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698