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

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: Add tests. 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
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fb50a3c8da492b248c2351c7d10e36e65ea5b790 100644
--- a/ui/views/cocoa/bridged_native_widget.h
+++ b/ui/views/cocoa/bridged_native_widget.h
@@ -31,6 +31,7 @@ class InputMethod;
namespace views {
namespace test {
class BridgedNativeWidgetTestApi;
+class BridgedNativeWidgetTest;
}
class CocoaMouseCapture;
@@ -178,6 +179,7 @@ class VIEWS_EXPORT BridgedNativeWidget
private:
friend class test::BridgedNativeWidgetTestApi;
+ friend class test::BridgedNativeWidgetTest;
// Closes all child windows. BridgedNativeWidget children will be destroyed.
void RemoveOrDestroyChildren();
@@ -215,6 +217,11 @@ class VIEWS_EXPORT BridgedNativeWidget
// update its draggable region.
void SetDraggable(bool draggable);
+ // Calls updateWindowMask on |bridged_view_| and updates the mask path for
+ // |compositor_superview_|'s layer. 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;
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698