[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 1 | // Copyright 2013 The Chromium Authors. All rights reserved. |
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" |
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 11 | #include "base/macros.h" |
Francois Doray | 65406f8 | 2018-07-06 16:11:07 | [diff] [blame] | 12 | #include "chrome/browser/media/webrtc/media_stream_capture_indicator.h" |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 13 | |
14 | // Interface for screen capture notification UI shown when content of the screen | ||||
15 | // is being captured. | ||||
Francois Doray | 65406f8 | 2018-07-06 16:11:07 | [diff] [blame] | 16 | class ScreenCaptureNotificationUI : public MediaStreamUI { |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 17 | public: |
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 18 | ScreenCaptureNotificationUI() = default; |
19 | ~ScreenCaptureNotificationUI() override = default; | ||||
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 20 | |
[email protected] | 2fb38b4 | 2013-08-07 00:06:18 | [diff] [blame] | 21 | // Creates platform-specific screen capture notification UI. |text| specifies |
22 | // the text that should be shown in the notification. | ||||
dcheng | 9603ab9 | 2016-04-08 04:17:32 | [diff] [blame] | 23 | static std::unique_ptr<ScreenCaptureNotificationUI> Create( |
Jan Wilken Dörrie | 3f97e29 | 2021-03-11 18:07:14 | [diff] [blame] | 24 | const std::u16string& text); |
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 25 | |
26 | private: | ||||
Robert Liao | 618a22f | 2018-03-09 02:31:25 | [diff] [blame] | 27 | DISALLOW_COPY_AND_ASSIGN(ScreenCaptureNotificationUI); |
[email protected] | d8da9d65 | 2013-03-20 12:17:24 | [diff] [blame] | 28 | }; |
29 | |||||
30 | #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ |