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

Side by Side Diff: ppapi/shared_impl/var.cc

Issue 12388083: Add PPB_VarArray_Dev support - part 1. (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/shared_impl/var.h ('k') | ppapi/shared_impl/var_value_conversions.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ppapi/shared_impl/var.h" 5 #include "ppapi/shared_impl/var.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 NPObjectVar* Var::AsNPObjectVar() { 78 NPObjectVar* Var::AsNPObjectVar() {
79 return NULL; 79 return NULL;
80 } 80 }
81 81
82 ProxyObjectVar* Var::AsProxyObjectVar() { 82 ProxyObjectVar* Var::AsProxyObjectVar() {
83 return NULL; 83 return NULL;
84 } 84 }
85 85
86 ArrayVar* Var::AsArrayVar() {
87 return NULL;
88 }
89
86 DictionaryVar* Var::AsDictionaryVar() { 90 DictionaryVar* Var::AsDictionaryVar() {
87 return NULL; 91 return NULL;
88 } 92 }
89 93
90 PP_Var Var::GetPPVar() { 94 PP_Var Var::GetPPVar() {
91 int32 id = GetOrCreateVarID(); 95 int32 id = GetOrCreateVarID();
92 if (!id) 96 if (!id)
93 return PP_MakeNull(); 97 return PP_MakeNull();
94 98
95 PP_Var result; 99 PP_Var result;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 return NULL; 202 return NULL;
199 scoped_refptr<Var> var_object( 203 scoped_refptr<Var> var_object(
200 PpapiGlobals::Get()->GetVarTracker()->GetVar(var)); 204 PpapiGlobals::Get()->GetVarTracker()->GetVar(var));
201 if (!var_object) 205 if (!var_object)
202 return NULL; 206 return NULL;
203 return var_object->AsArrayBufferVar(); 207 return var_object->AsArrayBufferVar();
204 } 208 }
205 209
206 } // namespace ppapi 210 } // namespace ppapi
207 211
OLDNEW
« no previous file with comments | « ppapi/shared_impl/var.h ('k') | ppapi/shared_impl/var_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698