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

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

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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) 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 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/event_recorder.h" 11 #include "base/event_recorder.h"
12 #include "base/resource_util.h" 12 #include "base/resource_util.h"
13 #include "base/win/win_util.h" 13 #include "base/win/win_util.h"
14 #include "gfx/native_theme_win.h" 14 #include "ui/gfx/native_theme_win.h"
15 #include "webkit/tools/test_shell/foreground_helper.h" 15 #include "webkit/tools/test_shell/foreground_helper.h"
16 #include "webkit/tools/test_shell/test_shell.h" 16 #include "webkit/tools/test_shell/test_shell.h"
17 #include "webkit/tools/test_shell/test_shell_platform_delegate.h" 17 #include "webkit/tools/test_shell/test_shell_platform_delegate.h"
18 18
19 TestShellPlatformDelegate::TestShellPlatformDelegate( 19 TestShellPlatformDelegate::TestShellPlatformDelegate(
20 const CommandLine& command_line) 20 const CommandLine& command_line)
21 : command_line_(command_line) { 21 : command_line_(command_line) {
22 #ifdef _CRTDBG_MAP_ALLOC 22 #ifdef _CRTDBG_MAP_ALLOC
23 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR); 23 _CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDERR);
24 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE); 24 _CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 void TestShellPlatformDelegate::SetWindowPositionForRecording( 147 void TestShellPlatformDelegate::SetWindowPositionForRecording(
148 TestShell *shell) { 148 TestShell *shell) {
149 // Move the window to the upper left corner for consistent 149 // Move the window to the upper left corner for consistent
150 // record/playback mode. For automation, we want this to work 150 // record/playback mode. For automation, we want this to work
151 // on build systems where the script invoking us is a background 151 // on build systems where the script invoking us is a background
152 // process. So for this case, make our window the topmost window 152 // process. So for this case, make our window the topmost window
153 // as well. 153 // as well.
154 ForegroundHelper::SetForeground(shell->mainWnd()); 154 ForegroundHelper::SetForeground(shell->mainWnd());
155 ::SetWindowPos(shell->mainWnd(), HWND_TOP, 0, 0, 600, 800, 0); 155 ::SetWindowPos(shell->mainWnd(), HWND_TOP, 0, 0, 600, 800, 0);
156 } 156 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/test_shell_main.cc ('k') | webkit/tools/test_shell/test_webview_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698