OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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/system_indicator/system_indicator_api.h" |
| 6 #include "chrome/browser/extensions/extension_system.h" |
| 7 #include "chrome/common/extensions/api/experimental_system_indicator.h" |
| 8 |
| 9 namespace extensions { |
| 10 |
| 11 SystemIndicatorSetURLFunction::SystemIndicatorSetURLFunction() {} |
| 12 |
| 13 bool SystemIndicatorSetURLFunction::RunImpl() { |
| 14 scoped_ptr<api::experimental_system_indicator::SetURL::Params> params( |
| 15 api::experimental_system_indicator::SetURL::Params::Create(*args_)); |
| 16 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 17 |
| 18 return true; |
| 19 } |
| 20 |
| 21 SystemIndicatorSetImageDataFunction::SystemIndicatorSetImageDataFunction() {} |
| 22 |
| 23 bool SystemIndicatorSetImageDataFunction::RunImpl() { |
| 24 scoped_ptr<api::experimental_system_indicator::SetImageData::Params> params( |
| 25 api::experimental_system_indicator::SetImageData::Params::Create(*args_)); |
| 26 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 27 return true; |
| 28 } |
| 29 |
| 30 SystemIndicatorShowFunction::SystemIndicatorShowFunction() {} |
| 31 |
| 32 bool SystemIndicatorShowFunction::RunImpl() { |
| 33 return true; |
| 34 } |
| 35 |
| 36 SystemIndicatorHideFunction::SystemIndicatorHideFunction() {} |
| 37 |
| 38 bool SystemIndicatorHideFunction::RunImpl() { |
| 39 return true; |
| 40 } |
| 41 |
| 42 } // namespace extensions |
OLD | NEW |