| 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
|
|
|