OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 "chrome/browser/extensions/api/webcam_private/webcam_private_api.h" |
| 6 |
| 7 #include "chrome/common/extensions/api/webcam_private.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 WebcamPrivateSetFunction::WebcamPrivateSetFunction() { |
| 12 } |
| 13 |
| 14 WebcamPrivateSetFunction::~WebcamPrivateSetFunction() { |
| 15 } |
| 16 |
| 17 bool WebcamPrivateSetFunction::RunImpl() { |
| 18 // Get parameters |
| 19 scoped_ptr<api::webcam_private::Set::Params> params( |
| 20 api::webcam_private::Set::Params::Create(*args_)); |
| 21 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 22 |
| 23 // TODO(zork): Send the value to the webcam. |
| 24 |
| 25 return true; |
| 26 } |
| 27 |
| 28 WebcamPrivateGetFunction::WebcamPrivateGetFunction() { |
| 29 } |
| 30 |
| 31 WebcamPrivateGetFunction::~WebcamPrivateGetFunction() { |
| 32 } |
| 33 |
| 34 bool WebcamPrivateGetFunction::RunImpl() { |
| 35 // Get parameters |
| 36 scoped_ptr<api::webcam_private::Get::Params> params( |
| 37 api::webcam_private::Get::Params::Create(*args_)); |
| 38 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 39 |
| 40 // TODO(zork): Get the value from the webcam. |
| 41 |
| 42 return false; |
| 43 } |
| 44 |
| 45 WebcamPrivateResetFunction::WebcamPrivateResetFunction() { |
| 46 } |
| 47 |
| 48 WebcamPrivateResetFunction::~WebcamPrivateResetFunction() { |
| 49 } |
| 50 |
| 51 bool WebcamPrivateResetFunction::RunImpl() { |
| 52 // Get parameters |
| 53 scoped_ptr<api::webcam_private::Reset::Params> params( |
| 54 api::webcam_private::Reset::Params::Create(*args_)); |
| 55 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 56 |
| 57 // TODO(zork): Reset the webcam state. |
| 58 |
| 59 return true; |
| 60 } |
| 61 |
| 62 } // namespace extensions |
OLD | NEW |