| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/platform_util.h" | 5 #include "chrome/browser/platform_util.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
| 9 #include "ui/aura_shell/window_util.h" |
| 9 | 10 |
| 10 namespace platform_util { | 11 namespace platform_util { |
| 11 | 12 |
| 12 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { | 13 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { |
| 13 return view->GetToplevelWindow(); | 14 return view->GetToplevelWindow(); |
| 14 } | 15 } |
| 15 | 16 |
| 16 gfx::NativeView GetParent(gfx::NativeView view) { | 17 gfx::NativeView GetParent(gfx::NativeView view) { |
| 17 return view->parent(); | 18 return view->parent(); |
| 18 } | 19 } |
| 19 | 20 |
| 20 bool IsWindowActive(gfx::NativeWindow window) { | 21 bool IsWindowActive(gfx::NativeWindow window) { |
| 21 return window->IsActive(); | 22 return aura_shell::IsActiveWindow(window); |
| 22 } | 23 } |
| 23 | 24 |
| 24 void ActivateWindow(gfx::NativeWindow window) { | 25 void ActivateWindow(gfx::NativeWindow window) { |
| 25 window->Activate(); | 26 aura_shell::ActivateWindow(window); |
| 26 } | 27 } |
| 27 | 28 |
| 28 bool IsVisible(gfx::NativeView view) { | 29 bool IsVisible(gfx::NativeView view) { |
| 29 return view->IsVisible(); | 30 return view->IsVisible(); |
| 30 } | 31 } |
| 31 | 32 |
| 32 } // namespace platform_util | 33 } // namespace platform_util |
| OLD | NEW |