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

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

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: hwnd_message_handler 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
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/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "base/win/metro.h" 7 #include "base/win/metro.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 604 }
605 605
606 bool DesktopWindowTreeHostWin::CanResize() const { 606 bool DesktopWindowTreeHostWin::CanResize() const {
607 return GetWidget()->widget_delegate()->CanResize(); 607 return GetWidget()->widget_delegate()->CanResize();
608 } 608 }
609 609
610 bool DesktopWindowTreeHostWin::CanMaximize() const { 610 bool DesktopWindowTreeHostWin::CanMaximize() const {
611 return GetWidget()->widget_delegate()->CanMaximize(); 611 return GetWidget()->widget_delegate()->CanMaximize();
612 } 612 }
613 613
614 bool DesktopWindowTreeHostWin::CanMinimize() const {
615 return GetWidget()->widget_delegate()->CanMinimize();
616 }
617
614 bool DesktopWindowTreeHostWin::CanActivate() const { 618 bool DesktopWindowTreeHostWin::CanActivate() const {
615 if (IsModalWindowActive()) 619 if (IsModalWindowActive())
616 return true; 620 return true;
617 return native_widget_delegate_->CanActivate(); 621 return native_widget_delegate_->CanActivate();
618 } 622 }
619 623
620 bool DesktopWindowTreeHostWin::WidgetSizeIsClientSize() const { 624 bool DesktopWindowTreeHostWin::WidgetSizeIsClientSize() const {
621 const Widget* widget = GetWidget()->GetTopLevelWidget(); 625 const Widget* widget = GetWidget()->GetTopLevelWidget();
622 return IsMaximized() || (widget && widget->ShouldUseNativeFrame()); 626 return IsMaximized() || (widget && widget->ShouldUseNativeFrame());
623 } 627 }
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 999
996 // static 1000 // static
997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 1001 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
998 internal::NativeWidgetDelegate* native_widget_delegate, 1002 internal::NativeWidgetDelegate* native_widget_delegate,
999 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1003 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1000 return new DesktopWindowTreeHostWin(native_widget_delegate, 1004 return new DesktopWindowTreeHostWin(native_widget_delegate,
1001 desktop_native_widget_aura); 1005 desktop_native_widget_aura);
1002 } 1006 }
1003 1007
1004 } // namespace views 1008 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698