Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2862)

Unified Diff: chrome/browser/extensions/api/myapi/myapi.h

Issue 17679004: testing adding an extension api Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/myapi/myapi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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__
« no previous file with comments | « no previous file | chrome/browser/extensions/api/myapi/myapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698