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

Unified Diff: views/widget/widget_win.h

Issue 304007: Make sure the RootView is sized to the correct bounds when the opaque frame i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: views/widget/widget_win.h
===================================================================
--- views/widget/widget_win.h (revision 29799)
+++ views/widget/widget_win.h (working copy)
@@ -387,12 +387,8 @@
// behavior.
virtual void OnFinalMessage(HWND window);
- // Returns true if the RootView should be sized to the window rect instead of
- // the client rect when the widget is resized. This is true if the widget's
- // WM_NCCALCSIZE handler returns a client rect that differs from the window
- // rect but the painted content of the window should still fill the entire
- // visible window.
- virtual bool SizeRootViewToWindowRect() const { return false; }
+ // Returns the size that the RootView should be set to in |LayoutRootView|.
Peter Kasting 2009/10/23 05:09:31 Nit: LayoutRootView() rather than |LayoutRootView|
+ virtual gfx::Size GetRootViewSize() const;
// Start tracking all mouse events so that this window gets sent mouse leave
// messages too.
@@ -459,7 +455,7 @@
// Resize the bitmap used to contain the contents of the layered window. This
// recreates the entire bitmap.
- void SizeContents(const CRect& window_rect);
+ void SizeContents(const gfx::Size& window_size);
// Paint into a DIB and then update the layered window with its contents.
void PaintLayeredWindow();

Powered by Google App Engine
This is Rietveld 408576698