Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 #include "content/browser/media/capture/image_capture_impl.h" | |
| 6 | |
| 7 #include "base/bind_helpers.h" | |
| 8 #include "content/public/browser/browser_thread.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // static | |
| 13 void ImageCaptureImpl::Create( | |
| 14 mojo::InterfaceRequest<blink::mojom::ImageCapture> request) { | |
| 15 // |binding_| will take ownership of ImageCaptureImpl. | |
| 16 new ImageCaptureImpl(std::move(request)); | |
| 17 } | |
| 18 | |
| 19 ImageCaptureImpl::~ImageCaptureImpl() {} | |
| 20 | |
| 21 void ImageCaptureImpl::TakePhoto(const mojo::String& sourceid, | |
| 22 const TakePhotoCallback& callback) { | |
| 23 DCHECK_CURRENTLY_ON(BrowserThread::UI); | |
| 24 | |
| 25 // TODO(mcasas): Implement this feature., https://crbug.com/518807. | |
| 26 callback.Run("text/plain", "not implemented"); | |
| 27 } | |
| 28 | |
| 29 ImageCaptureImpl::ImageCaptureImpl( | |
| 30 mojo::InterfaceRequest<blink::mojom::ImageCapture> request) | |
| 31 : binding_(this, std::move(request)) {} | |
|
miu
2016/05/02 21:44:51
Weird! But, I guess that's the way the designers o
mcasas
2016/05/02 22:03:35
Yeah! I think I have to add a comment (l.15) every
| |
| 32 | |
| 33 } // namespace content | |
| OLD | NEW |