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

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

Issue 2507403002: Remove Widget::OnRootViewLayout(). (Closed)
Patch Set: Created 4 years, 1 month 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_mac.h ('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 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_mac.h ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698