Index: mojo/views/native_widget_view_manager.cc |
diff --git a/mojo/views/native_widget_view_manager.cc b/mojo/views/native_widget_view_manager.cc |
index a9bd40bd50572c6252e9012049e109222b51b204..41d85a70dbdb062ad6d12b05ae9a6fcd57ca35e9 100644 |
--- a/mojo/views/native_widget_view_manager.cc |
+++ b/mojo/views/native_widget_view_manager.cc |
@@ -5,6 +5,7 @@ |
#include "mojo/views/native_widget_view_manager.h" |
#include "mojo/aura/window_tree_host_mojo.h" |
+#include "mojo/converters/geometry/geometry_type_converters.h" |
#include "mojo/converters/input_events/input_events_type_converters.h" |
#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/client/default_capture_client.h" |
@@ -139,9 +140,10 @@ void NativeWidgetViewManager::OnViewDestroyed(View* view) { |
} |
void NativeWidgetViewManager::OnViewBoundsChanged(View* view, |
- const gfx::Rect& old_bounds, |
- const gfx::Rect& new_bounds) { |
- GetWidget()->SetBounds(gfx::Rect(view->bounds().size())); |
+ const Rect& old_bounds, |
+ const Rect& new_bounds) { |
+ gfx::Rect view_rect = view->bounds().To<gfx::Rect>(); |
+ GetWidget()->SetBounds(gfx::Rect(view_rect.size())); |
} |
void NativeWidgetViewManager::OnViewInputEvent(View* view, |