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

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: Tweaks 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
« ui/aura/window.cc ('K') | « 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..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);
}
« ui/aura/window.cc ('K') | « views/widget/native_widget_aura.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698