Index: views/widget/native_widget_aura.cc |
diff --git a/views/widget/native_widget_aura.cc b/views/widget/native_widget_aura.cc |
index f7dd587d3a97e50e1e05c5cae0316e663c736a75..3228763964fef3dfd1eca34a50bc913a60e74c63 100644 |
--- a/views/widget/native_widget_aura.cc |
+++ b/views/widget/native_widget_aura.cc |
@@ -149,16 +149,15 @@ void NativeWidgetAura::SendNativeAccessibilityEvent( |
} |
void NativeWidgetAura::SetMouseCapture() { |
- NOTIMPLEMENTED(); |
+ window_->SetCapture(); |
} |
void NativeWidgetAura::ReleaseMouseCapture() { |
- NOTIMPLEMENTED(); |
+ window_->ReleaseCapture(); |
} |
bool NativeWidgetAura::HasMouseCapture() const { |
- //NOTIMPLEMENTED(); |
- return false; |
+ return window_->HasCapture(); |
} |
InputMethod* NativeWidgetAura::CreateInputMethod() { |
@@ -411,6 +410,13 @@ bool NativeWidgetAura::OnMouseEvent(aura::MouseEvent* event) { |
return delegate_->OnMouseEvent(MouseEvent(event)); |
} |
+void NativeWidgetAura::OnCaptureGained() { |
+} |
+ |
+void NativeWidgetAura::OnCaptureLost() { |
+ delegate_->OnMouseCaptureLost(); |
+} |
+ |
void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) { |
delegate_->OnNativeWidgetPaint(canvas); |
} |