| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include <string> | 5 #include <string> |
| 6 #include <list> | 6 #include <list> |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <commctrl.h> | 8 #include <commctrl.h> |
| 9 |
| 10 #include "app/gfx/native_theme_win.h" |
| 9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 10 #include "base/event_recorder.h" | 12 #include "base/event_recorder.h" |
| 11 #include "base/gfx/native_theme.h" | |
| 12 #include "base/resource_util.h" | 13 #include "base/resource_util.h" |
| 13 #include "base/win_util.h" | 14 #include "base/win_util.h" |
| 14 #include "webkit/tools/test_shell/foreground_helper.h" | 15 #include "webkit/tools/test_shell/foreground_helper.h" |
| 15 #include "webkit/tools/test_shell/test_shell.h" | 16 #include "webkit/tools/test_shell/test_shell.h" |
| 16 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" | 17 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" |
| 17 | 18 |
| 18 TestShellPlatformDelegate::TestShellPlatformDelegate( | 19 TestShellPlatformDelegate::TestShellPlatformDelegate( |
| 19 const CommandLine& command_line) | 20 const CommandLine& command_line) |
| 20 : command_line_(command_line) { | 21 : command_line_(command_line) { |
| 21 #ifdef _CRTDBG_MAP_ALLOC | 22 #ifdef _CRTDBG_MAP_ALLOC |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 void TestShellPlatformDelegate::SetWindowPositionForRecording( | 141 void TestShellPlatformDelegate::SetWindowPositionForRecording( |
| 141 TestShell *shell) { | 142 TestShell *shell) { |
| 142 // Move the window to the upper left corner for consistent | 143 // Move the window to the upper left corner for consistent |
| 143 // record/playback mode. For automation, we want this to work | 144 // record/playback mode. For automation, we want this to work |
| 144 // on build systems where the script invoking us is a background | 145 // on build systems where the script invoking us is a background |
| 145 // process. So for this case, make our window the topmost window | 146 // process. So for this case, make our window the topmost window |
| 146 // as well. | 147 // as well. |
| 147 ForegroundHelper::SetForeground(shell->mainWnd()); | 148 ForegroundHelper::SetForeground(shell->mainWnd()); |
| 148 ::SetWindowPos(shell->mainWnd(), HWND_TOP, 0, 0, 600, 800, 0); | 149 ::SetWindowPos(shell->mainWnd(), HWND_TOP, 0, 0, 600, 800, 0); |
| 149 } | 150 } |
| OLD | NEW |