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

Unified Diff: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 127073003: Revert 243413 "Resize the widget when top level popup windows cr..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | trunk/src/ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (revision 243437)
+++ trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (working copy)
@@ -105,7 +105,6 @@
top_level_handler->top_level_widget_->GetNativeView();
child_window->AddObserver(top_level_handler);
native_window->AddObserver(top_level_handler);
- top_level_handler->child_window_ = child_window;
return native_window;
}
@@ -133,22 +132,13 @@
delete this;
}
- virtual void OnWindowBoundsChanged(aura::Window* window,
- const gfx::Rect& old_bounds,
- const gfx::Rect& new_bounds) OVERRIDE {
- if (top_level_widget_ && window == child_window_)
- top_level_widget_->SetSize(new_bounds.size());
- }
-
private:
DesktopNativeWidgetTopLevelHandler()
- : top_level_widget_(NULL),
- child_window_(NULL) {}
+ : top_level_widget_(NULL) {}
virtual ~DesktopNativeWidgetTopLevelHandler() {}
Widget* top_level_widget_;
- aura::Window* child_window_;
DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetTopLevelHandler);
};
« no previous file with comments | « no previous file | trunk/src/ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698