| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_ |
| 6 #define UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_ |
| 7 |
| 8 @class NSEvent; |
| 9 |
| 10 namespace views { |
| 11 |
| 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; |
| 19 |
| 20 // Called once. When another window acquires capture, or when the |
| 21 // CocoaMouseCapture is destroyed. |
| 22 virtual void OnMouseCaptureLost() = 0; |
| 23 }; |
| 24 |
| 25 } // namespace views |
| 26 |
| 27 #endif // UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_DELEGATE_H_ |
| OLD | NEW |