| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "webkit/tools/test_shell/test_shell.h" | 5 #include "webkit/tools/test_shell/test_shell.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <commdlg.h> | 8 #include <commdlg.h> |
| 9 #include <objbase.h> | 9 #include <objbase.h> |
| 10 #include <process.h> | 10 #include <process.h> |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 472 |
| 473 MoveWindow(webViewWnd(), 0, URLBAR_HEIGHT, rc.right, | 473 MoveWindow(webViewWnd(), 0, URLBAR_HEIGHT, rc.right, |
| 474 rc.bottom - URLBAR_HEIGHT, TRUE); | 474 rc.bottom - URLBAR_HEIGHT, TRUE); |
| 475 } | 475 } |
| 476 | 476 |
| 477 void TestShell::LoadURLForFrame(const GURL& url, | 477 void TestShell::LoadURLForFrame(const GURL& url, |
| 478 const std::wstring& frame_name) { | 478 const std::wstring& frame_name) { |
| 479 if (!url.is_valid()) | 479 if (!url.is_valid()) |
| 480 return; | 480 return; |
| 481 | 481 |
| 482 TRACE_EVENT_BEGIN("url.load", this, url.spec()); | 482 TRACE_EVENT_BEGIN_ETW("url.load", this, url.spec()); |
| 483 | 483 |
| 484 if (IsSVGTestURL(url)) { | 484 if (IsSVGTestURL(url)) { |
| 485 SizeToSVG(); | 485 SizeToSVG(); |
| 486 } else { | 486 } else { |
| 487 // only resize back to the default when running tests | 487 // only resize back to the default when running tests |
| 488 if (layout_test_mode()) | 488 if (layout_test_mode()) |
| 489 SizeToDefault(); | 489 SizeToDefault(); |
| 490 } | 490 } |
| 491 | 491 |
| 492 navigation_controller_->LoadEntry( | 492 navigation_controller_->LoadEntry( |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 738 | 738 |
| 739 bool EnsureFontLoaded(HFONT font) { | 739 bool EnsureFontLoaded(HFONT font) { |
| 740 return true; | 740 return true; |
| 741 } | 741 } |
| 742 | 742 |
| 743 bool DownloadUrl(const std::string& url, HWND caller_window) { | 743 bool DownloadUrl(const std::string& url, HWND caller_window) { |
| 744 return false; | 744 return false; |
| 745 } | 745 } |
| 746 | 746 |
| 747 } // namespace webkit_glue | 747 } // namespace webkit_glue |
| OLD | NEW |