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

Side by Side Diff: ui/views/cocoa/views_nswindow_delegate.h

Issue 993253002: MacViews: Implement Window-modal dialogs using sheets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update isolate Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ 5 #ifndef UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_
6 #define UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ 6 #define UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_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"
(...skipping 29 matching lines...) Expand all
40 // Notify that the window has been reordered in (or removed from) the window 40 // Notify that the window has been reordered in (or removed from) the window
41 // server's screen list. This is a substitute for -[NSWindowDelegate 41 // server's screen list. This is a substitute for -[NSWindowDelegate
42 // windowDidExpose:], which is only sent for nonretained windows (those without 42 // windowDidExpose:], which is only sent for nonretained windows (those without
43 // a backing store). |notification| is optional and can be set when redirecting 43 // a backing store). |notification| is optional and can be set when redirecting
44 // a notification such as NSApplicationDidHideNotification. 44 // a notification such as NSApplicationDidHideNotification.
45 - (void)onWindowOrderChanged:(NSNotification*)notification; 45 - (void)onWindowOrderChanged:(NSNotification*)notification;
46 46
47 // Notify when -[NSWindow display] is being called on the window. 47 // Notify when -[NSWindow display] is being called on the window.
48 - (void)onWindowWillDisplay; 48 - (void)onWindowWillDisplay;
49 49
50 // Called on the delegate of a modal sheet when its modal session ends.
51 - (void)sheetDidEnd:(NSWindow*)sheet
52 returnCode:(NSInteger)returnCode
53 contextInfo:(void*)contextInfo;
54
50 @end 55 @end
51 56
52 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ 57 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698