| 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 <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 void NativeWidgetMac::SetVisibilityAnimationTransition( | 597 void NativeWidgetMac::SetVisibilityAnimationTransition( |
| 598 Widget::VisibilityTransition transition) { | 598 Widget::VisibilityTransition transition) { |
| 599 NOTIMPLEMENTED(); | 599 NOTIMPLEMENTED(); |
| 600 } | 600 } |
| 601 | 601 |
| 602 ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const { | 602 ui::NativeTheme* NativeWidgetMac::GetNativeTheme() const { |
| 603 return ui::NativeThemeMac::instance(); | 603 return ui::NativeThemeMac::instance(); |
| 604 } | 604 } |
| 605 | 605 |
| 606 void NativeWidgetMac::OnRootViewLayout() {} | |
| 607 | |
| 608 bool NativeWidgetMac::IsTranslucentWindowOpacitySupported() const { | 606 bool NativeWidgetMac::IsTranslucentWindowOpacitySupported() const { |
| 609 return false; | 607 return false; |
| 610 } | 608 } |
| 611 | 609 |
| 612 void NativeWidgetMac::OnSizeConstraintsChanged() { | 610 void NativeWidgetMac::OnSizeConstraintsChanged() { |
| 613 bridge_->OnSizeConstraintsChanged(); | 611 bridge_->OnSizeConstraintsChanged(); |
| 614 } | 612 } |
| 615 | 613 |
| 616 void NativeWidgetMac::RepostNativeEvent(gfx::NativeEvent native_event) { | 614 void NativeWidgetMac::RepostNativeEvent(gfx::NativeEvent native_event) { |
| 617 NOTIMPLEMENTED(); | 615 NOTIMPLEMENTED(); |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window]; | 766 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window]; |
| 769 } | 767 } |
| 770 | 768 |
| 771 - (void)animationDidEnd:(NSAnimation*)animation { | 769 - (void)animationDidEnd:(NSAnimation*)animation { |
| 772 [window_ close]; | 770 [window_ close]; |
| 773 [animation_ setDelegate:nil]; | 771 [animation_ setDelegate:nil]; |
| 774 [self release]; | 772 [self release]; |
| 775 } | 773 } |
| 776 | 774 |
| 777 @end | 775 @end |
| OLD | NEW |