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

Unified Diff: views/widget/native_widget_aura.cc

Issue 7976020: Wires up mouse capture code for aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix aura build Created 9 years, 3 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 | « views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e15e78c7a70beef312173d12b2f8a46d9652cea6 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,10 @@ bool NativeWidgetAura::OnMouseEvent(aura::MouseEvent* event) {
return delegate_->OnMouseEvent(MouseEvent(event));
}
+void NativeWidgetAura::OnCaptureLost() {
+ delegate_->OnMouseCaptureLost();
+}
+
void NativeWidgetAura::OnPaint(gfx::Canvas* canvas) {
delegate_->OnNativeWidgetPaint(canvas);
}
« no previous file with comments | « views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698