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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/myapi/myapi.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 // GENERATED FROM THE API DEFINITION IN
6 // chrome\common\extensions\api\myapi.idl
7 // DO NOT EDIT.
8
9 #ifndef CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
10 #define CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
11
12 #include <map>
13 #include <string>
14 #include <vector>
15
16 #include "base/basictypes.h"
17 #include "base/logging.h"
18 #include "base/memory/linked_ptr.h"
19 #include "base/memory/scoped_ptr.h"
20 #include "base/values.h"
21
22 namespace extensions {
23 namespace api {
24 namespace myapi {
25
26 //
27 // Types
28 //
29
30 struct BazOptions {
31 BazOptions();
32 ~BazOptions();
33
34 // Populates a BazOptions object from a base::Value. Returns whether |out|
35 // was successfully populated.
36 static bool Populate(const base::Value& value, BazOptions* out);
37
38 // Creates a BazOptions object from a base::Value, or NULL on failure.
39 static scoped_ptr<BazOptions> FromValue(const base::Value& value);
40
41 // Returns a new base::DictionaryValue representing the serialized form of
42 // this BazOptions object.
43 scoped_ptr<base::DictionaryValue> ToValue() const;
44
45 // Describes what the id argument means.
46 int id;
47
48 // Describes what the s argument means.
49 std::string s;
50
51
52 private:
53 DISALLOW_COPY_AND_ASSIGN(BazOptions);
54 };
55
56 struct BazResult {
57 BazResult();
58 ~BazResult();
59
60 // Populates a BazResult object from a base::Value. Returns whether |out| was
61 // successfully populated.
62 static bool Populate(const base::Value& value, BazResult* out);
63
64 // Creates a BazResult object from a base::Value, or NULL on failure.
65 static scoped_ptr<BazResult> FromValue(const base::Value& value);
66
67 // Returns a new base::DictionaryValue representing the serialized form of
68 // this BazResult object.
69 scoped_ptr<base::DictionaryValue> ToValue() const;
70
71 int x;
72
73 int y;
74
75
76 private:
77 DISALLOW_COPY_AND_ASSIGN(BazResult);
78 };
79
80
81 //
82 // Functions
83 //
84
85 namespace DoBaz {
86
87 struct Params {
88 static scoped_ptr<Params> Create(const base::ListValue& args);
89 ~Params();
90
91 BazOptions options;
92
93
94 private:
95 Params();
96
97 DISALLOW_COPY_AND_ASSIGN(Params);
98 };
99
100 namespace Results {
101
102 scoped_ptr<base::ListValue> Create(const BazResult& result);
103 } // namespace Results
104
105 } // namespace DoBaz
106
107 } // myapi
108 } // namespace api
109 } // namespace extensions
110 #endif // CHROME_COMMON_EXTENSIONS_API_MYAPI_H__
OLDNEW
« 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