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

Side by Side Diff: chrome/test/base/interactive_test_utils_win.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/test/base/interactive_test_utils.h" 5 #include "chrome/test/base/interactive_test_utils.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "ui/base/test/ui_controls.h" 12 #include "ui/base/test/ui_controls.h"
13 #include "ui/base/win/foreground_helper.h" 13 #include "ui/base/win/foreground_helper.h"
14 #include "ui/views/focus/focus_manager.h" 14 #include "ui/views/focus/focus_manager.h"
15 15
16 #if defined(USE_AURA) 16 #if defined(USE_AURA)
17 #include "chrome/browser/ui/host_desktop.h" 17 #include "chrome/browser/ui/host_desktop.h"
18 #include "chrome/test/base/interactive_test_utils_aura.h" 18 #include "chrome/test/base/interactive_test_utils_aura.h"
19 #include "ui/aura/root_window.h" 19 #include "ui/aura/window_event_dispatcher.h"
20 #endif 20 #endif
21 21
22 namespace ui_test_utils { 22 namespace ui_test_utils {
23 23
24 void HideNativeWindow(gfx::NativeWindow window) { 24 void HideNativeWindow(gfx::NativeWindow window) {
25 #if defined(USE_AURA) 25 #if defined(USE_AURA)
26 if (chrome::GetHostDesktopTypeForNativeWindow(window) == 26 if (chrome::GetHostDesktopTypeForNativeWindow(window) ==
27 chrome::HOST_DESKTOP_TYPE_ASH) { 27 chrome::HOST_DESKTOP_TYPE_ASH) {
28 HideNativeWindowAura(window); 28 HideNativeWindowAura(window);
29 return; 29 return;
(...skipping 24 matching lines...) Expand all
54 ui::ForegroundHelper::SetForeground(hwnd); 54 ui::ForegroundHelper::SetForeground(hwnd);
55 } 55 }
56 56
57 // ShowWindow does not necessarily activate the window. In particular if a 57 // ShowWindow does not necessarily activate the window. In particular if a
58 // window from another app is the foreground window then the request to 58 // window from another app is the foreground window then the request to
59 // activate the window fails. See SetForegroundWindow for details. 59 // activate the window fails. See SetForegroundWindow for details.
60 return GetForegroundWindow() == hwnd; 60 return GetForegroundWindow() == hwnd;
61 } 61 }
62 62
63 } // namespace ui_test_utils 63 } // namespace ui_test_utils
OLDNEW
« no previous file with comments | « chrome/test/base/chrome_render_view_host_test_harness.cc ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698