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