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

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

Issue 1633403002: MacViews: Add native drop shadow to dialogs on OSX < 10.10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed review comments. Implemented quad to cubic bezier conversion. 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_content_view.h
diff --git a/ui/views/cocoa/bridged_content_view.h b/ui/views/cocoa/bridged_content_view.h
index 9f6fbb505661a5a84985412dbe16f3958c7957e7..f4b6a867cd7c56da72d142f05aa21551bf6a6cc8 100644
--- a/ui/views/cocoa/bridged_content_view.h
+++ b/ui/views/cocoa/bridged_content_view.h
@@ -47,6 +47,9 @@ class View;
// Whether dragging on the view moves the window.
BOOL mouseDownCanMoveWindow_;
+
+ // The cached window mask. Only used for non-rectangular windows on 10.9.
+ base::scoped_nsobject<NSBezierPath> windowMask_;
}
@property(readonly, nonatomic) views::View* hostedView;
@@ -73,6 +76,9 @@ class View;
// contentRect (also this NSView's frame), as given by a ui::LocatedEvent.
- (void)updateTooltipIfRequiredAt:(const gfx::Point&)locationInContent;
+// Update windowMask_ depending on the current view bounds.
+- (void)updateWindowMask;
+
@end
#endif // UI_VIEWS_COCOA_BRIDGED_CONTENT_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698