Chromium Code Reviews| 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 25 matching lines...) Expand all Loading... | |
| 36 explicit CursorRendererMac(gfx::NativeView view); | 36 explicit CursorRendererMac(gfx::NativeView view); |
| 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: | |
| 47 // Called for mouse activity events. | 46 // Called for mouse activity events. |
| 48 void OnMouseEvent(); | 47 void OnMouseEvent(); |
| 49 | 48 |
| 49 private: | |
|
miu
2017/02/09 21:54:07
Rather than make OnMouseEvent() private, how about
braveyao
2017/02/09 23:15:36
Done.
| |
| 50 NSView* const view_; | 50 NSView* const view_; |
| 51 | 51 |
| 52 base::scoped_nsobject<CursorRendererMouseTracker> mouse_tracker_; | 52 base::scoped_nsobject<CursorRendererMouseTracker> mouse_tracker_; |
| 53 | 53 |
| 54 DISALLOW_COPY_AND_ASSIGN(CursorRendererMac); | 54 DISALLOW_COPY_AND_ASSIGN(CursorRendererMac); |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 } // namespace content | 57 } // namespace content |
| 58 | 58 |
| 59 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ | 59 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_CURSOR_RENDERER_MAC_H_ |
| OLD | NEW |