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

Unified Diff: ppapi/shared_impl/id_assignment.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/host_resource.cc ('k') | ppapi/shared_impl/id_assignment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/id_assignment.h
diff --git a/ppapi/shared_impl/id_assignment.h b/ppapi/shared_impl/id_assignment.h
index 3bacac3829fe4b3c5d49a4231548569e09f2b369..4ca8cd17d3e11afc614a9ef5b62ae7e3b16b8662 100644
--- a/ppapi/shared_impl/id_assignment.h
+++ b/ppapi/shared_impl/id_assignment.h
@@ -27,11 +27,13 @@ PPAPI_SHARED_EXPORT extern const unsigned int kPPIdTypeBits;
extern const int32 kMaxPPId;
// The least significant bits are the type, the rest are the value.
-template <typename T> inline T MakeTypedId(T value, PPIdType type) {
+template <typename T>
+inline T MakeTypedId(T value, PPIdType type) {
return (value << kPPIdTypeBits) | static_cast<T>(type);
}
-template <typename T> inline bool CheckIdType(T id, PPIdType type) {
+template <typename T>
+inline bool CheckIdType(T id, PPIdType type) {
// Say a resource of 0 is always valid, since that means "no resource."
// You shouldn't be passing 0 var, instance, or module IDs around so those
// are still invalid.
« no previous file with comments | « ppapi/shared_impl/host_resource.cc ('k') | ppapi/shared_impl/id_assignment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698