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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h

Issue 1787553003: mac: Remove uses of a CoreGraphics private API that causes WindowServer crashes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add semicolons. 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 | « no previous file | chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h
index de54a819080f039256f38b71368c7e96dc8a58de..159b33c4735759edeefcd68f75dcf536148792fa 100644
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h
@@ -15,10 +15,16 @@
@interface CustomConstrainedWindowSheet : NSObject<ConstrainedWindowSheet> {
@protected
base::scoped_nsobject<NSWindow> customWindow_;
+ BOOL useSimpleAnimations_;
}
- (id)initWithCustomWindow:(NSWindow*)customWindow;
+// Defaults to NO.
+// The standard animation uses private CGS APIs, which can crash the window
+// server. https://crbug.com/515627#c75
+- (void)setUseSimpleAnimations:(BOOL)simpleAnimations;
+
@end
#endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_SHEET_H_
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698