| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ |
| 7 | 7 |
| 8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 ~CursorRendererMac() final; | 37 ~CursorRendererMac() final; |
| 38 | 38 |
| 39 // CursorRender implementation. | 39 // CursorRender implementation. |
| 40 bool IsCapturedViewActive() final; | 40 bool IsCapturedViewActive() final; |
| 41 gfx::Size GetCapturedViewSize() final; | 41 gfx::Size GetCapturedViewSize() final; |
| 42 gfx::Point GetCursorPositionInView() final; | 42 gfx::Point GetCursorPositionInView() final; |
| 43 gfx::NativeCursor GetLastKnownCursor() final; | 43 gfx::NativeCursor GetLastKnownCursor() final; |
| 44 SkBitmap GetLastKnownCursorImage(gfx::Point* hot_point) final; | 44 SkBitmap GetLastKnownCursorImage(gfx::Point* hot_point) final; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 friend class CursorRendererMacTest; |
| 48 |
| 47 // Called for mouse activity events. | 49 // Called for mouse activity events. |
| 48 void OnMouseEvent(); | 50 void OnMouseEvent(); |
| 49 | 51 |
| 50 NSView* const view_; | 52 NSView* const view_; |
| 51 | 53 |
| 52 base::scoped_nsobject<CursorRendererMouseTracker> mouse_tracker_; | 54 base::scoped_nsobject<CursorRendererMouseTracker> mouse_tracker_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(CursorRendererMac); | 56 DISALLOW_COPY_AND_ASSIGN(CursorRendererMac); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace content | 59 } // namespace content |
| 58 | 60 |
| 59 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ | 61 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ |
| OLD | NEW |