Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / test / base / interactive_test_utils_aura.cc
blobb780b8384f10b9f2a8b8c0e340d8049fed1fbc03
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
3 // found in the LICENSE file.
5 #include "chrome/test/base/interactive_test_utils_aura.h"
7 #include "chrome/test/base/interactive_test_utils.h"
8 #include "ui/aura/window.h"
10 namespace ui_test_utils {
12 #if !defined(OS_WIN)
13 void HideNativeWindow(gfx::NativeWindow window) {
14 HideNativeWindowAura(window);
17 bool ShowAndFocusNativeWindow(gfx::NativeWindow window) {
18 return ShowAndFocusNativeWindowAura(window);
20 #endif
22 void HideNativeWindowAura(gfx::NativeWindow window) {
23 window->Hide();
26 bool ShowAndFocusNativeWindowAura(gfx::NativeWindow window) {
27 window->Show();
28 return true;
31 } // namespace ui_test_utils