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

Unified Diff: mojo/views/native_widget_view_manager.cc

Issue 383123006: Preliminary interactive layout of window manager's demo_launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resize KeyboardManager, sync Created 6 years, 5 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: 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 36a65786e101b21da096aa89b764d0144be3855a..fe6681ab0bacd0f8c0eca31074901268dcb8f164 100644
--- a/mojo/views/native_widget_view_manager.cc
+++ b/mojo/views/native_widget_view_manager.cc
@@ -153,4 +153,10 @@ void NativeWidgetViewManager::OnViewInputEvent(view_manager::View* view,
window_tree_host_->SendEventToProcessor(ui_event.get());
}
+void NativeWidgetViewManager::OnNodeBoundsChanged(view_manager::Node* node,
+ const gfx::Rect&,
+ const gfx::Rect&) {
+ GetWidget()->SetBounds(gfx::Rect(node->bounds().size()));
+}
+
} // namespace mojo
« mojo/views/native_widget_view_manager.h ('K') | « mojo/views/native_widget_view_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698