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

Unified Diff: ui/views/widget/widget_mac_utils.h

Issue 1796773003: Implement NativeWidgetMac::ReorderNativeViews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using NativeViewHost*->NSView* map. Created 4 years, 9 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/views/widget/widget_mac_utils.h
diff --git a/ui/views/widget/widget_mac_utils.h b/ui/views/widget/widget_mac_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..5965008f840dff574e9d45e156a69f8671072f78
--- /dev/null
+++ b/ui/views/widget/widget_mac_utils.h
@@ -0,0 +1,24 @@
+// Copyright 2016 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_VIEWS_WIDGET_WIDGET_MAC_UTILS_H_
+#define UI_VIEWS_WIDGET_WIDGET_MAC_UTILS_H_
+
+#import <Cocoa/Cocoa.h>
+
+#include <map>
+
+namespace views {
+
+class Widget;
+class View;
+
+using AssociatedViews = std::map<const views::View*, NSView*>;
+
+void ReorderChildNSViews(Widget* widget,
+ const AssociatedViews& associated_views);
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_WIDGET_MAC_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698