1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_
6 #define UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_
12 // Delegate for receiving captured events from a CocoaMouseCapture.
13 class CocoaMouseCaptureDelegate
{
15 // Called when an event has been captured. This may be an event local to the
16 // application, or a global event (sent to another application). If it is a
17 // local event, regular event handling will be suppressed.
18 virtual void PostCapturedEvent(NSEvent
* event
) = 0;
20 // Called once. When another window acquires capture, or when the
21 // CocoaMouseCapture is destroyed.
22 virtual void OnMouseCaptureLost() = 0;
27 #endif // UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_