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

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

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/root_view.cc ('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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 bool movement_disabled() const { return movement_disabled_; } 752 bool movement_disabled() const { return movement_disabled_; }
753 void set_movement_disabled(bool disabled) { movement_disabled_ = disabled; } 753 void set_movement_disabled(bool disabled) { movement_disabled_ = disabled; }
754 754
755 // Returns the work area bounds of the screen the Widget belongs to. 755 // Returns the work area bounds of the screen the Widget belongs to.
756 gfx::Rect GetWorkAreaBoundsInScreen() const; 756 gfx::Rect GetWorkAreaBoundsInScreen() const;
757 757
758 // Creates and dispatches synthesized mouse move event using the current 758 // Creates and dispatches synthesized mouse move event using the current
759 // mouse location to refresh hovering status in the widget. 759 // mouse location to refresh hovering status in the widget.
760 void SynthesizeMouseMoveEvent(); 760 void SynthesizeMouseMoveEvent();
761 761
762 // Called by our RootView after it has performed a Layout. Used to forward
763 // window sizing information to the window server on some platforms.
764 void OnRootViewLayout();
765
766 // Whether the widget supports translucency. 762 // Whether the widget supports translucency.
767 bool IsTranslucentWindowOpacitySupported() const; 763 bool IsTranslucentWindowOpacitySupported() const;
768 764
769 // Called when the delegate's CanResize or CanMaximize changes. 765 // Called when the delegate's CanResize or CanMaximize changes.
770 void OnSizeConstraintsChanged(); 766 void OnSizeConstraintsChanged();
771 767
772 // Notification that our owner is closing. 768 // Notification that our owner is closing.
773 // NOTE: this is not invoked for aura as it's currently not needed there. 769 // NOTE: this is not invoked for aura as it's currently not needed there.
774 // Under aura menus close by way of activation getting reset when the owner 770 // Under aura menus close by way of activation getting reset when the owner
775 // closes. 771 // closes.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 bool movement_disabled_; 967 bool movement_disabled_;
972 968
973 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 969 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
974 970
975 DISALLOW_COPY_AND_ASSIGN(Widget); 971 DISALLOW_COPY_AND_ASSIGN(Widget);
976 }; 972 };
977 973
978 } // namespace views 974 } // namespace views
979 975
980 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 976 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698