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

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

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 6 years, 4 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 | Annotate | Revision Log
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 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 virtual void OnNativeBlur(gfx::NativeView new_focused_view) OVERRIDE; 749 virtual void OnNativeBlur(gfx::NativeView new_focused_view) OVERRIDE;
750 virtual void OnNativeWidgetVisibilityChanging(bool visible) OVERRIDE; 750 virtual void OnNativeWidgetVisibilityChanging(bool visible) OVERRIDE;
751 virtual void OnNativeWidgetVisibilityChanged(bool visible) OVERRIDE; 751 virtual void OnNativeWidgetVisibilityChanged(bool visible) OVERRIDE;
752 virtual void OnNativeWidgetCreated(bool desktop_widget) OVERRIDE; 752 virtual void OnNativeWidgetCreated(bool desktop_widget) OVERRIDE;
753 virtual void OnNativeWidgetDestroying() OVERRIDE; 753 virtual void OnNativeWidgetDestroying() OVERRIDE;
754 virtual void OnNativeWidgetDestroyed() OVERRIDE; 754 virtual void OnNativeWidgetDestroyed() OVERRIDE;
755 virtual gfx::Size GetMinimumSize() const OVERRIDE; 755 virtual gfx::Size GetMinimumSize() const OVERRIDE;
756 virtual gfx::Size GetMaximumSize() const OVERRIDE; 756 virtual gfx::Size GetMaximumSize() const OVERRIDE;
757 virtual void OnNativeWidgetMove() OVERRIDE; 757 virtual void OnNativeWidgetMove() OVERRIDE;
758 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) OVERRIDE; 758 virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) OVERRIDE;
759 virtual void OnNativeWidgetWindowShowStateChanged() OVERRIDE;
759 virtual void OnNativeWidgetBeginUserBoundsChange() OVERRIDE; 760 virtual void OnNativeWidgetBeginUserBoundsChange() OVERRIDE;
760 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE; 761 virtual void OnNativeWidgetEndUserBoundsChange() OVERRIDE;
761 virtual bool HasFocusManager() const OVERRIDE; 762 virtual bool HasFocusManager() const OVERRIDE;
762 virtual bool OnNativeWidgetPaintAccelerated( 763 virtual bool OnNativeWidgetPaintAccelerated(
763 const gfx::Rect& dirty_region) OVERRIDE; 764 const gfx::Rect& dirty_region) OVERRIDE;
764 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE; 765 virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) OVERRIDE;
765 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE; 766 virtual int GetNonClientComponent(const gfx::Point& point) OVERRIDE;
766 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 767 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
767 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 768 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
768 virtual void OnMouseCaptureLost() OVERRIDE; 769 virtual void OnMouseCaptureLost() OVERRIDE;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 friend class TextfieldTest; 811 friend class TextfieldTest;
811 812
812 // Sets the value of |disable_inactive_rendering_|. If the value changes, 813 // Sets the value of |disable_inactive_rendering_|. If the value changes,
813 // both the NonClientView and WidgetDelegate are notified. 814 // both the NonClientView and WidgetDelegate are notified.
814 void SetInactiveRenderingDisabled(bool value); 815 void SetInactiveRenderingDisabled(bool value);
815 816
816 // Persists the window's restored position and "show" state using the 817 // Persists the window's restored position and "show" state using the
817 // window delegate. 818 // window delegate.
818 void SaveWindowPlacement(); 819 void SaveWindowPlacement();
819 820
821 // Avoid saving session state during startup procedures.
sky 2014/08/12 13:21:28 This comment is cryptic. Maybe: // Invokes SaveWin
jackhou1 2014/08/13 01:57:51 Done.
822 void SaveWindowPlacementIfInitialized();
823
820 // Sizes and positions the window just after it is created. 824 // Sizes and positions the window just after it is created.
821 void SetInitialBounds(const gfx::Rect& bounds); 825 void SetInitialBounds(const gfx::Rect& bounds);
822 826
823 // Sizes and positions the frameless window just after it is created. 827 // Sizes and positions the frameless window just after it is created.
824 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds); 828 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds);
825 829
826 // Returns the bounds and "show" state from the delegate. Returns true if 830 // Returns the bounds and "show" state from the delegate. Returns true if
827 // the delegate wants to use a specified bounds. 831 // the delegate wants to use a specified bounds.
828 bool GetSavedWindowPlacement(gfx::Rect* bounds, 832 bool GetSavedWindowPlacement(gfx::Rect* bounds,
829 ui::WindowShowState* show_state); 833 ui::WindowShowState* show_state);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 bool movement_disabled_; 944 bool movement_disabled_;
941 945
942 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 946 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
943 947
944 DISALLOW_COPY_AND_ASSIGN(Widget); 948 DISALLOW_COPY_AND_ASSIGN(Widget);
945 }; 949 };
946 950
947 } // namespace views 951 } // namespace views
948 952
949 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 953 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698