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

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

Issue 6862002: Merge gpu_trace_event back into base/debug/trace_event (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Flaky test fixed, found race in my test Created 9 years, 7 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
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698