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

Side by Side Diff: ppapi/shared_impl/var_value_conversions.h

Issue 174213003: PPAPI: Use clang-format on ppapi/shared_impl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: remove DEPS Created 6 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
« no previous file with comments | « ppapi/shared_impl/var_tracker_unittest.cc ('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) 2013 The Chromium Authors. All rights reserved. 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 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_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_ 5 #ifndef PPAPI_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_
6 #define PPAPI_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_ 6 #define PPAPI_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // CreateValueFromVar() fails. 46 // CreateValueFromVar() fails.
47 PPAPI_SHARED_EXPORT base::ListValue* CreateListValueFromVarVector( 47 PPAPI_SHARED_EXPORT base::ListValue* CreateListValueFromVarVector(
48 const std::vector<PP_Var>& vars); 48 const std::vector<PP_Var>& vars);
49 49
50 // Calls CreateVarFromValue() on each element of |list_value| and puts them in 50 // Calls CreateVarFromValue() on each element of |list_value| and puts them in
51 // |vars|. The returned vars have had 1 ref added on behalf of the caller. 51 // |vars|. The returned vars have had 1 ref added on behalf of the caller.
52 // 52 //
53 // The conversion fails and returns false if any of the calls to 53 // The conversion fails and returns false if any of the calls to
54 // CreateVarFromValue() fails. In that case, |vars| is untouched. 54 // CreateVarFromValue() fails. In that case, |vars| is untouched.
55 PPAPI_SHARED_EXPORT bool CreateVarVectorFromListValue( 55 PPAPI_SHARED_EXPORT bool CreateVarVectorFromListValue(
56 const base::ListValue& list_value, std::vector<PP_Var>* vars); 56 const base::ListValue& list_value,
57 std::vector<PP_Var>* vars);
57 58
58 } // namespace ppapi 59 } // namespace ppapi
59 60
60 #endif // PPAPI_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_ 61 #endif // PPAPI_SHARED_IMPL_VAR_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/var_tracker_unittest.cc ('k') | ppapi/shared_impl/var_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698