| 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 #include "ui/views/widget/native_widget_mac.h" | 5 #include "ui/views/widget/native_widget_mac.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "base/mac/foundation_util.h" | 9 #include "base/mac/foundation_util.h" |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace views { | 23 namespace views { |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 NSInteger StyleMaskForParams(const Widget::InitParams& params) { | 26 NSInteger StyleMaskForParams(const Widget::InitParams& params) { |
| 27 // TODO(tapted): Determine better masks when there are use cases for it. | 27 // TODO(tapted): Determine better masks when there are use cases for it. |
| 28 if (params.remove_standard_frame) | 28 if (params.remove_standard_frame) |
| 29 return NSBorderlessWindowMask; | 29 return NSBorderlessWindowMask; |
| 30 | 30 |
| 31 if (params.type == Widget::InitParams::TYPE_WINDOW) { | 31 if (params.type == Widget::InitParams::TYPE_WINDOW) { |
| 32 return NSTitledWindowMask | NSClosableWindowMask | | 32 return NSTitledWindowMask | NSClosableWindowMask | |
| 33 NSMiniaturizableWindowMask | NSResizableWindowMask; | 33 NSMiniaturizableWindowMask | NSResizableWindowMask | |
| 34 NSTexturedBackgroundWindowMask; |
| 34 } | 35 } |
| 35 return NSBorderlessWindowMask; | 36 return NSBorderlessWindowMask; |
| 36 } | 37 } |
| 37 | 38 |
| 38 } // namespace | 39 } // namespace |
| 39 | 40 |
| 40 //////////////////////////////////////////////////////////////////////////////// | 41 //////////////////////////////////////////////////////////////////////////////// |
| 41 // NativeWidgetMac, public: | 42 // NativeWidgetMac, public: |
| 42 | 43 |
| 43 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate) | 44 NativeWidgetMac::NativeWidgetMac(internal::NativeWidgetDelegate* delegate) |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 } | 641 } |
| 641 | 642 |
| 642 // static | 643 // static |
| 643 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 644 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 644 NOTIMPLEMENTED(); | 645 NOTIMPLEMENTED(); |
| 645 return gfx::FontList(); | 646 return gfx::FontList(); |
| 646 } | 647 } |
| 647 | 648 |
| 648 } // namespace internal | 649 } // namespace internal |
| 649 } // namespace views | 650 } // namespace views |
| OLD | NEW |