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

Side by Side Diff: ui/views/widget/widget.cc

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update NativeWidgetMac. Created 6 years, 3 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/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/widget.h" 5 #include "ui/views/widget/widget.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 } 984 }
985 985
986 void Widget::OnRootViewLayout() { 986 void Widget::OnRootViewLayout() {
987 native_widget_->OnRootViewLayout(); 987 native_widget_->OnRootViewLayout();
988 } 988 }
989 989
990 bool Widget::IsTranslucentWindowOpacitySupported() const { 990 bool Widget::IsTranslucentWindowOpacitySupported() const {
991 return native_widget_->IsTranslucentWindowOpacitySupported(); 991 return native_widget_->IsTranslucentWindowOpacitySupported();
992 } 992 }
993 993
994 void Widget::OnSizeConstraintsChanged() {
995 native_widget_->OnSizeConstraintsChanged();
996 non_client_view_->SizeConstraintsChanged();
997 }
998
994 void Widget::OnOwnerClosing() { 999 void Widget::OnOwnerClosing() {
995 } 1000 }
996 1001
997 //////////////////////////////////////////////////////////////////////////////// 1002 ////////////////////////////////////////////////////////////////////////////////
998 // Widget, NativeWidgetDelegate implementation: 1003 // Widget, NativeWidgetDelegate implementation:
999 1004
1000 bool Widget::IsModal() const { 1005 bool Widget::IsModal() const {
1001 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE; 1006 return widget_delegate_->GetModalType() != ui::MODAL_TYPE_NONE;
1002 } 1007 }
1003 1008
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 1521
1517 //////////////////////////////////////////////////////////////////////////////// 1522 ////////////////////////////////////////////////////////////////////////////////
1518 // internal::NativeWidgetPrivate, NativeWidget implementation: 1523 // internal::NativeWidgetPrivate, NativeWidget implementation:
1519 1524
1520 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() { 1525 internal::NativeWidgetPrivate* NativeWidgetPrivate::AsNativeWidgetPrivate() {
1521 return this; 1526 return this;
1522 } 1527 }
1523 1528
1524 } // namespace internal 1529 } // namespace internal
1525 } // namespace views 1530 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.h ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698