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

Side by Side Diff: ppapi/cpp/private/var_private.h

Issue 13220002: [PPAPI] Fix a bunch of spelling mistakes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
« no previous file with comments | « ppapi/cpp/private/network_list_private.cc ('k') | ppapi/cpp/rect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PRIVATE_VAR_PRIVATE_H_ 5 #ifndef PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_
6 #define PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ 6 #define PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_
7 7
8 #include "ppapi/cpp/var.h" 8 #include "ppapi/cpp/var.h"
9 9
10 namespace pp { 10 namespace pp {
11 11
12 class InstanceHandle; 12 class InstanceHandle;
13 13
14 namespace deprecated { 14 namespace deprecated {
15 class ScriptableObject; 15 class ScriptableObject;
16 } 16 }
17 17
18 // VarPrivate is a version of Var that exposes the private scripting API. 18 // VarPrivate is a version of Var that exposes the private scripting API.
19 // It's designed to be mostly interchangable with Var since most callers will 19 // It's designed to be mostly interchangeable with Var since most callers will
20 // be dealing with Vars from various places. 20 // be dealing with Vars from various places.
21 class VarPrivate : public Var { 21 class VarPrivate : public Var {
22 public: 22 public:
23 VarPrivate() : Var() {} 23 VarPrivate() : Var() {}
24 VarPrivate(Null) : Var(Null()) {} 24 VarPrivate(Null) : Var(Null()) {}
25 VarPrivate(bool b) : Var(b) {} 25 VarPrivate(bool b) : Var(b) {}
26 VarPrivate(int32_t i) : Var(i) {} 26 VarPrivate(int32_t i) : Var(i) {}
27 VarPrivate(double d) : Var(d) {} 27 VarPrivate(double d) : Var(d) {}
28 VarPrivate(const char* utf8_str) : Var(utf8_str) {} 28 VarPrivate(const char* utf8_str) : Var(utf8_str) {}
29 VarPrivate(const std::string& utf8_str) : Var(utf8_str) {} 29 VarPrivate(const std::string& utf8_str) : Var(utf8_str) {}
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 private: 115 private:
116 // Prevent an arbitrary pointer argument from being implicitly converted to 116 // Prevent an arbitrary pointer argument from being implicitly converted to
117 // a bool at Var construction. If somebody makes such a mistake, (s)he will 117 // a bool at Var construction. If somebody makes such a mistake, (s)he will
118 // get a compilation error. 118 // get a compilation error.
119 VarPrivate(void* non_scriptable_object_pointer); 119 VarPrivate(void* non_scriptable_object_pointer);
120 }; 120 };
121 121
122 } // namespace pp 122 } // namespace pp
123 123
124 #endif // PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_ 124 #endif // PPAPI_CPP_PRIVATE_VAR_PRIVATE_H_
OLDNEW
« no previous file with comments | « ppapi/cpp/private/network_list_private.cc ('k') | ppapi/cpp/rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698