Chromium Code Reviews| Index: chrome/browser/extensions/api/system_indicator/system_indicator_api.cc |
| diff --git a/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc b/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4528c47c935d067fb974658c85eb4ceaee535370 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc |
| @@ -0,0 +1,44 @@ |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/extensions/api/system_indicator/system_indicator_api.h" |
| +#include "chrome/browser/extensions/extension_system.h" |
| +#include "chrome/common/extensions/api/experimental_system_indicator.h" |
| + |
| +class ExtensionService; |
|
dcheng
2012/11/13 00:52:19
This is probably unneeded.
dewittj
2012/11/13 06:58:54
Removed.
|
| + |
| +namespace extensions { |
| + |
| +SystemIndicatorSetURLFunction::SystemIndicatorSetURLFunction() {} |
| + |
| +bool SystemIndicatorSetURLFunction::RunImpl() { |
| + scoped_ptr<api::experimental_system_indicator::SetURL::Params> params( |
| + api::experimental_system_indicator::SetURL::Params::Create(*args_)); |
| + EXTENSION_FUNCTION_VALIDATE(params.get()); |
| + |
| + return true; |
| +} |
| + |
| +SystemIndicatorSetImageDataFunction::SystemIndicatorSetImageDataFunction() {} |
| + |
| +bool SystemIndicatorSetImageDataFunction::RunImpl() { |
| + scoped_ptr<api::experimental_system_indicator::SetImageData::Params> params( |
| + api::experimental_system_indicator::SetImageData::Params::Create(*args_)); |
| + EXTENSION_FUNCTION_VALIDATE(params.get()); |
| + return true; |
| +} |
| + |
| +SystemIndicatorShowFunction::SystemIndicatorShowFunction() {} |
| + |
| +bool SystemIndicatorShowFunction::RunImpl() { |
| + return true; |
| +} |
| + |
| +SystemIndicatorHideFunction::SystemIndicatorHideFunction() {} |
| + |
| +bool SystemIndicatorHideFunction::RunImpl() { |
| + return true; |
| +} |
| + |
| +} // namespace extensions |