| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 NonClientFrameView* NativeWidgetMac::CreateNonClientFrameView() { | 123 NonClientFrameView* NativeWidgetMac::CreateNonClientFrameView() { |
| 124 return new NativeFrameView(GetWidget()); | 124 return new NativeFrameView(GetWidget()); |
| 125 } | 125 } |
| 126 | 126 |
| 127 bool NativeWidgetMac::ShouldUseNativeFrame() const { | 127 bool NativeWidgetMac::ShouldUseNativeFrame() const { |
| 128 return true; | 128 return true; |
| 129 } | 129 } |
| 130 | 130 |
| 131 bool NativeWidgetMac::ShouldWindowContentsBeTransparent() const { | 131 bool NativeWidgetMac::ShouldWindowContentsBeTransparent() const { |
| 132 // On Windows, this returns false when DWM is unavailable (e.g. XP, RDP or | 132 // On Windows, this returns true when Aero is enabled which draws the titlebar |
| 133 // classic mode). OSX always has a compositing window manager. | 133 // with translucency. |
| 134 return true; | 134 return false; |
| 135 } | 135 } |
| 136 | 136 |
| 137 void NativeWidgetMac::FrameTypeChanged() { | 137 void NativeWidgetMac::FrameTypeChanged() { |
| 138 NOTIMPLEMENTED(); | 138 NOTIMPLEMENTED(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 Widget* NativeWidgetMac::GetWidget() { | 141 Widget* NativeWidgetMac::GetWidget() { |
| 142 return delegate_->AsWidget(); | 142 return delegate_->AsWidget(); |
| 143 } | 143 } |
| 144 | 144 |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 } | 618 } |
| 619 | 619 |
| 620 // static | 620 // static |
| 621 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { | 621 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { |
| 622 NOTIMPLEMENTED(); | 622 NOTIMPLEMENTED(); |
| 623 return gfx::FontList(); | 623 return gfx::FontList(); |
| 624 } | 624 } |
| 625 | 625 |
| 626 } // namespace internal | 626 } // namespace internal |
| 627 } // namespace views | 627 } // namespace views |
| OLD | NEW |