OLD | NEW |
(Empty) | |
| 1 // Copyright 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 #include "ppapi/shared_impl/resource_var.h" |
| 6 |
| 7 namespace ppapi { |
| 8 |
| 9 ResourceVar::ResourceVar() : resource_id_(0) {} |
| 10 |
| 11 ResourceVar::ResourceVar(PP_Resource resource_id) : resource_id_(resource_id) {} |
| 12 |
| 13 ResourceVar::~ResourceVar() {} |
| 14 |
| 15 ResourceVar* ResourceVar::AsResourceVar() { |
| 16 return this; |
| 17 } |
| 18 |
| 19 PP_VarType ResourceVar::GetType() const { |
| 20 // TODO(mgiuca): Return PP_VARTYPE_RESOURCE, once that is a valid enum value. |
| 21 NOTREACHED(); |
| 22 return PP_VARTYPE_UNDEFINED; |
| 23 } |
| 24 |
| 25 // static |
| 26 ResourceVar* ResourceVar::FromPPVar(PP_Var var) { |
| 27 // TODO(mgiuca): Implement this function, once PP_VARTYPE_RESOURCE is |
| 28 // introduced. |
| 29 return NULL; |
| 30 } |
| 31 |
| 32 } // namespace ppapi |
OLD | NEW |