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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 } | 325 } |
326 | 326 |
327 void NativeWidgetMac::StackAbove(gfx::NativeView native_view) { | 327 void NativeWidgetMac::StackAbove(gfx::NativeView native_view) { |
328 NOTIMPLEMENTED(); | 328 NOTIMPLEMENTED(); |
329 } | 329 } |
330 | 330 |
331 void NativeWidgetMac::StackAtTop() { | 331 void NativeWidgetMac::StackAtTop() { |
332 NOTIMPLEMENTED(); | 332 NOTIMPLEMENTED(); |
333 } | 333 } |
334 | 334 |
335 void NativeWidgetMac::StackBelow(gfx::NativeView native_view) { | |
336 NOTIMPLEMENTED(); | |
337 } | |
338 | |
339 void NativeWidgetMac::SetShape(std::unique_ptr<SkRegion> shape) { | 335 void NativeWidgetMac::SetShape(std::unique_ptr<SkRegion> shape) { |
340 NOTIMPLEMENTED(); | 336 NOTIMPLEMENTED(); |
341 } | 337 } |
342 | 338 |
343 void NativeWidgetMac::Close() { | 339 void NativeWidgetMac::Close() { |
344 if (!bridge_) | 340 if (!bridge_) |
345 return; | 341 return; |
346 | 342 |
347 NSWindow* window = GetNativeWindow(); | 343 NSWindow* window = GetNativeWindow(); |
348 if (IsWindowModalSheet()) { | 344 if (IsWindowModalSheet()) { |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window]; | 758 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window]; |
763 } | 759 } |
764 | 760 |
765 - (void)animationDidEnd:(NSAnimation*)animation { | 761 - (void)animationDidEnd:(NSAnimation*)animation { |
766 [window_ close]; | 762 [window_ close]; |
767 [animation_ setDelegate:nil]; | 763 [animation_ setDelegate:nil]; |
768 [self release]; | 764 [self release]; |
769 } | 765 } |
770 | 766 |
771 @end | 767 @end |
OLD | NEW |