Automated Commit: Committing new LKGM version 7479.0.0 for chromeos.
[chromium-blink-merge.git] / ui / views / cocoa / cocoa_mouse_capture_delegate.h
blobaf362e048621e84221ae392fa3cb6d04dc86e187
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_
8 @class NSEvent;
10 namespace views {
12 // Delegate for receiving captured events from a CocoaMouseCapture.
13 class CocoaMouseCaptureDelegate {
14 public:
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;
25 } // namespace views
27 #endif // UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_