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

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

Issue 196128: Hook up WebViewClient, part 1.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | Annotate | Revision Log
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('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-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
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
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
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell.h ('k') | webkit/tools/test_shell/test_shell_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698