| 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 #include "chrome/browser/ui/screen_capture_notification_ui.h" | 5 #include "chrome/browser/ui/screen_capture_notification_ui.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 | 8 |
| 9 // Stub implementation of the ScreenCaptureNotificationUI interface. | 9 // Stub implementation of the ScreenCaptureNotificationUI interface. |
| 10 class ScreenCaptureNotificationUIStub : public ScreenCaptureNotificationUI { | 10 class ScreenCaptureNotificationUIStub : public ScreenCaptureNotificationUI { |
| 11 public: | 11 public: |
| 12 ScreenCaptureNotificationUIStub() {} | 12 ScreenCaptureNotificationUIStub() {} |
| 13 ~ScreenCaptureNotificationUIStub() override {} | 13 ~ScreenCaptureNotificationUIStub() override {} |
| 14 | 14 |
| 15 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override { | 15 gfx::NativeViewId OnStarted(const base::Closure& stop_callback) override { |
| 16 NOTIMPLEMENTED(); | 16 NOTIMPLEMENTED(); |
| 17 return 0; | 17 return 0; |
| 18 } | 18 } |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 // static | 21 // static |
| 22 scoped_ptr<ScreenCaptureNotificationUI> ScreenCaptureNotificationUI::Create( | 22 std::unique_ptr<ScreenCaptureNotificationUI> |
| 23 const base::string16& title) { | 23 ScreenCaptureNotificationUI::Create(const base::string16& title) { |
| 24 return scoped_ptr<ScreenCaptureNotificationUI>( | 24 return std::unique_ptr<ScreenCaptureNotificationUI>( |
| 25 new ScreenCaptureNotificationUIStub()); | 25 new ScreenCaptureNotificationUIStub()); |
| 26 } | 26 } |
| OLD | NEW |