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

Unified Diff: ui/gfx/view_util_aura.cc

Issue 2688413007: Add display::GetDisplayNearestView (Closed)
Patch Set: add missing files Created 3 years, 10 months 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 side-by-side diff with in-line comments
Download patch
Index: ui/gfx/view_util_aura.cc
diff --git a/ui/gfx/view_util_aura.cc b/ui/gfx/view_util_aura.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fc1852f2a8982eea411842e6d8075daf23bb4c8f
--- /dev/null
+++ b/ui/gfx/view_util_aura.cc
@@ -0,0 +1,14 @@
+// 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 "ui/aura/window.h"
+#include "ui/gfx/view_util.h"
tapted 2017/02/15 00:36:10 move to top
Jinsuk Kim 2017/02/16 10:11:25 Done.
+
+namespace gfx {
+
+gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
+ return view->GetToplevelWindow();
+}
+
+} // namespace gfx

Powered by Google App Engine
This is Rietveld 408576698