Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(450)

Side by Side Diff: ui/views/widget/native_widget_mac.mm

Issue 1953753002: Turn RootWindowController Menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 bool NativeWidgetPrivate::IsMouseButtonDown() { 712 bool NativeWidgetPrivate::IsMouseButtonDown() {
713 return [NSEvent pressedMouseButtons] != 0; 713 return [NSEvent pressedMouseButtons] != 0;
714 } 714 }
715 715
716 // static 716 // static
717 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() { 717 gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
718 NOTIMPLEMENTED(); 718 NOTIMPLEMENTED();
719 return gfx::FontList(); 719 return gfx::FontList();
720 } 720 }
721 721
722 // static
723 gfx::NativeView NativeWidgetPrivate::GetGlobalCapture(
724 gfx::NativeView native_view) {
725 NOTIMPLEMENTED();
726 return nullptr;
727 }
728
722 } // namespace internal 729 } // namespace internal
723 } // namespace views 730 } // namespace views
724 731
725 @implementation ViewsNSWindowCloseAnimator 732 @implementation ViewsNSWindowCloseAnimator
726 733
727 - (id)initWithWindow:(NSWindow*)window { 734 - (id)initWithWindow:(NSWindow*)window {
728 if ((self = [super init])) { 735 if ((self = [super init])) {
729 window_.reset([window retain]); 736 window_.reset([window retain]);
730 animation_.reset( 737 animation_.reset(
731 [[ConstrainedWindowAnimationHide alloc] initWithWindow:window]); 738 [[ConstrainedWindowAnimationHide alloc] initWithWindow:window]);
732 [animation_ setDelegate:self]; 739 [animation_ setDelegate:self];
733 [animation_ setAnimationBlockingMode:NSAnimationNonblocking]; 740 [animation_ setAnimationBlockingMode:NSAnimationNonblocking];
734 [animation_ startAnimation]; 741 [animation_ startAnimation];
735 } 742 }
736 return self; 743 return self;
737 } 744 }
738 745
739 + (void)closeWindowWithAnimation:(NSWindow*)window { 746 + (void)closeWindowWithAnimation:(NSWindow*)window {
740 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window]; 747 [[ViewsNSWindowCloseAnimator alloc] initWithWindow:window];
741 } 748 }
742 749
743 - (void)animationDidEnd:(NSAnimation*)animation { 750 - (void)animationDidEnd:(NSAnimation*)animation {
744 [window_ close]; 751 [window_ close];
745 [animation_ setDelegate:nil]; 752 [animation_ setDelegate:nil];
746 [self release]; 753 [self release];
747 } 754 }
748 755
749 @end 756 @end
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698