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..70accda7173abc0e530bcf682e8f8b04915aab66 |
| --- /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" |
| + |
|
jianli
2012/11/12 23:00:55
nit: extra empty line not needed
dewittj
2012/11/13 06:58:54
Fixed
|
| + |
| +class ExtensionService; |
| +namespace extensions { |
|
jianli
2012/11/12 23:00:55
nit: empty line before this line
dewittj
2012/11/13 06:58:54
Fixed
|
| + |
| +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; |
|
jianli
2012/11/12 23:00:55
nit: space alignment
dewittj
2012/11/13 06:58:54
Fixed
|
| +} |
| + |
| +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 |