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

Unified Diff: ui/gfx/view_util.h

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.h
diff --git a/ui/gfx/view_util.h b/ui/gfx/view_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..6be550d2296f7b7385492b633415e6562477ff73
--- /dev/null
+++ b/ui/gfx/view_util.h
@@ -0,0 +1,18 @@
+// 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.
+
+#ifndef UI_GFX_VIEW_UTIL_H_
tapted 2017/02/15 00:36:10 view_util isn't a good name -- neither for the com
Jinsuk Kim 2017/02/16 10:11:25 Point taken. Tentatively chose the first one. Will
+#define UI_GFX_VIEW_UTIL_H_
+
+#include "ui/gfx/gfx_export.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace gfx {
+
+// Get the top level window for the native view. This can return NULL.
+GFX_EXPORT gfx::NativeWindow GetTopLevel(gfx::NativeView view);
tapted 2017/02/15 00:36:10 gfx:: prefixes are not needed -- more elsewhere
Jinsuk Kim 2017/02/16 10:11:25 Done.
+
+} // namespace gfx
+
+#endif // UI_GFX_VIEW_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698