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 |
| 7 #include "chrome/browser/extensions/extension_system.h" |
| 8 #include "chrome/common/extensions/api/system_indicator.h" |
| 9 |
| 10 namespace extensions { |
| 11 |
| 12 SystemIndicatorSetIconFunction::SystemIndicatorSetIconFunction() {} |
| 13 |
| 14 namespace indicator = api::system_indicator; |
| 15 |
| 16 bool SystemIndicatorSetIconFunction::RunImpl() { |
| 17 scoped_ptr<indicator::SetIcon::Params> params( |
| 18 indicator::SetIcon::Params::Create(*args_)); |
| 19 |
| 20 EXTENSION_FUNCTION_VALIDATE(params.get()); |
| 21 return true; |
| 22 } |
| 23 |
| 24 SystemIndicatorEnableFunction::SystemIndicatorEnableFunction() {} |
| 25 |
| 26 bool SystemIndicatorEnableFunction::RunImpl() { |
| 27 return true; |
| 28 } |
| 29 |
| 30 SystemIndicatorDisableFunction::SystemIndicatorDisableFunction() {} |
| 31 |
| 32 bool SystemIndicatorDisableFunction::RunImpl() { |
| 33 return true; |
| 34 } |
| 35 |
| 36 } // namespace extensions |
OLD | NEW |