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

Side by Side Diff: ppapi/cpp/var.h

Issue 9169052: Tweaks to PPB_VarArrayBuffer in preperation for taking out of Dev. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes based on reviews Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_VAR_H_ 5 #ifndef PPAPI_CPP_VAR_H_
6 #define PPAPI_CPP_VAR_H_ 6 #define PPAPI_CPP_VAR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Var(const Var& other); 85 Var(const Var& other);
86 86
87 /// Destructor. 87 /// Destructor.
88 virtual ~Var(); 88 virtual ~Var();
89 89
90 /// This function assigns one <code>Var</code> to another <code>Var</code>. 90 /// This function assigns one <code>Var</code> to another <code>Var</code>.
91 /// 91 ///
92 /// @param[in] other The <code>Var</code> to be assigned. 92 /// @param[in] other The <code>Var</code> to be assigned.
93 /// 93 ///
94 /// @return A resulting <code>Var</code>. 94 /// @return A resulting <code>Var</code>.
95 Var& operator=(const Var& other); 95 virtual Var& operator=(const Var& other);
96 96
97 /// This function compares object identity (rather than value identity) for 97 /// This function compares object identity (rather than value identity) for
98 /// objects, dictionaries, and arrays 98 /// objects, dictionaries, and arrays
99 /// 99 ///
100 /// @param[in] other The <code>Var</code> to be compared to this Var. 100 /// @param[in] other The <code>Var</code> to be compared to this Var.
101 /// 101 ///
102 /// @return true if the <code>other</code> <code>Var</code> is the same as 102 /// @return true if the <code>other</code> <code>Var</code> is the same as
103 /// this <code>Var</code>, otherwise false. 103 /// this <code>Var</code>, otherwise false.
104 bool operator==(const Var& other) const; 104 bool operator==(const Var& other) const;
105 105
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 private: 291 private:
292 // Prevent an arbitrary pointer argument from being implicitly converted to 292 // Prevent an arbitrary pointer argument from being implicitly converted to
293 // a bool at Var construction. If somebody makes such a mistake, (s)he will 293 // a bool at Var construction. If somebody makes such a mistake, (s)he will
294 // get a compilation error. 294 // get a compilation error.
295 Var(void* non_scriptable_object_pointer); 295 Var(void* non_scriptable_object_pointer);
296 }; 296 };
297 297
298 } // namespace pp 298 } // namespace pp
299 299
300 #endif // PPAPI_CPP_VAR_H_ 300 #endif // PPAPI_CPP_VAR_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/var_array_buffer_dev.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/object_serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698