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

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
« no previous file with comments | « ui/views/widget/native_widget_delegate.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 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 // Invokes SaveWindowPlacement() if the native widget has been initialized.
822 // This is called at times when the native widget may not have been
823 // initialized.
824 void SaveWindowPlacementIfInitialized();
825
820 // Sizes and positions the window just after it is created. 826 // Sizes and positions the window just after it is created.
821 void SetInitialBounds(const gfx::Rect& bounds); 827 void SetInitialBounds(const gfx::Rect& bounds);
822 828
823 // Sizes and positions the frameless window just after it is created. 829 // Sizes and positions the frameless window just after it is created.
824 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds); 830 void SetInitialBoundsForFramelessWindow(const gfx::Rect& bounds);
825 831
826 // Returns the bounds and "show" state from the delegate. Returns true if 832 // Returns the bounds and "show" state from the delegate. Returns true if
827 // the delegate wants to use a specified bounds. 833 // the delegate wants to use a specified bounds.
828 bool GetSavedWindowPlacement(gfx::Rect* bounds, 834 bool GetSavedWindowPlacement(gfx::Rect* bounds,
829 ui::WindowShowState* show_state); 835 ui::WindowShowState* show_state);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 bool movement_disabled_; 946 bool movement_disabled_;
941 947
942 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_; 948 ScopedObserver<ui::NativeTheme, ui::NativeThemeObserver> observer_manager_;
943 949
944 DISALLOW_COPY_AND_ASSIGN(Widget); 950 DISALLOW_COPY_AND_ASSIGN(Widget);
945 }; 951 };
946 952
947 } // namespace views 953 } // namespace views
948 954
949 #endif // UI_VIEWS_WIDGET_WIDGET_H_ 955 #endif // UI_VIEWS_WIDGET_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_delegate.h ('k') | ui/views/widget/widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698