| Index: chrome/browser/extensions/api/myapi/myapi.h
|
| diff --git a/chrome/browser/extensions/api/myapi/myapi.h b/chrome/browser/extensions/api/myapi/myapi.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..386a8c2942fea51750d5e5eff98890cba3af5d8a
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/myapi/myapi.h
|
| @@ -0,0 +1,110 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +// GENERATED FROM THE API DEFINITION IN
|
| +// chrome\common\extensions\api\myapi.idl
|
| +// DO NOT EDIT.
|
| +
|
| +#ifndef CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
|
| +#define CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
|
| +
|
| +#include <map>
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/logging.h"
|
| +#include "base/memory/linked_ptr.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/values.h"
|
| +
|
| +namespace extensions {
|
| +namespace api {
|
| +namespace myapi {
|
| +
|
| +//
|
| +// Types
|
| +//
|
| +
|
| +struct BazOptions {
|
| + BazOptions();
|
| + ~BazOptions();
|
| +
|
| + // Populates a BazOptions object from a base::Value. Returns whether |out|
|
| + // was successfully populated.
|
| + static bool Populate(const base::Value& value, BazOptions* out);
|
| +
|
| + // Creates a BazOptions object from a base::Value, or NULL on failure.
|
| + static scoped_ptr<BazOptions> FromValue(const base::Value& value);
|
| +
|
| + // Returns a new base::DictionaryValue representing the serialized form of
|
| + // this BazOptions object.
|
| + scoped_ptr<base::DictionaryValue> ToValue() const;
|
| +
|
| + // Describes what the id argument means.
|
| + int id;
|
| +
|
| + // Describes what the s argument means.
|
| + std::string s;
|
| +
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(BazOptions);
|
| +};
|
| +
|
| +struct BazResult {
|
| + BazResult();
|
| + ~BazResult();
|
| +
|
| + // Populates a BazResult object from a base::Value. Returns whether |out| was
|
| + // successfully populated.
|
| + static bool Populate(const base::Value& value, BazResult* out);
|
| +
|
| + // Creates a BazResult object from a base::Value, or NULL on failure.
|
| + static scoped_ptr<BazResult> FromValue(const base::Value& value);
|
| +
|
| + // Returns a new base::DictionaryValue representing the serialized form of
|
| + // this BazResult object.
|
| + scoped_ptr<base::DictionaryValue> ToValue() const;
|
| +
|
| + int x;
|
| +
|
| + int y;
|
| +
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(BazResult);
|
| +};
|
| +
|
| +
|
| +//
|
| +// Functions
|
| +//
|
| +
|
| +namespace DoBaz {
|
| +
|
| +struct Params {
|
| + static scoped_ptr<Params> Create(const base::ListValue& args);
|
| + ~Params();
|
| +
|
| + BazOptions options;
|
| +
|
| +
|
| + private:
|
| + Params();
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(Params);
|
| +};
|
| +
|
| +namespace Results {
|
| +
|
| +scoped_ptr<base::ListValue> Create(const BazResult& result);
|
| +} // namespace Results
|
| +
|
| +} // namespace DoBaz
|
| +
|
| +} // myapi
|
| +} // namespace api
|
| +} // namespace extensions
|
| +#endif // CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
|
|
|