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

Unified Diff: ui/views/cocoa/bridged_native_widget.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/cocoa/bridged_native_widget.h
diff --git a/ui/views/cocoa/bridged_native_widget.h b/ui/views/cocoa/bridged_native_widget.h
index 8f6523042de9eead7500964bd6d0daee8883ae63..f526c9bbaee61f29b568aa3fd6688b3313d18627 100644
--- a/ui/views/cocoa/bridged_native_widget.h
+++ b/ui/views/cocoa/bridged_native_widget.h
@@ -20,6 +20,7 @@
#import "ui/views/focus/focus_manager.h"
#include "ui/views/views_export.h"
#include "ui/views/widget/widget.h"
+#include "ui/views/widget/widget_mac_utils.h"
@class BridgedContentView;
@class ViewsNSWindowDelegate;
@@ -156,6 +157,11 @@ class VIEWS_EXPORT BridgedNativeWidget
// Creates a ui::Compositor which becomes responsible for drawing the window.
void CreateLayer(ui::LayerType layer_type, bool translucent);
+ // Updates associated_views_ on NativeViewHost::Attach/Detach
tapted 2016/03/17 08:18:58 nit: .. |associated_views_| .. NativeViewHost::Att
+ void SetAssociationForView(const views::View* view, NSView* native_view);
+ void ClearAssociationForView(const views::View* view);
+ void ReorderChildViews();
tapted 2016/03/17 08:18:58 This should have a separate comment
+
NativeWidgetMac* native_widget_mac() { return native_widget_mac_; }
BridgedContentView* ns_view() { return bridged_view_; }
NSWindow* ns_window() { return window_; }
@@ -289,6 +295,9 @@ class VIEWS_EXPORT BridgedNativeWidget
// shadow needs to be invalidated when a frame is received for the new shape.
bool invalidate_shadow_on_frame_swap_ = false;
+ // Contains NativeViewHost->gfx::NativeView associations.
+ views::AssociatedViews associated_views_;
+
DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
};
« no previous file with comments | « no previous file | ui/views/cocoa/bridged_native_widget.mm » ('j') | ui/views/controls/native/native_view_host_mac.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698