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

Side by Side Diff: ppapi/shared_impl/array_var.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/api_id.h ('k') | ppapi/shared_impl/array_var.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_ARRAY_VAR_H_ 5 #ifndef PPAPI_SHARED_IMPL_ARRAY_VAR_H_
6 #define PPAPI_SHARED_IMPL_ARRAY_VAR_H_ 6 #define PPAPI_SHARED_IMPL_ARRAY_VAR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 19 matching lines...) Expand all
30 // Var overrides. 30 // Var overrides.
31 virtual ArrayVar* AsArrayVar() OVERRIDE; 31 virtual ArrayVar* AsArrayVar() OVERRIDE;
32 virtual PP_VarType GetType() const OVERRIDE; 32 virtual PP_VarType GetType() const OVERRIDE;
33 33
34 // The returned PP_Var has had a ref added on behalf of the caller. 34 // The returned PP_Var has had a ref added on behalf of the caller.
35 PP_Var Get(uint32_t index) const; 35 PP_Var Get(uint32_t index) const;
36 PP_Bool Set(uint32_t index, const PP_Var& value); 36 PP_Bool Set(uint32_t index, const PP_Var& value);
37 uint32_t GetLength() const; 37 uint32_t GetLength() const;
38 PP_Bool SetLength(uint32_t length); 38 PP_Bool SetLength(uint32_t length);
39 39
40 const ElementVector& elements() const { 40 const ElementVector& elements() const { return elements_; }
41 return elements_;
42 }
43 41
44 ElementVector& elements() { 42 ElementVector& elements() { return elements_; }
45 return elements_;
46 }
47 43
48 protected: 44 protected:
49 virtual ~ArrayVar(); 45 virtual ~ArrayVar();
50 46
51 private: 47 private:
52 ElementVector elements_; 48 ElementVector elements_;
53 49
54 DISALLOW_COPY_AND_ASSIGN(ArrayVar); 50 DISALLOW_COPY_AND_ASSIGN(ArrayVar);
55 }; 51 };
56 52
57 } // namespace ppapi 53 } // namespace ppapi
58 54
59 #endif // PPAPI_SHARED_IMPL_ARRAY_VAR_H_ 55 #endif // PPAPI_SHARED_IMPL_ARRAY_VAR_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/api_id.h ('k') | ppapi/shared_impl/array_var.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698