Chromium Code Reviews| Index: chrome/browser/extensions/api/declarative/declarative_api.cc |
| diff --git a/chrome/browser/extensions/api/declarative/declarative_api.cc b/chrome/browser/extensions/api/declarative/declarative_api.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ca5fd83edad85faed77c6683dbe86fb7dd9f2d59 |
| --- /dev/null |
| +++ b/chrome/browser/extensions/api/declarative/declarative_api.cc |
| @@ -0,0 +1,31 @@ |
| +// 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/declarative/declarative_api.h" |
| + |
| +#include "base/values.h" |
| + |
| +namespace extensions { |
| + |
| +bool AddRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "AddRulesFunction called"; |
| + |
| + // We always return an empty list here. The binding of return values |
| + // is handled in JavaScript by event.js. |
| + result_.reset(new ListValue()); |
|
Aaron Boodman
2012/01/31 00:11:17
Nit: No need to return anything in that case then?
battre
2012/01/31 12:28:50
If we don't return an empty list here, we get the
Aaron Boodman
2012/02/01 00:27:25
Ah. OK.
|
| + return true; |
| +} |
| + |
| +bool RemoveRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "RemoveRulesFunction called"; |
| + return true; |
| +} |
| + |
| +bool GetRulesFunction::RunImpl() { |
| + // LOG(ERROR) << "GetRulesFunction called"; |
| + result_.reset(new ListValue()); |
| + return true; |
| +} |
| + |
| +} // namespace extensions |