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

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
« no previous file with comments | « ui/views/controls/menu/menu_runner_unittest.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 157307fb7c09e2c3bfe501ca6dd82c1240166252..cbdf38294d49018518da29c634af66cba6de95fa 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"
@@ -1186,5 +1187,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
« no previous file with comments | « ui/views/controls/menu/menu_runner_unittest.cc ('k') | ui/views/widget/native_widget_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698