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

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

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)
Patch Set: change parameter name, pass parameter directly 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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698