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

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

Issue 410873003: Revert 284850 "aura: Use PlatformWindow from WindowTreeHostWin." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 | « trunk/src/ui/platform_window/win/win_window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/platform_window/win/win_window.cc
===================================================================
--- trunk/src/ui/platform_window/win/win_window.cc (revision 284904)
+++ trunk/src/ui/platform_window/win/win_window.cc (working copy)
@@ -13,8 +13,6 @@
namespace {
-bool use_popup_as_root_window_for_test = false;
-
gfx::Rect GetWindowBoundsForClientBounds(DWORD style, DWORD ex_style,
const gfx::Rect& bounds) {
RECT wr;
@@ -39,8 +37,6 @@
const gfx::Rect& bounds)
: delegate_(delegate) {
CHECK(delegate_);
- if (use_popup_as_root_window_for_test)
- set_window_style(WS_POPUP);
gfx::Rect window_bounds = GetWindowBoundsForClientBounds(
WS_OVERLAPPEDWINDOW, window_ex_style(), bounds);
gfx::WindowImpl::Init(NULL, window_bounds);
@@ -130,7 +126,6 @@
}
LRESULT WinWindow::OnNCActivate(UINT message, WPARAM w_param, LPARAM l_param) {
- delegate_->OnActivationChanged(!!w_param);
return DefWindowProc(hwnd(), message, w_param, l_param);
}
@@ -167,12 +162,4 @@
}
}
-namespace test {
-
-// static
-void SetUsePopupAsRootWindowForTest(bool use) {
- use_popup_as_root_window_for_test = use;
-}
-
-} // namespace test
} // namespace ui
« no previous file with comments | « trunk/src/ui/platform_window/win/win_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698