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 #ifndef UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ | 5 #ifndef UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ |
6 #define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ | 6 #define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
11 | 11 |
12 // The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that | 12 // The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that |
13 // can only be accomplished by overriding methods. | 13 // can only be accomplished by overriding methods. |
14 VIEWS_EXPORT | 14 VIEWS_EXPORT |
15 @interface NativeWidgetMacNSWindow : NSWindow | 15 @interface NativeWidgetMacNSWindow : NSWindow |
16 @end | 16 @end |
17 | 17 |
18 // Overrides contentRect <-> frameRect conversion methods to keep them equal to | |
19 // each other. | |
tapted
2015/03/18 00:06:39
add (e.g.) ", even for windows that do not use NSB
jackhou1
2015/03/18 03:44:39
Done.
| |
20 VIEWS_EXPORT | |
21 @interface NativeWidgetMacFramelessNSWindow : NativeWidgetMacNSWindow | |
tapted
2015/03/18 00:06:39
This is only used in chrome/browser/ui/views/apps/
jackhou1
2015/03/18 03:44:39
Done.
| |
22 @end | |
23 | |
18 #endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ | 24 #endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_ |
OLD | NEW |