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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_SHE ET_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_SHE ET_H_
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_SHE ET_H_ 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_SHE ET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h" 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet.h"
12 12
13 // Represents a custom sheet. The sheet's window is shown without using the 13 // Represents a custom sheet. The sheet's window is shown without using the
14 // system |beginSheet:...| API. 14 // system |beginSheet:...| API.
15 @interface CustomConstrainedWindowSheet : NSObject<ConstrainedWindowSheet> { 15 @interface CustomConstrainedWindowSheet : NSObject<ConstrainedWindowSheet> {
16 @protected 16 @protected
17 base::scoped_nsobject<NSWindow> customWindow_; 17 base::scoped_nsobject<NSWindow> customWindow_;
18 BOOL useSimpleAnimations_;
18 } 19 }
19 20
20 - (id)initWithCustomWindow:(NSWindow*)customWindow; 21 - (id)initWithCustomWindow:(NSWindow*)customWindow;
21 22
23 // Defaults to NO.
24 // The standard animation uses private CGS APIs, which can crash the window
25 // server. https://crbug.com/515627#c75
26 - (void)setUseSimpleAnimations:(BOOL)simpleAnimations;
27
22 @end 28 @end
23 29
24 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_ SHEET_H_ 30 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_CUSTOM_ SHEET_H_
OLDNEW
« 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