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

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

Issue 10021029: Propagate OnNativeWidgetMove to delegate/observers, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add/remove anchor observer OnWidgetVisibilityChanged; clear anchor_view_ OnWidgetClosing. Created 8 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
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 9de1e78968b415a06c6e9a71023fc9fb87d37e28..1f8e15e9dcf7592b7e49fda043e7c17649669e19 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -738,7 +738,7 @@ gfx::Size NativeWidgetAura::GetMinimumSize() const {
void NativeWidgetAura::OnBoundsChanged(const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
if (old_bounds.origin() != new_bounds.origin())
- GetWidget()->widget_delegate()->OnWidgetMove();
+ delegate_->OnNativeWidgetMove();
if (old_bounds.size() != new_bounds.size()) {
#if defined(ENABLE_DIP)
delegate_->OnNativeWidgetSizeChanged(

Powered by Google App Engine
This is Rietveld 408576698