Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ | ||||
6 | #define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ | ||||
7 | |||||
Jan Wilken Dörrie | ad587c3 | 2021-03-11 14:09:27 | [diff] [blame] | 8 | #include <string> |
9 | |||||
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 10 | #include "base/callback.h" |
Francois Doray | 65406f8 | 2018-07-06 16:11:07 | [diff] [blame] | 11 | #include "chrome/browser/media/webrtc/media_stream_capture_indicator.h" |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 12 | |
13 | // Interface for screen capture notification UI shown when content of the screen | ||||
14 | // is being captured. | ||||
Francois Doray | 65406f8 | 2018-07-06 16:11:07 | [diff] [blame] | 15 | class ScreenCaptureNotificationUI : public MediaStreamUI { |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 16 | public: |
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 17 | ScreenCaptureNotificationUI() = default; |
Peter Boström | 53c6c595 | 2021-09-17 09:41:26 | [diff] [blame] | 18 | |
19 | ScreenCaptureNotificationUI(const ScreenCaptureNotificationUI&) = delete; | ||||
20 | ScreenCaptureNotificationUI& operator=(const ScreenCaptureNotificationUI&) = | ||||
21 | delete; | ||||
22 | |||||
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 23 | ~ScreenCaptureNotificationUI() override = default; |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 24 | |
[email protected] | 2fb38b4 | 2013-08-07 00:06:18 | [diff] [blame] | 25 | // Creates platform-specific screen capture notification UI. |text| specifies |
26 | // the text that should be shown in the notification. | ||||
dcheng | 9603ab9 | 2016-04-08 04:17:32 | [diff] [blame] | 27 | static std::unique_ptr<ScreenCaptureNotificationUI> Create( |
Jan Wilken Dörrie | 3f97e29 | 2021-03-11 18:07:14 | [diff] [blame] | 28 | const std::u16string& text); |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 29 | }; |
30 | |||||
31 | #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ |