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

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

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/native_widget_private.h ('k') | ui/views/widget/widget.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 #ifndef UI_VIEWS_WIDGET_WIDGET_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_H_
6 #define UI_VIEWS_WIDGET_WIDGET_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <stack> 9 #include <stack>
10 #include <vector> 10 #include <vector>
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 // mouse location to refresh hovering status in the widget. 725 // mouse location to refresh hovering status in the widget.
726 void SynthesizeMouseMoveEvent(); 726 void SynthesizeMouseMoveEvent();
727 727
728 // Called by our RootView after it has performed a Layout. Used to forward 728 // Called by our RootView after it has performed a Layout. Used to forward
729 // window sizing information to the window server on some platforms. 729 // window sizing information to the window server on some platforms.
730 void OnRootViewLayout(); 730 void OnRootViewLayout();
731 731
732 // Whether the widget supports translucency. 732 // Whether the widget supports translucency.
733 bool IsTranslucentWindowOpacitySupported() const; 733 bool IsTranslucentWindowOpacitySupported() const;
734 734
735 // Called when the delegate's CanResize or CanMaximize changes.
736 void OnSizeConstraintsChanged();
737
735 // Notification that our owner is closing. 738 // Notification that our owner is closing.
736 // NOTE: this is not invoked for aura as it's currently not needed there. 739 // NOTE: this is not invoked for aura as it's currently not needed there.
737 // Under aura menus close by way of activation getting reset when the owner 740 // Under aura menus close by way of activation getting reset when the owner
738 // closes. 741 // closes.
739 virtual void OnOwnerClosing(); 742 virtual void OnOwnerClosing();
740 743
741 // Overridden from NativeWidgetDelegate: 744 // Overridden from NativeWidgetDelegate:
742 virtual bool IsModal() const OVERRIDE; 745 virtual bool IsModal() const OVERRIDE;
743 virtual bool IsDialogBox() const OVERRIDE; 746 virtual bool IsDialogBox() const OVERRIDE;
744 virtual bool CanActivate() const OVERRIDE; 747 virtual bool CanActivate() const OVERRIDE;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 bool movement_disabled_; 949 bool movement_disabled_;
947 950
948 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 951 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
949 952
950 DISALLOW_COPY_AND_ASSIGN(Widget); 953 DISALLOW_COPY_AND_ASSIGN(Widget);
951 }; 954 };
952 955
953 } // namespace views 956 } // namespace views
954 957
955 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 958 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698