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

Unified Diff: ui/base/win/hwnd_util.h

Issue 9351010: views / Windows: A child window should be centered with respect to its parent, not the monitor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | ui/base/win/hwnd_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/hwnd_util.h
===================================================================
--- ui/base/win/hwnd_util.h (revision 120728)
+++ ui/base/win/hwnd_util.h (working copy)
@@ -33,13 +33,11 @@
// of its children.
UI_EXPORT bool DoesWindowBelongToActiveWindow(HWND window);
-// Sizes the window to have a client or window size (depending on the value of
-// |pref_is_client|) of pref, then centers the window over parent, ensuring the
-// window fits on screen.
+// Sizes the window to have a window size of |pref|, then centers the window
+// over |parent|, ensuring the window fits on screen.
UI_EXPORT void CenterAndSizeWindow(HWND parent,
HWND window,
- const gfx::Size& pref,
- bool pref_is_client);
+ const gfx::Size& pref);
// If |hwnd| is NULL logs various thing and CHECKs. Invoke right after calling
// CreateWindow.
« no previous file with comments | « no previous file | ui/base/win/hwnd_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698