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

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

Issue 1953753002: Turn RootWindowController Menus Async (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 84c8d0539c06a4fca916f0d37d87c8ec2c23281c..4628de8d2345fbccdd1e6c6cfab311d34b5923da 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -10,6 +10,7 @@
#include "build/build_config.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/client/capture_client.h"
#include "ui/aura/client/cursor_client.h"
#include "ui/aura/client/focus_client.h"
#include "ui/aura/client/screen_position_client.h"
@@ -1185,5 +1186,15 @@ gfx::FontList NativeWidgetPrivate::GetWindowTitleFontList() {
#endif
}
+// static
+gfx::NativeView NativeWidgetPrivate::GetGlobalCapture(
+ gfx::NativeView native_view) {
+ aura::client::CaptureClient* capture_client =
+ aura::client::GetCaptureClient(native_view->GetRootWindow());
+ if (!capture_client)
+ return nullptr;
+ return capture_client->GetGlobalCaptureWindow();
+}
+
} // namespace internal
} // namespace views

Powered by Google App Engine
This is Rietveld 408576698