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

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

Issue 8618009: Aura: Fix window resizing for large drags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix HtmlDialogBrowserTest Created 9 years, 1 month 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/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index d8859c0debccde3d38ce3e3aff60c67f02c55371..28a41e393d9c134e49e38fdb40416343cb443929 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -538,11 +538,8 @@ void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) {
////////////////////////////////////////////////////////////////////////////////
// NativeWidgetAura, aura::WindowDelegate implementation:
-void NativeWidgetAura::OnBoundsChanging(gfx::Rect* new_bounds) {
- // Enforces a minimum size.
- const gfx::Size& min_size = delegate_->GetMinimumSize();
- new_bounds->set_width(std::max(min_size.width(), new_bounds->width()));
- new_bounds->set_height(std::max(min_size.height(), new_bounds->height()));
+gfx::Size NativeWidgetAura::GetMinimumSize() const {
+ return delegate_->GetMinimumSize();
}
void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds,
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698