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

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

Issue 2596193002: Clean up names and remove unnecessary parameter (Closed)
Patch Set: rebase 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
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698