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

Unified Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1718043003: MacViews: Clip contents for non-rectangular windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Created 4 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/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..4f28af828d2bb13f2c5a6c81f60514d96e20ad5a 100644
--- a/ui/views/cocoa/bridged_native_widget.h
+++ b/ui/views/cocoa/bridged_native_widget.h
@@ -215,6 +215,12 @@ class VIEWS_EXPORT BridgedNativeWidget
// update its draggable region.
void SetDraggable(bool draggable);
+ // Calls updateWindowMask on |bridged_view_| and updates the path
+ // corresponding to the mask of |compositor_superview_|'s layer for
+ // non-rectangular windows. If a mask layer does not yet exist, it creates a
+ // new one.
+ void UpdateMaskPath();
+
// Overridden from CocoaMouseCaptureDelegate:
void PostCapturedEvent(NSEvent* event) override;
void OnMouseCaptureLost() override;

Powered by Google App Engine
This is Rietveld 408576698