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

Unified Diff: ui/views/widget/desktop_native_widget_helper_aura.cc

Issue 10662037: basic nc paint, moving, resizing for views_examples_exe on win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetHwnd->hwnd Created 8 years, 6 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 | « ui/gfx/path_aura.cc ('k') | ui/views/widget/widget_message_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/desktop_native_widget_helper_aura.cc
diff --git a/ui/views/widget/desktop_native_widget_helper_aura.cc b/ui/views/widget/desktop_native_widget_helper_aura.cc
index ad68fafa168ebc20d0d6a8b85db2a93de3a5afdf..9543644d4d4eda359d40c5e5c434372ad506a1f6 100644
--- a/ui/views/widget/desktop_native_widget_helper_aura.cc
+++ b/ui/views/widget/desktop_native_widget_helper_aura.cc
@@ -198,7 +198,11 @@ gfx::Rect DesktopNativeWidgetHelperAura::ModifyAndSetBounds(
const gfx::Rect& bounds) {
gfx::Rect out_bounds = bounds;
if (root_window_.get() && !out_bounds.IsEmpty()) {
+ // TODO(scottmg): This avoids the AdjustWindowRect that ash wants to
+ // adjust the top level on Windows.
+#if !defined(OS_WIN)
root_window_->SetHostBounds(out_bounds);
+#endif
out_bounds.set_x(0);
out_bounds.set_y(0);
} else if (is_embedded_window_) {
« no previous file with comments | « ui/gfx/path_aura.cc ('k') | ui/views/widget/widget_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698