| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #undef LOG | 5 #undef LOG |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 for (int i = 0; i < navigation_controller_->GetEntryCount(); ++i) | 478 for (int i = 0; i < navigation_controller_->GetEntryCount(); ++i) |
| 479 DumpBackForwardEntry(i, result); | 479 DumpBackForwardEntry(i, result); |
| 480 | 480 |
| 481 result->append(L"===============================================\n"); | 481 result->append(L"===============================================\n"); |
| 482 } | 482 } |
| 483 | 483 |
| 484 void TestShell::CallJSGC() { | 484 void TestShell::CallJSGC() { |
| 485 webView()->GetMainFrame()->collectGarbage(); | 485 webView()->GetMainFrame()->collectGarbage(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 WebView* TestShell::CreateWebView(WebView* webview) { | 488 WebView* TestShell::CreateWebView() { |
| 489 // If we're running layout tests, only open a new window if the test has | 489 // If we're running layout tests, only open a new window if the test has |
| 490 // called layoutTestController.setCanOpenWindows() | 490 // called layoutTestController.setCanOpenWindows() |
| 491 if (layout_test_mode_ && !layout_test_controller_->CanOpenWindows()) | 491 if (layout_test_mode_ && !layout_test_controller_->CanOpenWindows()) |
| 492 return NULL; | 492 return NULL; |
| 493 | 493 |
| 494 TestShell* new_win; | 494 TestShell* new_win; |
| 495 if (!CreateNewWindow(GURL(), &new_win)) | 495 if (!CreateNewWindow(GURL(), &new_win)) |
| 496 return NULL; | 496 return NULL; |
| 497 | 497 |
| 498 return new_win->webView(); | 498 return new_win->webView(); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 675 |
| 676 void CloseIdleConnections() { | 676 void CloseIdleConnections() { |
| 677 // Used in benchmarking, Ignored for test_shell. | 677 // Used in benchmarking, Ignored for test_shell. |
| 678 } | 678 } |
| 679 | 679 |
| 680 void SetCacheMode(bool enabled) { | 680 void SetCacheMode(bool enabled) { |
| 681 // Used in benchmarking, Ignored for test_shell. | 681 // Used in benchmarking, Ignored for test_shell. |
| 682 } | 682 } |
| 683 | 683 |
| 684 } // namespace webkit_glue | 684 } // namespace webkit_glue |
| OLD | NEW |