| Index: ui/views/widget/native_widget_mac.mm
|
| diff --git a/ui/views/widget/native_widget_mac.mm b/ui/views/widget/native_widget_mac.mm
|
| index 6c5b4ac15982aac8a9213795b0908ba98e157f40..645a2a86ba4a0b2eb44ca8088cd01a559a7e7bb8 100644
|
| --- a/ui/views/widget/native_widget_mac.mm
|
| +++ b/ui/views/widget/native_widget_mac.mm
|
| @@ -209,16 +209,17 @@ TooltipManager* NativeWidgetMac::GetTooltipManager() const {
|
| }
|
|
|
| void NativeWidgetMac::SetCapture() {
|
| - NOTIMPLEMENTED();
|
| + if (bridge_ && !bridge_->HasCapture())
|
| + bridge_->AcquireCapture();
|
| }
|
|
|
| void NativeWidgetMac::ReleaseCapture() {
|
| - NOTIMPLEMENTED();
|
| + if (bridge_)
|
| + bridge_->ReleaseCapture();
|
| }
|
|
|
| bool NativeWidgetMac::HasCapture() const {
|
| - NOTIMPLEMENTED();
|
| - return false;
|
| + return bridge_ && bridge_->HasCapture();
|
| }
|
|
|
| InputMethod* NativeWidgetMac::CreateInputMethod() {
|
|
|