| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // |fallback_capturer| will be used to capture the screen if a non-primary | 41 // |fallback_capturer| will be used to capture the screen if a non-primary |
| 42 // screen is being captured, or the OS does not support Magnification API, or | 42 // screen is being captured, or the OS does not support Magnification API, or |
| 43 // the magnifier capturer fails (e.g. in Windows8 Metro mode). | 43 // the magnifier capturer fails (e.g. in Windows8 Metro mode). |
| 44 explicit ScreenCapturerWinMagnifier( | 44 explicit ScreenCapturerWinMagnifier( |
| 45 std::unique_ptr<ScreenCapturer> fallback_capturer); | 45 std::unique_ptr<ScreenCapturer> fallback_capturer); |
| 46 virtual ~ScreenCapturerWinMagnifier(); | 46 virtual ~ScreenCapturerWinMagnifier(); |
| 47 | 47 |
| 48 // Overridden from ScreenCapturer: | 48 // Overridden from ScreenCapturer: |
| 49 void Start(Callback* callback) override; | 49 void Start(Callback* callback) override; |
| 50 void SetSharedMemoryFactory( | 50 void SetSharedMemoryFactory( |
| 51 rtc::scoped_ptr<SharedMemoryFactory> shared_memory_factory) override; | 51 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; |
| 52 void Capture(const DesktopRegion& region) override; | 52 void Capture(const DesktopRegion& region) override; |
| 53 bool GetScreenList(ScreenList* screens) override; | 53 bool GetScreenList(ScreenList* screens) override; |
| 54 bool SelectScreen(ScreenId id) override; | 54 bool SelectScreen(ScreenId id) override; |
| 55 void SetExcludedWindow(WindowId window) override; | 55 void SetExcludedWindow(WindowId window) override; |
| 56 | 56 |
| 57 private: | 57 private: |
| 58 typedef BOOL(WINAPI* MagImageScalingCallback)(HWND hwnd, | 58 typedef BOOL(WINAPI* MagImageScalingCallback)(HWND hwnd, |
| 59 void* srcdata, | 59 void* srcdata, |
| 60 MAGIMAGEHEADER srcheader, | 60 MAGIMAGEHEADER srcheader, |
| 61 void* destdata, | 61 void* destdata, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // True if the last OnMagImageScalingCallback was called and handled | 150 // True if the last OnMagImageScalingCallback was called and handled |
| 151 // successfully. Reset at the beginning of each CaptureImage call. | 151 // successfully. Reset at the beginning of each CaptureImage call. |
| 152 bool magnifier_capture_succeeded_; | 152 bool magnifier_capture_succeeded_; |
| 153 | 153 |
| 154 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); | 154 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinMagnifier); |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 } // namespace webrtc | 157 } // namespace webrtc |
| 158 | 158 |
| 159 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ | 159 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_MAGNIFIER_H_ |
| OLD | NEW |