| 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..7c1c1089302efe851532452024946d9ee044adfc
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/system_indicator/system_indicator_api.cc
|
| @@ -0,0 +1,42 @@
|
| +// 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"
|
| +
|
| +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
|
|
|