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

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

Issue 2069103004: MacViews: Attach child windows when parent is on the screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 17 matching lines...) Expand all
28 // NULL if not created by NativeWidgetMac. 28 // NULL if not created by NativeWidgetMac.
29 @property(nonatomic, readonly) views::NativeWidgetMac* nativeWidgetMac; 29 @property(nonatomic, readonly) views::NativeWidgetMac* nativeWidgetMac;
30 30
31 // If set, the cursor set in -[NSResponder updateCursor:] when the window is 31 // If set, the cursor set in -[NSResponder updateCursor:] when the window is
32 // reached along the responder chain. 32 // reached along the responder chain.
33 @property(retain, nonatomic) NSCursor* cursor; 33 @property(retain, nonatomic) NSCursor* cursor;
34 34
35 // Initialize with the given |parent|. 35 // Initialize with the given |parent|.
36 - (id)initWithBridgedNativeWidget:(views::BridgedNativeWidget*)parent; 36 - (id)initWithBridgedNativeWidget:(views::BridgedNativeWidget*)parent;
37 37
38 // Notify that the window is about to be reordered on screen. This ensures a
39 // paint will occur, even if Cocoa has not yet updated the window visibility.
40 - (void)onWindowOrderWillChange:(NSWindowOrderingMode)orderingMode;
41
42 // Notify that the window has been reordered in (or removed from) the window 38 // Notify that the window has been reordered in (or removed from) the window
43 // server's screen list. This is a substitute for -[NSWindowDelegate 39 // server's screen list. This is a substitute for -[NSWindowDelegate
44 // windowDidExpose:], which is only sent for nonretained windows (those without 40 // windowDidExpose:], which is only sent for nonretained windows (those without
45 // a backing store). |notification| is optional and can be set when redirecting 41 // a backing store). |notification| is optional and can be set when redirecting
46 // a notification such as NSApplicationDidHideNotification. 42 // a notification such as NSApplicationDidHideNotification.
47 - (void)onWindowOrderChanged:(NSNotification*)notification; 43 - (void)onWindowOrderChanged:(NSNotification*)notification;
48 44
49 // Notify when -[NSWindow display] is being called on the window. 45 // Notify when -[NSWindow display] is being called on the window.
50 - (void)onWindowWillDisplay; 46 - (void)onWindowWillDisplay;
51 47
(...skipping 10 matching lines...) Expand all
62 // Called when the application receives a mouse-down, but before the event 58 // Called when the application receives a mouse-down, but before the event
63 // is processed by NSWindows. Returns NO if the event should be processed as-is, 59 // is processed by NSWindows. Returns NO if the event should be processed as-is,
64 // or YES if the event should be reposted to handle window dragging. Events are 60 // or YES if the event should be reposted to handle window dragging. Events are
65 // reposted at the CGSessionEventTap level because window dragging happens there 61 // reposted at the CGSessionEventTap level because window dragging happens there
66 // before the application receives the event. 62 // before the application receives the event.
67 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow; 63 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow;
68 64
69 @end 65 @end
70 66
71 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ 67 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698