[M85 Dev][EFL] Fix errors to generate ninja files
[platform/framework/web/chromium-efl.git] / chrome / browser / platform_util_aura.cc
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.
4
5 #include "chrome/browser/platform_util.h"
6
7 #include "base/check.h"
8 #include "ui/aura/window.h"
9 #include "ui/wm/core/window_util.h"
10
11 namespace platform_util {
12
13 gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
14   return view->GetToplevelWindow();
15 }
16
17 gfx::NativeView GetViewForWindow(gfx::NativeWindow window) {
18   DCHECK(window);
19   return window;
20 }
21
22 gfx::NativeView GetParent(gfx::NativeView view) {
23   return view->parent();
24 }
25
26 bool IsWindowActive(gfx::NativeWindow window) {
27   return wm::IsActiveWindow(window);
28 }
29
30 void ActivateWindow(gfx::NativeWindow window) {
31   wm::ActivateWindow(window);
32 }
33
34 bool IsVisible(gfx::NativeView view) {
35   return view->IsVisible();
36 }
37
38 }  // namespace platform_util