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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 1461243002: [OLD ATTEMPT, DO NOT REVIEW] mustash: Enable connections to mus from the Chrome renderer Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Ben's comments Created 5 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
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index d51516d71be7ae77097d58a99b670b3c67694697..93e1d4bbc16e6a5be858f1268fed6737802af2d8 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -180,7 +180,10 @@ NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate,
show_state_before_fullscreen_(ui::PLATFORM_WINDOW_STATE_UNKNOWN),
ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET),
content_(new aura::Window(this)),
- close_widget_factory_(this) {}
+ close_widget_factory_(this) {
+ // TODO(fsamuel): Figure out lifetime of |window_|.
+ content_->SetNativeWindowProperty("mus", window_);
+}
NativeWidgetMus::~NativeWidgetMus() {
if (ownership_ == Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET)
« content/renderer/render_widget_view_mus.h ('K') | « content/renderer/render_widget_view_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698