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

Unified Diff: ui/views/widget/native_widget_mac.mm

Issue 789763002: MacViews: Implement capture using NSEvent local+global monitors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20140812-MacViews-LAYERS2-PRESQUASH
Patch Set: fix sorting Created 6 years 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 | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_interactive_uitest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/native_widget_mac_interactive_uitest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698