OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ |
6 #define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ | 6 #define CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "content/public/common/media_stream_request.h" | 10 #include "content/public/common/media_stream_request.h" |
11 | 11 |
12 // Interface for screen capture notification UI shown when content of the screen | 12 // Interface for screen capture notification UI shown when content of the screen |
13 // is being captured. | 13 // is being captured. |
14 class ScreenCaptureNotificationUI : public content::MediaStreamUI { | 14 class ScreenCaptureNotificationUI : public content::MediaStreamUI { |
15 public: | 15 public: |
16 ~ScreenCaptureNotificationUI() override {} | 16 ~ScreenCaptureNotificationUI() override {} |
17 | 17 |
18 // Creates platform-specific screen capture notification UI. |text| specifies | 18 // Creates platform-specific screen capture notification UI. |text| specifies |
19 // the text that should be shown in the notification. | 19 // the text that should be shown in the notification. |
20 static scoped_ptr<ScreenCaptureNotificationUI> Create( | 20 static std::unique_ptr<ScreenCaptureNotificationUI> Create( |
21 const base::string16& text); | 21 const base::string16& text); |
22 }; | 22 }; |
23 | 23 |
24 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ | 24 #endif // CHROME_BROWSER_UI_SCREEN_CAPTURE_NOTIFICATION_UI_H_ |
OLD | NEW |