| OLD | NEW |
| 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 #import "ui/views/cocoa/native_widget_mac_nswindow.h" | 5 #import "ui/views/cocoa/native_widget_mac_nswindow.h" |
| 6 | 6 |
| 7 #include "base/mac/foundation_util.h" | 7 #include "base/mac/foundation_util.h" |
| 8 #import "ui/views/cocoa/views_nswindow_delegate.h" | 8 #import "ui/views/cocoa/views_nswindow_delegate.h" |
| 9 #include "ui/views/controls/menu/menu_controller.h" | 9 #include "ui/views/controls/menu/menu_controller.h" |
| 10 #include "ui/views/widget/native_widget_mac.h" | 10 #include "ui/views/widget/native_widget_mac.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 | 102 |
| 103 NSCursor* cursor = [[self viewsNSWindowDelegate] cursor]; | 103 NSCursor* cursor = [[self viewsNSWindowDelegate] cursor]; |
| 104 if (cursor) | 104 if (cursor) |
| 105 [cursor set]; | 105 [cursor set]; |
| 106 else | 106 else |
| 107 [super cursorUpdate:theEvent]; | 107 [super cursorUpdate:theEvent]; |
| 108 } | 108 } |
| 109 | 109 |
| 110 @end | 110 @end |
| 111 |
| 112 @implementation NativeWidgetMacFramelessNSWindow |
| 113 |
| 114 + (NSRect)frameRectForContentRect:(NSRect)contentRect |
| 115 styleMask:(NSUInteger)mask { |
| 116 return contentRect; |
| 117 } |
| 118 |
| 119 + (NSRect)contentRectForFrameRect:(NSRect)frameRect styleMask:(NSUInteger)mask { |
| 120 return frameRect; |
| 121 } |
| 122 |
| 123 - (NSRect)frameRectForContentRect:(NSRect)contentRect { |
| 124 return contentRect; |
| 125 } |
| 126 |
| 127 - (NSRect)contentRectForFrameRect:(NSRect)frameRect { |
| 128 return frameRect; |
| 129 } |
| 130 |
| 131 @end |
| OLD | NEW |