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

Unified Diff: content/browser/mus_util.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
« no previous file with comments | « content/browser/mus_util.h ('k') | content/browser/render_process_connection_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/mus_util.cc
diff --git a/content/browser/mus_util.cc b/content/browser/mus_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f600b732f5eebca81c4cfe1af325fb83fa945efc
--- /dev/null
+++ b/content/browser/mus_util.cc
@@ -0,0 +1,17 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/mus_util.h"
+
+#include "ui/aura/window.h"
+
+namespace content {
+
+mus::Window* GetMusWindow(aura::Window* window) {
+ if (!window)
+ return nullptr;
+ return static_cast<mus::Window*>(window->GetNativeWindowProperty("mus"));
+}
+
+} // namespace content
« no previous file with comments | « content/browser/mus_util.h ('k') | content/browser/render_process_connection_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698