Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome/browser/extensions/api/webcam_private/webcam_private_api.cc

Issue 234843006: Send commands from webcamPrivate API to the webcam via V4L2 ioctls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix similarity Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698