| 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_WINDOW_ACTIVITY_TRACKER_MAC_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVITY_TRACKER_MAC_H_ |
| 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVITY_TRACKER_MAC_H_ | 6 #define CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVITY_TRACKER_MAC_H_ |
| 7 | 7 |
| 8 #import <AppKit/AppKit.h> | 8 #import <AppKit/AppKit.h> |
| 9 #import <CoreFoundation/CoreFoundation.h> | 9 #import <CoreFoundation/CoreFoundation.h> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class CONTENT_EXPORT WindowActivityTrackerMac : public WindowActivityTracker { | 42 class CONTENT_EXPORT WindowActivityTrackerMac : public WindowActivityTracker { |
| 43 public: | 43 public: |
| 44 explicit WindowActivityTrackerMac(NSView* view); | 44 explicit WindowActivityTrackerMac(NSView* view); |
| 45 ~WindowActivityTrackerMac() final; | 45 ~WindowActivityTrackerMac() final; |
| 46 | 46 |
| 47 base::WeakPtr<WindowActivityTracker> GetWeakPtr() final; | 47 base::WeakPtr<WindowActivityTracker> GetWeakPtr() final; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 void OnMouseActivity(); | 50 void OnMouseActivity(); |
| 51 | 51 |
| 52 NSView* const view_; | |
| 53 base::scoped_nsobject<MouseTracker> mouse_tracker_; | 52 base::scoped_nsobject<MouseTracker> mouse_tracker_; |
| 54 | 53 |
| 55 base::WeakPtrFactory<WindowActivityTrackerMac> weak_factory_; | 54 base::WeakPtrFactory<WindowActivityTrackerMac> weak_factory_; |
| 56 | 55 |
| 57 DISALLOW_COPY_AND_ASSIGN(WindowActivityTrackerMac); | 56 DISALLOW_COPY_AND_ASSIGN(WindowActivityTrackerMac); |
| 58 }; | 57 }; |
| 59 | 58 |
| 60 } // namespace content | 59 } // namespace content |
| 61 | 60 |
| 62 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVITY_TRACKER_MAC_H_ | 61 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WINDOW_ACTIVITY_TRACKER_MAC_H_ |
| OLD | NEW |