Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(446)

Side by Side Diff: content/browser/media/capture/cursor_renderer_mac.h

Issue 2682743006: Add unittests for CursorRendererMac (Closed)
Patch Set: address comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/media/capture/cursor_renderer.h ('k') | content/browser/media/capture/cursor_renderer_mac_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698