| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |