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

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

Issue 2648433008: Use explicit WebString conversions in LayoutTest related files (Closed)
Patch Set: . 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } 534 }
535 535
536 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) { 536 void DisableAutoResizeMode(RenderView* render_view, const WebSize& new_size) {
537 static_cast<RenderViewImpl*>(render_view)-> 537 static_cast<RenderViewImpl*>(render_view)->
538 DisableAutoResizeForTesting(new_size); 538 DisableAutoResizeForTesting(new_size);
539 } 539 }
540 540
541 // Returns True if node1 < node2. 541 // Returns True if node1 < node2.
542 bool HistoryEntryCompareLess(HistoryEntry::HistoryNode* node1, 542 bool HistoryEntryCompareLess(HistoryEntry::HistoryNode* node1,
543 HistoryEntry::HistoryNode* node2) { 543 HistoryEntry::HistoryNode* node2) {
544 base::string16 target1 = node1->item().target(); 544 base::string16 target1 = node1->item().target().utf16();
545 base::string16 target2 = node2->item().target(); 545 base::string16 target2 = node2->item().target().utf16();
546 return base::CompareCaseInsensitiveASCII(target1, target2) < 0; 546 return base::CompareCaseInsensitiveASCII(target1, target2) < 0;
547 } 547 }
548 548
549 std::string DumpHistoryItem(HistoryEntry::HistoryNode* node, 549 std::string DumpHistoryItem(HistoryEntry::HistoryNode* node,
550 int indent, 550 int indent,
551 bool is_current_index) { 551 bool is_current_index) {
552 std::string result; 552 std::string result;
553 553
554 const blink::WebHistoryItem& item = node->item(); 554 const blink::WebHistoryItem& item = node->item();
555 if (is_current_index) { 555 if (is_current_index) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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->ShowVirtualKeyboard(); 607 render_widget->ShowVirtualKeyboard();
608 } 608 }
609 } 609 }
610 610
611 } // namespace content 611 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | content/test/mock_webclipboard_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698