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

Side by Side Diff: webkit/tools/test_shell/layout_test_controller.cc

Issue 180033: Implement layoutTestController.display() method.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Prettify. Created 11 years, 3 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 | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/test_shell/test_shell.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // This file contains the definition for LayoutTestController. 5 // This file contains the definition for LayoutTestController.
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "webkit/tools/test_shell/layout_test_controller.h" 9 #include "webkit/tools/test_shell/layout_test_controller.h"
10 10
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 result->SetNull(); 736 result->SetNull();
737 } 737 }
738 738
739 void LayoutTestController::dumpSelectionRect( 739 void LayoutTestController::dumpSelectionRect(
740 const CppArgumentList& args, CppVariant* result) { 740 const CppArgumentList& args, CppVariant* result) {
741 result->SetNull(); 741 result->SetNull();
742 } 742 }
743 743
744 void LayoutTestController::display( 744 void LayoutTestController::display(
745 const CppArgumentList& args, CppVariant* result) { 745 const CppArgumentList& args, CppVariant* result) {
746 WebViewHost* view_host = shell_->webViewHost();
747 view_host->Paint();
748 view_host->DisplayRepaintMask();
746 result->SetNull(); 749 result->SetNull();
747 } 750 }
748 751
749 void LayoutTestController::testRepaint( 752 void LayoutTestController::testRepaint(
750 const CppArgumentList& args, CppVariant* result) { 753 const CppArgumentList& args, CppVariant* result) {
751 result->SetNull(); 754 result->SetNull();
752 } 755 }
753 756
754 void LayoutTestController::repaintSweepHorizontally( 757 void LayoutTestController::repaintSweepHorizontally(
755 const CppArgumentList& args, CppVariant* result) { 758 const CppArgumentList& args, CppVariant* result) {
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 944
942 WebKit::WebURL url(GURL(args[0].ToString())); 945 WebKit::WebURL url(GURL(args[0].ToString()));
943 if (!url.isValid()) 946 if (!url.isValid())
944 return; 947 return;
945 948
946 WebKit::whiteListAccessFromOrigin(url, 949 WebKit::whiteListAccessFromOrigin(url,
947 WebString::fromUTF8(args[1].ToString()), 950 WebString::fromUTF8(args[1].ToString()),
948 WebString::fromUTF8(args[2].ToString()), 951 WebString::fromUTF8(args[2].ToString()),
949 args[3].ToBoolean()); 952 args[3].ToBoolean());
950 } 953 }
OLDNEW
« no previous file with comments | « webkit/glue/webframe_impl.cc ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698