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

Unified Diff: ui/platform_window/win/win_window.cc

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows Created 4 years, 8 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 | « chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/win/win_window.cc
diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc
index c72670a70e9dc6ffdd4834157ae704539edc2703..e3bf2687b23446cb1b4fbf70313463ce4ca1ef69 100644
--- a/ui/platform_window/win/win_window.cc
+++ b/ui/platform_window/win/win_window.cc
@@ -42,10 +42,13 @@ WinWindow::WinWindow(PlatformWindowDelegate* delegate,
const gfx::Rect& bounds)
: delegate_(delegate) {
CHECK(delegate_);
- if (use_popup_as_root_window_for_test)
+ DWORD window_style = WS_OVERLAPPEDWINDOW;
+ if (use_popup_as_root_window_for_test) {
set_window_style(WS_POPUP);
- gfx::Rect window_bounds = GetWindowBoundsForClientBounds(
- WS_OVERLAPPEDWINDOW, window_ex_style(), bounds);
+ window_style = WS_POPUP;
+ }
+ gfx::Rect window_bounds =
+ GetWindowBoundsForClientBounds(window_style, window_ex_style(), bounds);
gfx::WindowImpl::Init(NULL, window_bounds);
SetWindowText(hwnd(), L"WinWindow");
}
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_common_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698