Chromium Code Reviews| Index: ui/gfx/view_util_android.cc |
| diff --git a/ui/gfx/view_util_android.cc b/ui/gfx/view_util_android.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2356f1df148a0321d17cd23004dbf0825d50703f |
| --- /dev/null |
| +++ b/ui/gfx/view_util_android.cc |
| @@ -0,0 +1,16 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include <jni.h> |
|
tapted
2017/02/15 00:36:10
is this needed?
Jinsuk Kim
2017/02/16 10:11:25
Done.
|
| + |
| +#include "ui/android/view_android.h" |
| +#include "ui/gfx/view_util.h" |
|
tapted
2017/02/15 00:36:10
move to top, blank line after
Jinsuk Kim
2017/02/16 10:11:25
Done.
|
| + |
| +namespace gfx { |
| + |
| +gfx::NativeWindow GetTopLevel(gfx::NativeView view) { |
| + return view->GetWindowAndroid(); |
| +} |
| + |
| +} // namespace gfx |