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

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

Issue 11414223: Move the test functions that deal with focus to interactive_ui_tets_utils.h and into the interactiv… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years 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/browser/ui/views/test/ui_test_utils_aura.h" 5 #include "chrome/test/base/interactive_test_utils_aura.h"
6 6
7 #include "chrome/test/base/ui_test_utils.h" 7 #include "chrome/test/base/interactive_test_utils.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 9
10 namespace ui_test_utils { 10 namespace ui_test_utils {
11 11
12 #if !defined(OS_WIN) 12 #if !defined(OS_WIN)
13 void HideNativeWindow(gfx::NativeWindow window) { 13 void HideNativeWindow(gfx::NativeWindow window) {
14 HideNativeWindowAura(window); 14 HideNativeWindowAura(window);
15 } 15 }
16 16
17 bool ShowAndFocusNativeWindow(gfx::NativeWindow window) { 17 bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
18 return ShowAndFocusNativeWindowAura(window); 18 return ShowAndFocusNativeWindowAura(window);
19 } 19 }
20 #endif 20 #endif
21 21
22 void HideNativeWindowAura(gfx::NativeWindow window) { 22 void HideNativeWindowAura(gfx::NativeWindow window) {
23 window->Hide(); 23 window->Hide();
24 } 24 }
25 25
26 bool ShowAndFocusNativeWindowAura(gfx::NativeWindow window) { 26 bool ShowAndFocusNativeWindowAura(gfx::NativeWindow window) {
27 window->Show(); 27 window->Show();
28 return true; 28 return true;
29 } 29 }
30 30
31 } // namespace ui_test_utils 31 } // namespace ui_test_utils
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698