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

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

Issue 1146873002: [MacViews] Enable dragging a window by its caption/draggable areas. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase Created 5 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Called on the delegate of a modal sheet when its modal session ends. 52 // Called on the delegate of a modal sheet when its modal session ends.
53 - (void)sheetDidEnd:(NSWindow*)sheet 53 - (void)sheetDidEnd:(NSWindow*)sheet
54 returnCode:(NSInteger)returnCode 54 returnCode:(NSInteger)returnCode
55 contextInfo:(void*)contextInfo; 55 contextInfo:(void*)contextInfo;
56 56
57 // Redeclare methods defined in the protocol NSWindowDelegate which are only 57 // Redeclare methods defined in the protocol NSWindowDelegate which are only
58 // available on OSX 10.7+. 58 // available on OSX 10.7+.
59 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window; 59 - (void)windowDidFailToEnterFullScreen:(NSWindow*)window;
60 - (void)windowDidFailToExitFullScreen:(NSWindow*)window; 60 - (void)windowDidFailToExitFullScreen:(NSWindow*)window;
61 61
62 // 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,
64 // 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
66 // before the application receives the event.
67 - (BOOL)shouldRepostPendingLeftMouseDown:(NSPoint)locationInWindow;
68
62 @end 69 @end
63 70
64 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_ 71 #endif // UI_VIEWS_COCOA_VIEWS_NSWINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_interactive_uitest.mm ('k') | ui/views/cocoa/views_nswindow_delegate.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698